Merge "chore(certs): add labels"

This commit is contained in:
Zuul 2020-07-10 18:36:23 +00:00 committed by Gerrit Code Review
commit 1590c6ffc4
4 changed files with 15 additions and 1 deletions

View File

@ -11,5 +11,8 @@
# limitations under the License. # limitations under the License.
--- ---
dependencies: [] dependencies:
- name: helm-toolkit
repository: http://localhost:8879/charts
version: 0.1.0
... ...

View File

@ -12,13 +12,18 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/}} */}}
{{- if .Values.manifests.issuer }}
{{- $envAll := . }}
--- ---
apiVersion: cert-manager.io/v1alpha3 apiVersion: cert-manager.io/v1alpha3
kind: Issuer kind: Issuer
metadata: metadata:
name: {{ .Values.conf.ca.issuer.name }} name: {{ .Values.conf.ca.issuer.name }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
labels:
{{ tuple $envAll "cert-manager" "issuer" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
spec: spec:
ca: ca:
secretName: {{ .Values.conf.ca.secret.name }} secretName: {{ .Values.conf.ca.secret.name }}
... ...
{{- end }}

View File

@ -12,6 +12,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/}} */}}
{{- if .Values.manifests.secret_ca }}
--- ---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
@ -22,3 +23,4 @@ data:
tls.crt: {{ .Values.conf.ca.secret.crt | default "" | b64enc }} tls.crt: {{ .Values.conf.ca.secret.crt | default "" | b64enc }}
tls.key: {{ .Values.conf.ca.secret.key | default "" | b64enc }} tls.key: {{ .Values.conf.ca.secret.key | default "" | b64enc }}
... ...
{{- end }}

View File

@ -18,4 +18,8 @@ conf:
name: secret-name name: secret-name
crt: null crt: null
key: null key: null
manifests:
issuer: true
secret_ca: true
... ...