Skip to content

Commit

Permalink
feat: allow specifying logos via helm values
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Oct 2, 2024
1 parent 9209c93 commit 11f85ee
Show file tree
Hide file tree
Showing 6 changed files with 349 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/steadybit-platform/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-platform
description: steadybit Platform Helm chart for Kubernetes.
version: 1.0.85
version: 1.0.86
appVersion: 2.1.17
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
11 changes: 11 additions & 0 deletions charts/steadybit-platform/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,14 @@ checks if a volumne extra-cert is avaiable
{{- $name := default "postgresql" .Values.postgresql.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
returns either the url or the data-url for an image
*/}}
{{- define "imageUrl" -}}
{{- if .url -}}
{{- .url -}}
{{- else if .data -}}
{{- printf "data:%s;base64,%s" .mediaType (.data | b64enc) -}}
{{- end -}}
{{- end -}}
12 changes: 12 additions & 0 deletions charts/steadybit-platform/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,18 @@ spec:
- name: STEADYBIT_PLATFORM_NAME
value: {{ .Values.platform.name | quote }}
{{- end }}
{{- with include "imageUrl" .Values.platform.uiImages.navigation }}
- name: STEADYBIT_UI_IMAGES_NAVIGATION
value: {{ . | quote }}
{{- end }}
{{- with include "imageUrl" .Values.platform.uiImages.navigationLogo }}
- name: STEADYBIT_UI_IMAGES_NAVIGATIONLOGO
value: {{ . | quote }}
{{- end }}
{{- with include "imageUrl" .Values.platform.uiImages.loadingScreen }}
- name: STEADYBIT_UI_IMAGES_LOADINGSCREEN
value: {{ . | quote }}
{{- end }}
{{- with .Values.platform.env }}
{{ toYaml . | indent 12 }}
{{- end }}
Expand Down
270 changes: 270 additions & 0 deletions charts/steadybit-platform/tests/__snapshot__/deployment_test.yaml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,276 @@ manifest should not set terminationGracePeriodSeconds:
imagePullSecrets:
- name: RELEASE-NAME-steadybit-platform-pull-secrets
serviceAccountName: RELEASE-NAME-steadybit-platform
manifest should render image data urls:
1: |
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: steadybit-platform
app.kubernetes.io/version: 0.0.0
helm.sh/chart: steadybit-platform-0.0.0
name: RELEASE-NAME-steadybit-platform
namespace: NAMESPACE
spec:
minReadySeconds: 60
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-platform
strategy:
type: Recreate
template:
metadata:
annotations:
prometheus.io/path: /actuator/prometheus
prometheus.io/port: "9090"
prometheus.io/scrape: "true"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: steadybit-platform
app.kubernetes.io/version: 0.0.0
helm.sh/chart: steadybit-platform-0.0.0
spec:
containers:
- env:
- name: STEADYBIT_EXPERIMENT_EXECUTION_SHUTDOWN_CHECK_INTERVAL
value: 10s
- name: LOGGING_FORMAT
value: text
- name: INSTANCE_GROUP
valueFrom:
fieldRef:
fieldPath: metadata.labels['pod-template-hash']
- name: STEADYBIT_TENANT_MODE
value: ONPREM
- name: STEADYBIT_TENANT_AGENTKEY
valueFrom:
secretKeyRef:
key: key
name: RELEASE-NAME-steadybit-platform
- name: STEADYBIT_TENANT_KEY
value: onprem
- name: STEADYBIT_TENANT_NAME
value: onprem
- name: STEADYBIT_WEB_PUBLIC_EXPERIMENT_PORT
value: "80"
- name: SPRING_DATASOURCE_USERNAME
value: steadybit
- name: SPRING_DATASOURCE_URL
value: jdbc:postgresql://RELEASE-NAME-postgresql:5432/steadybit
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: RELEASE-NAME-postgresql
- name: STEADYBIT_UI_IMAGES_NAVIGATION
value: data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgaWQ9IlNWR1JlcG9fYmdDYXJyaWVyIiBzdHJva2Utd2lkdGg9IjAiPjwvZz48ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvZz48ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+IDxwYXRoIGQ9Ik0xMS4yNjkxIDQuNDExMTVDMTEuNTAwNiAzLjg5MTc3IDExLjYxNjQgMy42MzIwOCAxMS43Nzc2IDMuNTUyMTFDMTEuOTE3NiAzLjQ4MjYzIDEyLjA4MiAzLjQ4MjYzIDEyLjIyMiAzLjU1MjExQzEyLjM4MzIgMy42MzIwOCAxMi40OTkgMy44OTE3NyAxMi43MzA1IDQuNDExMTVMMTQuNTc0NSA4LjU0ODA4QzE0LjY0MyA4LjcwMTYyIDE0LjY3NzIgOC43NzgzOSAxNC43MzAyIDguODM3MThDMTQuNzc3IDguODg5MiAxNC44MzQzIDguOTMwODEgMTQuODk4MiA4Ljk1OTI5QzE0Ljk3MDUgOC45OTE0OSAxNS4wNTQxIDkuMDAwMzEgMTUuMjIxMyA5LjAxNzk1TDE5LjcyNTYgOS40OTMzNkMyMC4yOTExIDkuNTUzMDQgMjAuNTczOCA5LjU4Mjg4IDIwLjY5OTcgOS43MTE0N0MyMC44MDkgOS44MjMxNiAyMC44NTk4IDkuOTc5NTYgMjAuODM3IDEwLjEzNDJDMjAuODEwOCAxMC4zMTIyIDIwLjU5OTYgMTAuNTAyNSAyMC4xNzcyIDEwLjg4MzJMMT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zLjkxNTRMMy44MjI0NiAxMC44ODMyQzMuNDAwMDUgMTAuNTAyNSAzLjE4ODg0IDEwLjMxMjIgMy4xNjI1OCAxMC4xMzQyQzMuMTM5NzggOS45Nzk1NiAzLjE5MDU5IDkuODIzMTYgMy4yOTk5MyA5LjcxMTQ3QzMuNDI1ODEgOS41ODI4OCAzLjcwODU2IDkuNTUzMDQgNC4yNzQwNiA5LjQ5MzM2TDguNzc4MzUgOS4wMTc5NUM4Ljk0NTUzIDkuMDAwMzEgOS4wMjkxMSA4Ljk5MTQ5IDkuMTAxMzkgOC45NTkyOUM5LjE2NTM0IDguOTMwODEgOS4yMjI2IDguODg5MiA5LjI2OTQ2IDguODM3MThDOS4zMjI0MSA4Ljc3ODM5IDkuMzU2NjMgOC43MDE2MiA5LjQyNTA4IDguNTQ4MDhMMTEuMjY5MSA0LjQxMTE1WiIgc3Ryb2tlPSIjOTZkMzVmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjwvZz48L3N2Zz4=
- name: STEADYBIT_AUTH_PROVIDER
value: static
- name: STEADYBIT_AUTH_STATIC_0_USERNAME
value: admin
- name: STEADYBIT_AUTH_STATIC_0_PASSWORD
value: '{noop}admin'
envFrom: []
image: docker.steadybit.io/steadybit/platform:0.0.0
imagePullPolicy: Always
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- sleep 20
livenessProbe:
failureThreshold: 5
httpGet:
path: /api/health/liveness
port: ui-port
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: steadybit-platform
ports:
- containerPort: 8080
name: ui-port
protocol: TCP
- containerPort: 7878
name: websocket-port
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /api/health/readiness
port: ui-port
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
cpu: 4000m
memory: 4Gi
requests:
cpu: 2000m
memory: 2Gi
startupProbe:
failureThreshold: 200
httpGet:
path: /api/health/liveness
port: ui-port
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
volumeMounts: null
imagePullSecrets:
- name: RELEASE-NAME-steadybit-platform-pull-secrets
serviceAccountName: RELEASE-NAME-steadybit-platform
manifest should render image urls:
1: |
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: steadybit-platform
app.kubernetes.io/version: 0.0.0
helm.sh/chart: steadybit-platform-0.0.0
name: RELEASE-NAME-steadybit-platform
namespace: NAMESPACE
spec:
minReadySeconds: 60
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-platform
strategy:
type: Recreate
template:
metadata:
annotations:
prometheus.io/path: /actuator/prometheus
prometheus.io/port: "9090"
prometheus.io/scrape: "true"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: steadybit-platform
app.kubernetes.io/version: 0.0.0
helm.sh/chart: steadybit-platform-0.0.0
spec:
containers:
- env:
- name: STEADYBIT_EXPERIMENT_EXECUTION_SHUTDOWN_CHECK_INTERVAL
value: 10s
- name: LOGGING_FORMAT
value: text
- name: INSTANCE_GROUP
valueFrom:
fieldRef:
fieldPath: metadata.labels['pod-template-hash']
- name: STEADYBIT_TENANT_MODE
value: ONPREM
- name: STEADYBIT_TENANT_AGENTKEY
valueFrom:
secretKeyRef:
key: key
name: RELEASE-NAME-steadybit-platform
- name: STEADYBIT_TENANT_KEY
value: onprem
- name: STEADYBIT_TENANT_NAME
value: onprem
- name: STEADYBIT_WEB_PUBLIC_EXPERIMENT_PORT
value: "80"
- name: SPRING_DATASOURCE_USERNAME
value: steadybit
- name: SPRING_DATASOURCE_URL
value: jdbc:postgresql://RELEASE-NAME-postgresql:5432/steadybit
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: RELEASE-NAME-postgresql
- name: STEADYBIT_UI_IMAGES_NAVIGATION
value: https://example.com/navigation.png
- name: STEADYBIT_UI_IMAGES_NAVIGATIONLOGO
value: https://example.com/navigationLogo.png
- name: STEADYBIT_UI_IMAGES_LOADINGSCREEN
value: https://example.com/loadingScreen.png
- name: STEADYBIT_AUTH_PROVIDER
value: static
- name: STEADYBIT_AUTH_STATIC_0_USERNAME
value: admin
- name: STEADYBIT_AUTH_STATIC_0_PASSWORD
value: '{noop}admin'
envFrom: []
image: docker.steadybit.io/steadybit/platform:0.0.0
imagePullPolicy: Always
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- sleep 20
livenessProbe:
failureThreshold: 5
httpGet:
path: /api/health/liveness
port: ui-port
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: steadybit-platform
ports:
- containerPort: 8080
name: ui-port
protocol: TCP
- containerPort: 7878
name: websocket-port
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /api/health/readiness
port: ui-port
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
cpu: 4000m
memory: 4Gi
requests:
cpu: 2000m
memory: 2Gi
startupProbe:
failureThreshold: 200
httpGet:
path: /api/health/liveness
port: ui-port
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
volumeMounts: null
imagePullSecrets:
- name: RELEASE-NAME-steadybit-platform-pull-secrets
serviceAccountName: RELEASE-NAME-steadybit-platform
manifest should set terminationGracePeriodSeconds:
1: |
apiVersion: apps/v1
Expand Down
Loading

0 comments on commit 11f85ee

Please sign in to comment.