Skip to content

Commit 058fa58

Browse files
committed
Introduce contour-crds and contour-gateway-provisioner
Signed-off-by: Phillip Schichtel <[email protected]>
1 parent 6c50cbf commit 058fa58

File tree

11 files changed

+24295
-0
lines changed

11 files changed

+24295
-0
lines changed

charts/contour-crds/Chart.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
annotations:
2+
category: Infrastructure
3+
licenses: Apache-2.0
4+
apiVersion: v2
5+
appVersion: 1.32.0
6+
description: Contour is an open source Kubernetes ingress controller that works by deploying the Envoy proxy as a reverse proxy and load balancer.
7+
home: https://projectcontour.io/
8+
keywords:
9+
- ingress
10+
- envoy
11+
- contour
12+
maintainers:
13+
- name: Contour Team
14+
name: contour-crds
15+
sources:
16+
- https://github.com/projectcontour/helm-charts/tree/main/charts/contour-crds
17+
version: 0.1.0

charts/contour-crds/templates/contour-crds.yaml

Lines changed: 8802 additions & 0 deletions
Large diffs are not rendered by default.

charts/contour-crds/templates/gateway-api-crds.yaml

Lines changed: 14979 additions & 0 deletions
Large diffs are not rendered by default.

charts/contour-crds/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
enableGatewayCRDs: true
2+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
annotations:
2+
category: Infrastructure
3+
licenses: Apache-2.0
4+
apiVersion: v2
5+
appVersion: 1.32.1
6+
description: Contour is an open source Kubernetes ingress controller that works by deploying the Envoy proxy as a reverse proxy and load balancer.
7+
home: https://projectcontour.io/
8+
keywords:
9+
- ingress
10+
- envoy
11+
- contour
12+
maintainers:
13+
- name: Contour Team
14+
name: contour-gateway-provisioner
15+
sources:
16+
- https://github.com/projectcontour/helm-charts/tree/main/charts/contour-gateway-provisioner
17+
version: 0.1.0
18+
dependencies:
19+
- name: contour-crds
20+
repository: oci://ghcr.io/projectcontour/helm-charts
21+
version: 0.1.0
22+
condition: contour-crds.enabled
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "contour-gateway-provisioner.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "contour-gateway-provisioner.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "contour-gateway-provisioner.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "contour-gateway-provisioner.labels" -}}
37+
helm.sh/chart: {{ include "contour-gateway-provisioner.chart" . }}
38+
{{ include "contour-gateway-provisioner.selectorLabels" . }}
39+
{{- if .Chart.AppVersion }}
40+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41+
{{- end }}
42+
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- end }}
44+
45+
{{/*
46+
Selector labels
47+
*/}}
48+
{{- define "contour-gateway-provisioner.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "contour-gateway-provisioner.name" . }}
50+
app.kubernetes.io/instance: {{ .Release.Name }}
51+
{{- end }}
52+
53+
{{/*
54+
Create the name of the service account to use
55+
*/}}
56+
{{- define "contour-gateway-provisioner.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "contour-gateway-provisioner.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: {{ include "contour-gateway-provisioner.fullname" . }}
5+
labels:
6+
{{- include "contour-gateway-provisioner.labels" . | nindent 4 }}
7+
spec:
8+
replicas: {{ .Values.replicaCount }}
9+
selector:
10+
matchLabels:
11+
{{- include "contour-gateway-provisioner.selectorLabels" . | nindent 6 }}
12+
template:
13+
metadata:
14+
{{- with .Values.podAnnotations }}
15+
annotations:
16+
{{- toYaml . | nindent 8 }}
17+
{{- end }}
18+
labels:
19+
{{- include "contour-gateway-provisioner.labels" . | nindent 8 }}
20+
{{- with .Values.podLabels }}
21+
{{- toYaml . | nindent 8 }}
22+
{{- end }}
23+
spec:
24+
{{- with .Values.imagePullSecrets }}
25+
imagePullSecrets:
26+
{{- toYaml . | nindent 8 }}
27+
{{- end }}
28+
serviceAccountName: {{ include "contour-gateway-provisioner.serviceAccountName" . }}
29+
{{- with .Values.podSecurityContext }}
30+
securityContext:
31+
{{- toYaml . | nindent 8 }}
32+
{{- end }}
33+
terminationGracePeriodSeconds: 10
34+
containers:
35+
- name: {{ .Chart.Name }}
36+
{{- with .Values.securityContext }}
37+
securityContext:
38+
{{- toYaml . | nindent 12 }}
39+
{{- end }}
40+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (print "v" .Chart.AppVersion) }}"
41+
imagePullPolicy: {{ .Values.image.pullPolicy }}
42+
env:
43+
- name: CONTOUR_PROVISIONER_NAMESPACE
44+
valueFrom:
45+
fieldRef:
46+
apiVersion: v1
47+
fieldPath: metadata.namespace
48+
{{- with .Values.resources }}
49+
resources:
50+
{{- toYaml . | nindent 12 }}
51+
{{- end }}
52+
{{- with .Values.volumeMounts }}
53+
volumeMounts:
54+
{{- toYaml . | nindent 12 }}
55+
{{- end }}
56+
{{- with .Values.volumes }}
57+
volumes:
58+
{{- toYaml . | nindent 8 }}
59+
{{- end }}
60+
{{- with .Values.nodeSelector }}
61+
nodeSelector:
62+
{{- toYaml . | nindent 8 }}
63+
{{- end }}
64+
{{- with .Values.affinity }}
65+
affinity:
66+
{{- toYaml . | nindent 8 }}
67+
{{- end }}
68+
{{- with .Values.tolerations }}
69+
tolerations:
70+
{{- toYaml . | nindent 8 }}
71+
{{- end }}

0 commit comments

Comments
 (0)