Add initial helm chart
This commit is contained in:
parent
6e4121f17d
commit
7194492447
21
contrib/charts/cert-manager/.helmignore
Normal file
21
contrib/charts/cert-manager/.helmignore
Normal file
@ -0,0 +1,21 @@
|
||||
# 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
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
4
contrib/charts/cert-manager/Chart.yaml
Normal file
4
contrib/charts/cert-manager/Chart.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
description: A Helm chart for Kubernetes
|
||||
name: cert-manager
|
||||
version: 0.1.0
|
||||
0
contrib/charts/cert-manager/templates/NOTES.txt
Normal file
0
contrib/charts/cert-manager/templates/NOTES.txt
Normal file
16
contrib/charts/cert-manager/templates/_helpers.tpl
Normal file
16
contrib/charts/cert-manager/templates/_helpers.tpl
Normal file
@ -0,0 +1,16 @@
|
||||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
*/}}
|
||||
{{- define "fullname" -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
13
contrib/charts/cert-manager/templates/certificate-crd.yaml
Normal file
13
contrib/charts/cert-manager/templates/certificate-crd.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
{{- if .Values.createCRD -}}
|
||||
apiVersion: apiextensions.k8s.io/v1beta1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: certificates.certmanager.k8s.io
|
||||
spec:
|
||||
group: certmanager.k8s.io
|
||||
version: v1alpha1
|
||||
names:
|
||||
kind: Certificate
|
||||
plural: certificates
|
||||
scope: Namespaced # Can also be cluster level using "Cluster"
|
||||
{{- end -}}
|
||||
27
contrib/charts/cert-manager/templates/deployment.yaml
Normal file
27
contrib/charts/cert-manager/templates/deployment.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "fullname" . }}
|
||||
labels:
|
||||
app: {{ template "name" . }}
|
||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ template "name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 12 }}
|
||||
{{- if .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
13
contrib/charts/cert-manager/templates/issuer-crd.yaml
Normal file
13
contrib/charts/cert-manager/templates/issuer-crd.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
{{- if .Values.createCRD -}}
|
||||
apiVersion: apiextensions.k8s.io/v1beta1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: issuers.certmanager.k8s.io
|
||||
spec:
|
||||
group: certmanager.k8s.io
|
||||
version: v1alpha1
|
||||
names:
|
||||
kind: Issuer
|
||||
plural: issuers
|
||||
scope: Namespaced # Can also be cluster level using "Cluster"
|
||||
{{- end -}}
|
||||
13
contrib/charts/cert-manager/values.yaml
Normal file
13
contrib/charts/cert-manager/values.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
# Default values for cert-manager.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: jetstackexperimental/cert-manager-controller
|
||||
tag: canary
|
||||
pullPolicy: Always
|
||||
|
||||
createCRD: true
|
||||
|
||||
resources: {}
|
||||
Loading…
Reference in New Issue
Block a user