From cca4acc8fc6e04f70adc5a30c2f331c5c3382255 Mon Sep 17 00:00:00 2001 From: Sebastian Florek Date: Wed, 29 Jan 2025 12:33:16 +0100 Subject: [PATCH] update osartifact chart --- charts/osartifact/Chart.yaml | 2 +- charts/osartifact/templates/osartifact.yaml | 4 +++- charts/osartifact/values.yaml | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/charts/osartifact/Chart.yaml b/charts/osartifact/Chart.yaml index 77718ea..8eda7f5 100644 --- a/charts/osartifact/Chart.yaml +++ b/charts/osartifact/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - name: Plural email: support@plural.sh type: application -version: 0.4.5 \ No newline at end of file +version: 0.5.0 \ No newline at end of file diff --git a/charts/osartifact/templates/osartifact.yaml b/charts/osartifact/templates/osartifact.yaml index ac54eeb..0876493 100644 --- a/charts/osartifact/templates/osartifact.yaml +++ b/charts/osartifact/templates/osartifact.yaml @@ -23,10 +23,12 @@ spec: name: {{ include "osartifact.fullname" . }}-config key: cloud-config.yaml outputImage: + cloud: {{ .Values.exporter.cloud }} registry: {{ .Values.exporter.registry }} repository: {{ .Values.exporter.repository }} tag: {{ .Values.exporter.tag }} - username: {{ .Values.exporter.username }} + {{- if (eq .Values.exporter.cloud "other") }} passwordSecretKeyRef: name: {{ .Values.exporter.configSecret.name | default (printf "%s-%s" (include "osartifact.fullname" .) "config") }} key: {{ .Values.exporter.configSecret.key }} + {{- end }} \ No newline at end of file diff --git a/charts/osartifact/values.yaml b/charts/osartifact/values.yaml index ff48db0..1481846 100644 --- a/charts/osartifact/values.yaml +++ b/charts/osartifact/values.yaml @@ -59,14 +59,14 @@ extraCloudConfig: ~ # Export configuration for the final ISO images exporter: + # Whether container registry is an ECR instance or other. One of: "ecr", "other" + cloud: other # Docker registry DNS name where we should export packed ISO images registry: ~ # Name of the repository where images should be stored repository: plural-edge # Image tag that should be used when pushing to the registry tag: latest - # Repository username used for basic auth - username: ~ # Secret that stores just the password for the docker registry user. # One of 'passwordSecret' or 'configSecret' must be provided. passwordSecret: