-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
control-service: builder base image in helm (#1359)
Why Within this PR we add support in a builder image for using extra info from k8s through secrets in the namespace. In this PR we create the actual secret in the namespace if the info required to create it is present. How was this tested. Basic linting and looking at a printed out chart. Signed-off-by: murphp15 [email protected] Signed-off-by: murphp15 <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...ervice/projects/helm_charts/pipelines-control-service/templates/secret_pull_base_img.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- if .Values.deploymentDataJobBaseImage.password }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: builder-secrets | ||
namespace: {{ .Values.controlK8sNamespace }} | ||
labels: {{- include "pipelines-control-service.labels" . | nindent 4 }} | ||
type: kubernetes.io/dockerconfigjson | ||
data: | ||
{{/* Within this section any set of properties can be set and then used in a job builder image | ||
at the moment the only one set is extra_auth: Within this property docker config should be included to connect to the registry used to pull the image from. */}} | ||
extra_auth: {{- printf ", \"%s\": {\"auth\": \"%s\"}" .Values.deploymentDataJobBaseImage.registry (printf "%s:%s" .Values.deploymentDataJobBaseImage.username .Values.deploymentDataJobBaseImage.password | b64enc) | b64enc }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters