Skip to content
Open
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
15 changes: 10 additions & 5 deletions charts/jxgh/jxboot-helmfile-resources/secret-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ spec:
- name: .dockerconfigjson
question: Docker JSON Configuration
noMask: true
help: This is the docker JSON configuration for authenticating with container
registries
help: This is the docker JSON configuration for authenticating with container registries
template: |-
{
{{- if eq .Requirements.cluster.provider "gke" }}
Expand Down Expand Up @@ -286,8 +285,14 @@ spec:
{{- end }}
"auth": {{ auth "jx-git-operator.jx-boot" "username" "password" | b64enc | quote}}
}
{{- if and .Requirements.cluster.chartRepository (secret "jx-boot-job-env-vars" "JX_REPOSITORY_USERNAME") (eq .Requirements.cluster.chartKind "oci") }}
,
{{- $chartRepo := .Requirements.cluster.chartRepository }}
{{- $chartHost := (splitList "/" $chartRepo)._0 }}
"{{ $chartHost }}": {
"auth": {{ printf "%s:%s" (secret "jx-boot-job-env-vars" "JX_REPOSITORY_USERNAME") (secret "jx-boot-job-env-vars" "JX_REPOSITORY_PASSWORD") | b64enc | quote }}
}
{{- end }}
{{- end }}
}
}


}