Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Moved octopus passwords into a secret
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed May 10, 2021
1 parent bc239c0 commit c90ef5b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.31
version: 0.1.32

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
37 changes: 32 additions & 5 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
apiVersion: v1
data:
adminUsername: {{.Values.octopus.username | b64enc}}
adminPassword: {{.Values.octopus.password | b64enc}}
licenseKey: {{.Values.octopus.licenseKeyBase64 | b64enc}}
masterKey: {{.Values.octopus.masterKey | b64enc}}
dbConnString: {{ tpl .Values.octopus.connectionString . | b64enc}}
kind: Secret
metadata:
name: octopus-secrets
type: Opaque
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down Expand Up @@ -71,19 +83,34 @@ spec:
fieldRef:
fieldPath: metadata.name
- name: DB_CONNECTION_STRING
value: {{ tpl .Values.octopus.connectionString . }}
valueFrom:
secretKeyRef:
name: octopus-secrets
key: dbConnString
- name: ADMIN_USERNAME
value: {{.Values.octopus.username}}
valueFrom:
secretKeyRef:
name: octopus-secrets
key: adminUsername
- name: ADMIN_PASSWORD
value: {{.Values.octopus.password}}
valueFrom:
secretKeyRef:
name: octopus-secrets
key: adminPassword
- name: ADMIN_EMAIL
value: {{.Values.octopus.email}}
- name: OCTOPUS_SERVER_BASE64_LICENSE
# Your license key goes here. When using more than one node, a HA license is required.
# Without a HA license, the stateful set can have a replica count of 1.
value: {{ .Values.octopus.licenseKeyBase64 }}
valueFrom:
secretKeyRef:
name: octopus-secrets
key: licenseKey
- name: MASTER_KEY
value: {{.Values.octopus.masterKey}}
valueFrom:
secretKeyRef:
name: octopus-secrets
key: masterKey
{{- if not .Values.octopus.enableDockerInDocker }}
- DISABLE_DIND = !!str "Y"
{{- end }}
Expand Down

0 comments on commit c90ef5b

Please sign in to comment.