diff --git a/charts/docker-registry-secrets/.helmignore b/charts/docker-registry-secrets/.helmignore deleted file mode 100644 index 0e8a0eb36..000000000 --- a/charts/docker-registry-secrets/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/docker-registry-secrets/Chart.yaml b/charts/docker-registry-secrets/Chart.yaml deleted file mode 100644 index b5850cb73..000000000 --- a/charts/docker-registry-secrets/Chart.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v2 -name: docker-registry-secrets -description: A Helm chart to keep all the secrets for the docker registry access 🔒 🐳 - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 diff --git a/charts/docker-registry-secrets/templates/_helpers.tpl b/charts/docker-registry-secrets/templates/_helpers.tpl deleted file mode 100644 index fa5f111c8..000000000 --- a/charts/docker-registry-secrets/templates/_helpers.tpl +++ /dev/null @@ -1,6 +0,0 @@ -{{/* https://helm.sh/docs/howto/charts_tips_and_tricks/ */}} -{{- define "imagePullSecret" }} -{{- with .Values.imageCredentials }} -{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }} -{{- end }} -{{- end }} diff --git a/charts/docker-registry-secrets/templates/registry-secret.yaml b/charts/docker-registry-secrets/templates/registry-secret.yaml deleted file mode 100644 index 2e3c5b0d7..000000000 --- a/charts/docker-registry-secrets/templates/registry-secret.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{- if .Values.imageCredentials -}} -{{- if .Values.imageCredentials.enabled -}} -{{- range .Values.imageCredentials.namespaces }} ---- -apiVersion: v1 -kind: Secret -metadata: - name: dockerhub-credential - namespace: {{ . }} -type: kubernetes.io/dockerconfigjson -data: - .dockerconfigjson: {{ template "imagePullSecret" $ }} -{{- end -}} -{{- end -}} -{{- end -}} diff --git a/charts/docker-registry-secrets/values.yaml b/charts/docker-registry-secrets/values.yaml deleted file mode 100644 index ebbc8a643..000000000 --- a/charts/docker-registry-secrets/values.yaml +++ /dev/null @@ -1,7 +0,0 @@ -imageCredentials: - enabled: false - registry: https://index.docker.io/v1/ # DockerHub default - username: someone - password: sillyness - email: someone@host.com - namespaces: []