Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/superset] Add chart #26713

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

[bitnami/superset] Add chart #26713

wants to merge 2 commits into from

Conversation

migruiz4
Copy link
Member

@migruiz4 migruiz4 commented Jun 4, 2024

Description of the change

Adds the bitnami/superset chart to the catalog.

Signed-off-by: Miguel Ruiz <[email protected]>
@bitnami-bot bitnami-bot added the verify Execute verification workflow for these changes label Jun 4, 2024
@github-actions github-actions bot requested a review from andresbono June 4, 2024 15:53
Signed-off-by: Miguel Ruiz <[email protected]>
Copy link

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the stale 15 days without activity label Jun 20, 2024
@carrodher carrodher added new-product Request new product to be added into the catalog and removed stale 15 days without activity labels Jun 20, 2024
Copy link
Contributor

@juan131 juan131 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this great contribution! Please check my comments when you have a chance.

@@ -0,0 +1,14 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could add to the runtime-parameters.yaml:

web:
  containerSecurityContext:
    enabled: true
    runAsUser: 1002
serviceAccount:
  create: true
  automountServiceAccountToken: true

And then add the block below here:

  {{- $uid := .Vars.web.containerSecurityContext.runAsUser }}
  check-user-info:
    # The UID should always be either the one specified as vars (always a bigger number that the default)
    # or the one randomly defined by openshift (larger values). Otherwise, the chart is still using the default value.
    exec: if [ $(id -u) -lt {{ $uid }} ]; then exit 1; fi
    exit-status: 0
  {{ if .Vars.serviceAccount.automountServiceAccountToken }}
  check-sa:
    exec: cat /var/run/secrets/kubernetes.io/serviceaccount/token | cut -d '.' -f 2 | xargs -I '{}' echo '{}====' | fold -w 4 | sed '$ d' | tr -d '\n' | base64 -d
    exit-status: 0
    stdout:
    - /serviceaccount.*name.*{{ .Env.BITNAMI_APP_NAME }}/
  {{ end }}

Comment on lines +8 to +14
/opt/bitnami/superset/superset_config.py:
mode: "0644"
filetype: file
exists: true
/opt/bitnami/superset/superset_home:
filetype: directory
exists: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you enabled any parameter to customize/extend this configuration, you could set that parameter in runtime-parameters.yaml and then test that the configuration file contains your customization (check what we do in Dremio with dremio.conf).

Comment on lines +9 to +12
beat:
enabled: true
flower:
enabled: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to test these services work as expected or is it enough with the current Cypress tests?

# Various IDEs
.project
.idea/
*.tmproj
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing changelog:

Suggested change
*.tmproj
*.tmproj
# Changelog
CHANGELOG.md

version: 2.x.x
description: Apache Superset is a Data Visualization and Data Exploration Platform
home: https://bitnami.com
icon: https://bitnami.com/assets/stacks/superset/img/superset-stack-220x234.png
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing icon?

Comment on lines +67 to +84
- podSelector:
matchLabels:
{{ printf "%s-flower" (include "common.names.fullname" .) }}-client: "true"
{{- if .Values.flower.networkPolicy.ingressNSMatchLabels }}
- namespaceSelector:
matchLabels:
{{- range $key, $value := .Values.flower.networkPolicy.ingressNSMatchLabels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
{{- if .Values.flower.networkPolicy.ingressNSPodMatchLabels }}
podSelector:
matchLabels:
{{- range $key, $value := .Values.flower.networkPolicy.ingressNSPodMatchLabels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not following new standard, (check template/CHART_NAME/templates/networkpolicy.yaml)

{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
pathType: {{ default "ImplementationSpecific" .pathType }}
{{- end }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 14 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong backend:

Suggested change
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 14 }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (printf "%s-web" (include "common.names.fullname" .)) "servicePort" "http" "context" $) | nindent 14 }}

metadata:
name: {{ printf "%s-init" (include "common.names.fullname" .) }}
namespace: {{ include "common.names.namespace" . | quote }}
{{- $versionLabel := dict "app.kubernetes.io/version" ( include "common.images.version" ( dict "imageRoot" .Values.image "chart" .Chart ) ) }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This uses the default image, hence its the same value for app.kubernetes.io/version and you can skip this

Comment on lines +39 to +47
- name: http
port: {{ .Values.web.service.ports.http }}
targetPort: http
protocol: TCP
{{- if and (or (eq .Values.web.service.type "NodePort") (eq .Values.web.service.type "LoadBalancer")) (not (empty .Values.web.service.nodePorts.http)) }}
nodePort: {{ .Values.web.service.nodePorts.http }}
{{- else if eq .Values.web.service.type "ClusterIP" }}
nodePort: null
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No metrics?

##
pullSecrets: []
debug: false
##
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
##

Copy link

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the stale 15 days without activity label Jul 14, 2024
@carrodher carrodher removed the stale 15 days without activity label Jul 15, 2024
Copy link

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the stale 15 days without activity label Jul 31, 2024
Copy link

github-actions bot commented Aug 5, 2024

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot added the solved label Aug 5, 2024
@bitnami-bot bitnami-bot added stale 15 days without activity and removed stale 15 days without activity labels Aug 5, 2024
@bitnami-bot bitnami-bot closed this Aug 5, 2024
@carrodher carrodher reopened this Aug 7, 2024
@github-actions github-actions bot removed the solved label Aug 7, 2024
@github-actions github-actions bot requested a review from fmulero August 7, 2024 15:51
@carrodher carrodher added the on-hold Issues or Pull Requests with this label will never be considered stale label Aug 7, 2024
@LucasRakotomalala
Copy link
Contributor

LucasRakotomalala commented Oct 29, 2024

Hello there,
Thank you for your hard work.

I would like to know when this PR will be ready and merged?
Does it need a new contributor?

Kind regards,
Lucas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bitnami new-product Request new product to be added into the catalog on-hold Issues or Pull Requests with this label will never be considered stale stale 15 days without activity superset verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants