diff --git a/templates/kotsadm-config.yaml b/templates/kotsadm-config.yaml index 94c75d5..b8870bc 100644 --- a/templates/kotsadm-config.yaml +++ b/templates/kotsadm-config.yaml @@ -5,11 +5,13 @@ metadata: {{- include "admin-console.labels" . | nindent 4 }} name: kotsadm-confg data: - initial-app-images-pushed: "false" minio-enabled-snapshots: "false" - registry-is-read-only: "false" skip-preflights: {{ .Values.automation.skipPreflights | quote }} with-minio: "false" {{- if .Values.automation.appVersionLabel }} app-version-label: {{ .Values.automation.appVersionLabel | quote }} {{- end }} + {{- if .Values.registry.enabled }} + registry-is-read-only: "{{ .Values.registry.readOnly | quote }}" + kotsadm-registry: "{{ .Values.registry.endpoint | quote }}" + {{- end }} diff --git a/templates/kotsadm-default-license.yaml b/templates/kotsadm-default-license.yaml index ad2cc02..735a9b3 100644 --- a/templates/kotsadm-default-license.yaml +++ b/templates/kotsadm-default-license.yaml @@ -3,7 +3,7 @@ apiVersion: v1 kind: Secret metadata: annotations: - kots.io/airgap: "false" + kots.io/airgap: "{{ .Values.automation.airgap | quote }}" labels: kots.io/app: {{ .Values.automation.license.slug }} kots.io/automation: license @@ -12,4 +12,4 @@ metadata: type: Opaque data: license: {{ .Values.automation.license.data | b64enc }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/values.yaml.tmpl b/values.yaml.tmpl index 8aba86c..5032711 100644 --- a/values.yaml.tmpl +++ b/values.yaml.tmpl @@ -20,6 +20,12 @@ automation: appVersionLabel: "" config: values: "" + airgap: false + +registry: + enabled: false + readOnly: false + endpoint: "" imagePullSecrets: [] nameOverride: ""