Skip to content

Commit

Permalink
feat: added platform.name to the platform helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuDa committed Dec 4, 2023
1 parent 35d3b58 commit 9172a61
Show file tree
Hide file tree
Showing 5 changed files with 139 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: 0.6.9
version: 0.6.10
appVersion: latest
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
4 changes: 4 additions & 0 deletions charts/steadybit-platform/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ spec:
- name: STEADYBIT_PROXY_PASSWORD
value: {{ .Values.platform.proxy.password | quote }}
{{- end }}
{{- if .Values.platform.name }}
- name: STEADYBIT_PLATFORM_NAME
value: {{ .Values.platform.name | quote }}
{{- end }}
{{- with .Values.platform.env }}
{{ toYaml . | indent 12 }}
{{- end }}
Expand Down
122 changes: 122 additions & 0 deletions charts/steadybit-platform/tests/__snapshot__/deployment_test.yaml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -637,3 +637,125 @@ manifest should support init container:
cpu: 2000m
memory: 2Gi
serviceAccountName: RELEASE-NAME-steadybit-platform
manifest should support various variables:
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: LOGGING_FORMAT
value: text
- 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_URL
value: https://example.steadybit.com
- name: STEADYBIT_WEB_PUBLIC_EXPERIMENT_PORT
value: "80"
- name: STEADYBIT_WEB_PUBLIC_EXPERIMENT_URL
value: https://example.ingress.steadybit.com
- 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_PLATFORM_NAME
value: test-stage
- 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:latest
imagePullPolicy: Always
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
10 changes: 10 additions & 0 deletions charts/steadybit-platform/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,15 @@ tests:
database:
migration:
useInitContainer: true
asserts:
- matchSnapshot: {}
- it: manifest should support various variables
chart:
version: 0.0.0
set:
platform:
publicWebUrl: https://example.steadybit.com
ingressOrigin: https://example.ingress.steadybit.com
name: "test-stage"
asserts:
- matchSnapshot: {}
2 changes: 2 additions & 0 deletions charts/steadybit-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
platform:
# platform.name -- Used to identify the platform when running multiple installations (e.g. in a multi-stage setup). Should be omitted when using a single installation.
name: null
tenant:
mode: "ONPREM"
# platform.tenant.key -- Name for the tenant assigned to you.
Expand Down

0 comments on commit 9172a61

Please sign in to comment.