-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add helm chart * added pre-install hook to the helm chart, added namespace handling * feat: use existing secret Only add AWS AK/SK to secrets. Use directly non-secret ENV from values. Namespace secret-related keys under "auth:" to mimick Bitnami values.yaml Add a ref to the helm chart repo (if github pages are activated, see https://medium.com/@mattiaperi/create-a-public-helm-chart-repository-with-github-pages-49b180dbb417 and https://docs.github.com/en/pages) * chore: reuse lables defined in the template * fix: add annotations to ensure service accounts are created before the job runs * chore: rename overrideNamespaces to targetNamespace To make it coherent with ENV name * fix: allow actions across namespaces with ClusterRole * Tweak the readme * Simplify title * Another tweak; * Start refactoring and simplifying the Helm charts * Fill in secret definition * Continue trimming * Split into files, remove hooks, clean up values. * Make the most common parameters easier to edit * Seems to be working now * Fix version of the image * Try adding a helm chart releaser * Move some files around * remove custom charts dir name * remove charts * Undo everything * Try rolling my own helm release * Rename to index * Add a timezone * Keep trying to get the timezone right * Try to update the date again * Try creating simple GH pages * Rename to docs * - Merge all template yaml into one file - delete example directory because we'll be changing that - delete docs directory because the helm index is now in a different repo * Major cleanup of readme * Wrap up final version of things * Bump chart to version 1.0.0 * Add contributors * Improve the readme * Fix file encoding Co-authored-by: James Hebden <[email protected]> Co-authored-by: Cyril Duchon-Doris <[email protected]> Co-authored-by: James "ec0" Hebden <[email protected]> Co-authored-by: Nabeel Sulieman <[email protected]>
- Loading branch information
1 parent
bbc08ac
commit f36fcbf
Showing
18 changed files
with
399 additions
and
171 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.idea | ||
k8s-ecr-login-renew.exe | ||
k8s-ecr-login-renew | ||
*~ |
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
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
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,5 @@ | ||
.vs | ||
.idea | ||
k8s-ecr-login-renew.exe | ||
k8s-ecr-login-renew | ||
*~ |
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,16 @@ | ||
apiVersion: v2 | ||
appVersion: 1.7.1 | ||
description: Deploys a cronJob which will renew ECR imagePullSecrets automatically | ||
name: k8s-ecr-login-renew | ||
version: 1.0.0 | ||
maintainers: | ||
- name: Nabeel Sulieman | ||
url: https://nabeel.dev | ||
- name: James "ec0" Hebden | ||
email: [email protected] | ||
keywords: | ||
- aws | ||
- ecr | ||
- imagePullSecrets | ||
sources: | ||
- https://github.com/nabsul/k8s-ecr-login-renew |
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 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ required "A service account name is required" .Values.names.serviceAcount }} | ||
namespace: {{ .Release.Namespace | default "default" }} | ||
{{- if .Values.forHelm }} | ||
labels: | ||
app.kubernetes.io/name: {{ .Chart.Name }} | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ required "A cluster role name is required" .Values.names.clusterRole }} | ||
{{- if .Values.forHelm }} | ||
labels: | ||
app.kubernetes.io/name: {{ .Chart.Name }} | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
rules: | ||
- apiGroups: [""] | ||
resources: | ||
- namespaces | ||
verbs: | ||
- list | ||
- apiGroups: [""] | ||
resources: | ||
- secrets | ||
- serviceaccounts | ||
- serviceaccounts/token | ||
verbs: | ||
- 'delete' | ||
- 'create' | ||
- 'patch' | ||
- 'get' |
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,20 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ required "A cluster role binding name is required" .Values.names.clusterRoleBinding }} | ||
{{- if .Values.forHelm }} | ||
labels: | ||
app.kubernetes.io/name: {{ .Chart.Name }} | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ required "A cluster role name is requred" .Values.names.clusterRole }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ required "A service account name is required" .Values.names.serviceAcount }} | ||
namespace: {{ .Release.Namespace | default "default" }} |
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,19 @@ | ||
{{- if .Values.awsAccessKeyId }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ required "A secret name must be defined" .Values.aws.secretName }} | ||
namespace: {{ .Release.Namespace | default "default" }} | ||
{{- if .Values.forHelm }} | ||
labels: | ||
app.kubernetes.io/name: {{ .Chart.Name }} | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
type: Opaque | ||
stringData: | ||
{{ required "Secret key for access key id must be defined" .Values.aws.secretKeys.accessKeyId }}: {{ required "Value for access key id must be defined" .Values.awsAccessKeyId }} | ||
{{ required "Secret key for secret access key must be defined" .Values.aws.secretKeys.secretAccessKey }}: {{ required "Value for secret access key must be defined" .Values.awsSecretAccessKey }} | ||
{{- end }} |
Oops, something went wrong.