Compare commits

..

1 Commits

Author SHA1 Message Date
Martin Šalata
cd1b33b523 Fix certificate generation script arguments 2021-04-04 20:08:56 +02:00
7 changed files with 10 additions and 21 deletions

View File

@@ -4,7 +4,6 @@ on:
push: push:
branches: branches:
- main - main
- devel
jobs: jobs:
release: release:

View File

@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # 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. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.15 version: 0.0.10
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to

View File

@@ -89,7 +89,6 @@ apiVersion: certificates.k8s.io/v1
kind: CertificateSigningRequest kind: CertificateSigningRequest
metadata: metadata:
name: ${csrName} name: ${csrName}
namespace: ${namespace}
spec: spec:
signerName: kubernetes.io/kubelet-serving signerName: kubernetes.io/kubelet-serving
groups: groups:

View File

@@ -5,7 +5,7 @@ metadata:
labels: labels:
{{- include "imagepullsecret-injector.labels" . | nindent 4 }} {{- include "imagepullsecret-injector.labels" . | nindent 4 }}
spec: spec:
schedule: '* * * * 0' schedule: '* * * * *'
jobTemplate: jobTemplate:
metadata: metadata:
name: "{{ .Release.Name }}" name: "{{ .Release.Name }}"
@@ -21,12 +21,9 @@ spec:
image: "{{ .Values.certificateGeneratorImage.registry }}/{{ .Values.certificateGeneratorImage.repository }}:{{ .Values.certificateGeneratorImage.tag | default .Chart.AppVersion }}" image: "{{ .Values.certificateGeneratorImage.registry }}/{{ .Values.certificateGeneratorImage.repository }}:{{ .Values.certificateGeneratorImage.tag | default .Chart.AppVersion }}"
command: ["/entrypoint/entrypoint.sh"] command: ["/entrypoint/entrypoint.sh"]
args: args:
- --service - --service "{{ include "imagepullsecret-injector.serviceName" . }}"
- "{{ include "imagepullsecret-injector.serviceName" . }}" - --namespace "{{ .Release.Namespace }}"
- --namespace - --secret "{{ include "imagepullsecret-injector.certificateSecretName" . }}"
- "{{ .Release.Namespace }}"
- --secret
- "{{ include "imagepullsecret-injector.certificateSecretName" . }}"
volumeMounts: volumeMounts:
- mountPath: "/entrypoint" - mountPath: "/entrypoint"
name: entrypoint name: entrypoint

View File

@@ -14,12 +14,9 @@ spec:
image: "{{ .Values.certificateGeneratorImage.registry }}/{{ .Values.certificateGeneratorImage.repository }}:{{ .Values.certificateGeneratorImage.tag | default .Chart.AppVersion }}" image: "{{ .Values.certificateGeneratorImage.registry }}/{{ .Values.certificateGeneratorImage.repository }}:{{ .Values.certificateGeneratorImage.tag | default .Chart.AppVersion }}"
command: ["/entrypoint/entrypoint.sh"] command: ["/entrypoint/entrypoint.sh"]
args: args:
- --service - --service "{{ include "imagepullsecret-injector.serviceName" . }}"
- "{{ include "imagepullsecret-injector.serviceName" . }}" - --namespace "{{ .Release.Namespace }}"
- --namespace - --secret "{{ include "imagepullsecret-injector.certificateSecretName" . }}"
- "{{ .Release.Namespace }}"
- --secret
- "{{ include "imagepullsecret-injector.certificateSecretName" . }}"
volumeMounts: volumeMounts:
- mountPath: "/entrypoint" - mountPath: "/entrypoint"
name: entrypoint name: entrypoint

View File

@@ -30,16 +30,15 @@ rules:
- list - list
- get - get
- apiGroups: - apiGroups:
- certificates.k8s.io - "certificates.k8s.io/v1"
resources: resources:
- certificatesigningrequests - certificatesigningrequests
verbs: verbs:
- create - create
- list - list
- get - get
- delete
- apiGroups: - apiGroups:
- certificates.k8s.io - "certificates.k8s.io/v1"
resources: resources:
- certificatesigningrequests/approval - certificatesigningrequests/approval
verbs: verbs:

View File

@@ -21,5 +21,3 @@ webhooks:
resources: ["serviceaccounts"] resources: ["serviceaccounts"]
admissionReviewVersions: ["v1", "v1beta1"] admissionReviewVersions: ["v1", "v1beta1"]
sideEffects: None sideEffects: None
# The default "Fail" option prevents Gardener cluster to be hibernated
failurePolicy: Ignore