generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update patches with changes for upgrade Signed-off-by: Matias Charriere <[email protected]> * Upgrade envoy-gateway to 1.2.1 Signed-off-by: Matias Charriere <[email protected]> * run sync Signed-off-by: Puja Abbassi <[email protected]> * set readOnlyRootFilesystem: true * revert * security context fix * security-context patch * security-context patch fix * security-context patch remove * doc updates * typo fix * fix image registry patch Signed-off-by: Puja Abbassi <[email protected]> * add repo to image registry patch Signed-off-by: Puja Abbassi <[email protected]> * CiliumNetworkPolicies & CiliumNetworkPolicies * netpol directory fix * labels fix * helm pre-hook annotations * more more access to api-server from certgen * Add change to namespace value * revert broken chart * Fix script for sync * Fix namespace sync --------- Signed-off-by: Matias Charriere <[email protected]> Signed-off-by: Puja Abbassi <[email protected]> Co-authored-by: Puja <[email protected]> Co-authored-by: Spyros Synodinos <[email protected]> Co-authored-by: pipo02mix <[email protected]>
- Loading branch information
1 parent
a1784e7
commit 977bd1b
Showing
49 changed files
with
29,110 additions
and
11,213 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
49 changes: 49 additions & 0 deletions
49
diffs/helm__envoy-gateway__templates__certgen-cnp.yaml.patch
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,49 @@ | ||
diff --git a/helm/envoy-gateway/templates/certgen-cnp.yaml b/helm/envoy-gateway/templates/certgen-cnp.yaml | ||
new file mode 100644 | ||
index 0000000..2af4f5c | ||
--- /dev/null | ||
+++ b/helm/envoy-gateway/templates/certgen-cnp.yaml | ||
@@ -0,0 +1,43 @@ | ||
+--- | ||
+apiVersion: "cilium.io/v2" | ||
+kind: CiliumNetworkPolicy | ||
+metadata: | ||
+ name: {{ include "eg.fullname" . }}-certgen | ||
+ namespace: {{ .Release.Namespace }} | ||
+ annotations: | ||
+ "helm.sh/hook": "pre-install,pre-upgrade" | ||
+ "helm.sh/hook-weight": "-10" | ||
+ "helm.sh/hook-delete-policy": "before-hook-creation" | ||
+ labels: | ||
+ app.kubernetes.io/component: "certgen" | ||
+ {{- include "eg.labels" . | nindent 4 }} | ||
+spec: | ||
+ endpointSelector: | ||
+ matchLabels: | ||
+ app.kubernetes.io/component: "certgen" | ||
+ {{- include "eg.selectorLabels" . | nindent 6 }} | ||
+ egress: | ||
+ - toEntities: | ||
+ - kube-apiserver | ||
+ - toEndpoints: | ||
+ - matchLabels: | ||
+ k8s:io.kubernetes.pod.namespace: default | ||
+ k8s:k8s-app: kubernetes | ||
+ toPorts: | ||
+ - ports: | ||
+ - port: "443" | ||
+ protocol: TCP | ||
+ - toEndpoints: | ||
+ - matchLabels: | ||
+ k8s:component: kube-apiserver | ||
+ k8s:tier: control-plane | ||
+ - toEndpoints: | ||
+ - matchLabels: | ||
+ k8s:io.kubernetes.pod.namespace: kube-system | ||
+ k8s:k8s-app: kube-dns | ||
+ toPorts: | ||
+ - ports: | ||
+ - port: "53" | ||
+ protocol: UDP | ||
+ - port: "53" | ||
+ protocol: TCP |
50 changes: 50 additions & 0 deletions
50
diffs/helm__envoy-gateway__templates__certgen-netpol.yaml.patch
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,50 @@ | ||
diff --git a/helm/envoy-gateway/templates/certgen-netpol.yaml b/helm/envoy-gateway/templates/certgen-netpol.yaml | ||
new file mode 100644 | ||
index 0000000..0e9f09a | ||
--- /dev/null | ||
+++ b/helm/envoy-gateway/templates/certgen-netpol.yaml | ||
@@ -0,0 +1,44 @@ | ||
+--- | ||
+apiVersion: networking.k8s.io/v1 | ||
+kind: NetworkPolicy | ||
+metadata: | ||
+ name: {{ include "eg.fullname" . }}-certgen | ||
+ namespace: {{ .Release.Namespace }} | ||
+ annotations: | ||
+ "helm.sh/hook": "pre-install,pre-upgrade" | ||
+ "helm.sh/hook-weight": "-10" | ||
+ "helm.sh/hook-delete-policy": "before-hook-creation" | ||
+ labels: | ||
+ app.kubernetes.io/component: "certgen" | ||
+ {{- include "eg.labels" . | nindent 4 }} | ||
+spec: | ||
+ podSelector: | ||
+ matchLabels: | ||
+ app.kubernetes.io/component: "certgen" | ||
+ {{- include "eg.selectorLabels" . | nindent 6 }} | ||
+ policyTypes: | ||
+ - Ingress | ||
+ - Egress | ||
+ egress: | ||
+ - to: | ||
+ - namespaceSelector: {} | ||
+ podSelector: | ||
+ matchLabels: | ||
+ component: kube-apiserver | ||
+ tier: control-plane | ||
+ - to: | ||
+ - ipBlock: | ||
+ cidr: 172.31.0.1/32 | ||
+ ports: | ||
+ - port: 443 | ||
+ protocol: TCP | ||
+ - ports: | ||
+ - port: 53 | ||
+ protocol: UDP | ||
+ - port: 53 | ||
+ protocol: TCP | ||
+ to: | ||
+ - namespaceSelector: {} | ||
+ podSelector: | ||
+ matchLabels: | ||
+ k8s-app: kube-dns |
This file was deleted.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
diffs/helm__envoy-gateway__templates__envoy-gateway-cnp.yaml.patch
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,47 @@ | ||
diff --git a/helm/envoy-gateway/templates/envoy-gateway-cnp.yaml b/helm/envoy-gateway/templates/envoy-gateway-cnp.yaml | ||
new file mode 100644 | ||
index 0000000..a44b6ee | ||
--- /dev/null | ||
+++ b/helm/envoy-gateway/templates/envoy-gateway-cnp.yaml | ||
@@ -0,0 +1,41 @@ | ||
+--- | ||
+apiVersion: "cilium.io/v2" | ||
+kind: CiliumNetworkPolicy | ||
+metadata: | ||
+ name: {{ include "eg.fullname" . }} | ||
+ namespace: {{ .Release.Namespace }} | ||
+ annotations: | ||
+ "helm.sh/hook": "pre-install,pre-upgrade" | ||
+ "helm.sh/hook-weight": "-10" | ||
+ "helm.sh/hook-delete-policy": "before-hook-creation" | ||
+ labels: | ||
+ control-plane: envoy-gateway | ||
+ {{- include "eg.labels" . | nindent 4 }} | ||
+spec: | ||
+ endpointSelector: | ||
+ matchLabels: | ||
+ control-plane: envoy-gateway | ||
+ {{- include "eg.selectorLabels" . | nindent 6 }} | ||
+ egress: | ||
+ - toEntities: | ||
+ - kube-apiserver | ||
+ - cluster | ||
+ - toEndpoints: | ||
+ - matchLabels: | ||
+ k8s:io.kubernetes.pod.namespace: kube-system | ||
+ k8s-app: kube-dns | ||
+ toPorts: | ||
+ - ports: | ||
+ - port: "53" | ||
+ protocol: UDP | ||
+ - port: "53" | ||
+ protocol: TCP | ||
+ ingress: | ||
+ - fromEntities: | ||
+ - cluster | ||
+ toPorts: | ||
+ - ports: | ||
+ {{- range .Values.deployment.envoyGateway.ports }} | ||
+ - port: {{ printf "\"%d\"" .port }} | ||
+ protocol: TCP | ||
+ {{- end }} |
41 changes: 0 additions & 41 deletions
41
diffs/helm__envoy-gateway__templates__envoy-gateway-deployment.yaml.patch
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
diffs/helm__envoy-gateway__templates__envoy-gateway-netpol.yaml.patch
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,51 @@ | ||
diff --git a/helm/envoy-gateway/templates/envoy-gateway-netpol.yaml b/helm/envoy-gateway/templates/envoy-gateway-netpol.yaml | ||
new file mode 100644 | ||
index 0000000..9d9049d | ||
--- /dev/null | ||
+++ b/helm/envoy-gateway/templates/envoy-gateway-netpol.yaml | ||
@@ -0,0 +1,45 @@ | ||
+--- | ||
+apiVersion: networking.k8s.io/v1 | ||
+kind: NetworkPolicy | ||
+metadata: | ||
+ name: {{ include "eg.fullname" . }} | ||
+ namespace: {{ .Release.Namespace }} | ||
+ annotations: | ||
+ "helm.sh/hook": "pre-install,pre-upgrade" | ||
+ "helm.sh/hook-weight": "-10" | ||
+ "helm.sh/hook-delete-policy": "before-hook-creation" | ||
+ labels: | ||
+ control-plane: envoy-gateway | ||
+ {{- include "eg.labels" . | nindent 4 }} | ||
+spec: | ||
+ podSelector: | ||
+ matchLabels: | ||
+ control-plane: envoy-gateway | ||
+ {{- include "eg.selectorLabels" . | nindent 6 }} | ||
+ policyTypes: | ||
+ - Ingress | ||
+ - Egress | ||
+ egress: | ||
+ - to: | ||
+ - namespaceSelector: {} | ||
+ podSelector: | ||
+ matchLabels: | ||
+ k8s-app: kube-apiserver | ||
+ - to: | ||
+ - namespaceSelector: {} | ||
+ podSelector: | ||
+ matchLabels: | ||
+ k8s-app: kube-dns | ||
+ ports: | ||
+ - port: 53 | ||
+ protocol: UDP | ||
+ - port: 53 | ||
+ protocol: TCP | ||
+ ingress: | ||
+ - ports: | ||
+ {{- range .Values.deployment.envoyGateway.ports }} | ||
+ - port: {{ .port }} | ||
+ protocol: TCP | ||
+ {{- end }} | ||
+ from: | ||
+ - namespaceSelector: {} |
12 changes: 12 additions & 0 deletions
12
diffs/helm__envoy-gateway__templates__namespace.yaml.patch
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,12 @@ | ||
diff --git a/helm/envoy-gateway/templates/namespace.yaml b/helm/envoy-gateway/templates/namespace.yaml | ||
new file mode 100644 | ||
index 0000000..c68c79a | ||
--- /dev/null | ||
+++ b/helm/envoy-gateway/templates/namespace.yaml | ||
@@ -0,0 +1,6 @@ | ||
+{{ if .Values.createNamespace }} | ||
+apiVersion: v1 | ||
+kind: Namespace | ||
+metadata: | ||
+ name: '{{ .Values.namespace }}' | ||
+{{ end }} |
Oops, something went wrong.