Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ spec:
name: {{ .Values.agent.bearerTokenSecretName | default (include "kubernetes-agent.preinstall.secrets.serverAuth" .) }}
key: bearer-token
{{- end }}
{{- if or .Values.agent.username .Values.agent.usernamePasswordSecretName }}
{{- if or .Values.global.username .Values.agent.username .Values.agent.usernamePasswordSecretName }}
- name: "ServerUsername"
valueFrom:
secretKeyRef:
name: {{ .Values.agent.usernamePasswordSecretName | default (include "kubernetes-agent.preinstall.secrets.serverAuth" .) }}
key: username
{{- end }}
{{- if or .Values.agent.password .Values.agent.usernamePasswordSecretName }}
{{- if or .Values.global.password .Values.agent.password .Values.agent.usernamePasswordSecretName }}
- name: "ServerPassword"
valueFrom:
secretKeyRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ data:
{{- if and (not .Values.agent.bearerTokenSecretName) (not .Values.agent.serverApiKeySecretName) (not .Values.agent.usernamePasswordSecretName) }}
{{- with .Values.agent.bearerToken }}
bearer-token: {{ . | b64enc }}
{{- end }}
{{- end }}
{{- with .Values.agent.serverApiKey }}
api-key: {{ . | b64enc }}
{{- end }}
{{- with .Values.agent.username }}
{{- with (coalesce .Values.global.username .Values.agent.username) }}
username: {{ . | b64enc }}
{{- end }}
{{- with .Values.agent.password }}
{{- with (coalesce .Values.global.password .Values.agent.password) }}
password: {{ . | b64enc }}
{{- end }}
{{- end }}
{{- with .Values.agent.pollingProxy.password }}
polling-proxy-password: {{ . | b64enc }}
{{- end }}
{{- end }}
18 changes: 9 additions & 9 deletions charts/kubernetes-agent/templates/tentacle-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,28 +165,28 @@ spec:
{{- if or .Values.agent.bearerToken .Values.agent.bearerTokenSecretName }}
- name: "BearerToken"
valueFrom:
secretKeyRef:
secretKeyRef:
name: {{ .Values.agent.bearerTokenSecretName | default (include "kubernetes-agent.secrets.serverAuth" .) }}
key: bearer-token
{{- end }}
{{- if or .Values.agent.username .Values.agent.usernamePasswordSecretName }}
{{- if or .Values.global.username .Values.agent.username .Values.agent.usernamePasswordSecretName }}
- name: "ServerUsername"
valueFrom:
secretKeyRef:
secretKeyRef:
name: {{ .Values.agent.usernamePasswordSecretName | default (include "kubernetes-agent.secrets.serverAuth" .) }}
key: username
{{- end }}
{{- if or .Values.agent.password .Values.agent.usernamePasswordSecretName }}
{{- if or .Values.global.password .Values.agent.password .Values.agent.usernamePasswordSecretName }}
- name: "ServerPassword"
valueFrom:
secretKeyRef:
secretKeyRef:
name: {{ .Values.agent.usernamePasswordSecretName | default (include "kubernetes-agent.secrets.serverAuth" .) }}
key: password
{{- end }}
{{- if .Values.agent.certificate }}
- name: "TentacleCertificateBase64"
valueFrom:
secretKeyRef:
secretKeyRef:
name: {{ include "kubernetes-agent.secrets.certificate" . }}
key: certificate
{{- end}}
Expand All @@ -202,14 +202,14 @@ spec:
- name: "TentaclePollingProxyPort"
value: {{ .Values.agent.pollingProxy.port | quote }}
- name: "TentaclePollingProxyUsername"
value: {{ .Values.agent.pollingProxy.username | quote }}
value: {{ .Values.agent.pollingProxy.username | quote }}
{{- if .Values.agent.pollingProxy.password }}
- name: "TentaclePollingProxyPassword"
valueFrom:
secretKeyRef:
secretKeyRef:
name: {{ include "kubernetes-agent.secrets.serverAuth" . }}
key: polling-proxy-password
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.agent.containers.tentacle.env }}
{{- toYaml . | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ data:
{{- if and (not .Values.agent.bearerTokenSecretName) (not .Values.agent.serverApiKeySecretName) (not .Values.agent.usernamePasswordSecretName) }}
{{- with .Values.agent.bearerToken }}
bearer-token: {{ . | b64enc }}
{{- end }}
{{- end }}
{{- with .Values.agent.serverApiKey }}
api-key: {{ . | b64enc }}
{{- end }}
{{- with .Values.agent.username }}
{{- with (coalesce .Values.global.username .Values.agent.username) }}
username: {{ . | b64enc }}
{{- end }}
{{- with .Values.agent.password }}
{{- with (coalesce .Values.global.password .Values.agent.password) }}
password: {{ . | b64enc }}
{{- end }}
{{- end }}
{{- with .Values.agent.pollingProxy.password }}
polling-proxy-password: {{ . | b64enc }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/octopus-deploy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ dependencies:
- name: mssql
condition: mssql.enabled
version: "0.0.1"
- name: kubernetes-agent
condition: kubernetes-agent.enabled
repository: "file://../kubernetes-agent"
version: "*"
13 changes: 8 additions & 5 deletions charts/octopus-deploy/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
global:
# Set the default storageClass to be used for all persistent volume claims
# this is overridden by the storageClassName in the individual volume claims if specified
storageClass: ""

username: ""
password: ""

octopus:
# Must be set to "Y" or true to accept the EULA at https://octopus.com/legal/customer-agreement
acceptEula: "N"
Expand Down Expand Up @@ -229,8 +237,3 @@ hooks:
# whose selector matchLabels still contain the legacy `helm.sh/chart` key, so that
# the StatefulSet can be re-created with the corrected selector.
enableSelectorLabelsFix: true

global:
# Set the default storageClass to be used for all persistent volume claims
# this is overridden by the storageClassName in the individual volume claims if specified
storageClass: ""
Loading