Skip to content

Commit

Permalink
Remove namespace values
Browse files Browse the repository at this point in the history
Signed-off-by: Matias Charriere <[email protected]>
  • Loading branch information
mcharriere committed Jan 6, 2025
1 parent 3371f36 commit 8c05b4f
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 51 deletions.
22 changes: 11 additions & 11 deletions diffs/helm__envoy-gateway__templates__namespace.yaml.patch
Original file line number Diff line number Diff line change
@@ -1,12 +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
diff --git a/vendor/gateway-helm/templates/namespace.yaml b/helm/envoy-gateway/templates/namespace.yaml
index 92bc258..0361b22 100644
--- a/vendor/gateway-helm/templates/namespace.yaml
+++ b/helm/envoy-gateway/templates/namespace.yaml
@@ -0,0 +1,6 @@
+{{ if .Values.createNamespace }}
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: '{{ .Values.namespace }}'
+{{ end }}
@@ -2,5 +2,5 @@
apiVersion: v1
kind: Namespace
metadata:
- name: '{{ .Release.Namespace }}'
-{{ end }}
+ name: '{{ .Release.Namespace }}'
+{{ end }}
9 changes: 4 additions & 5 deletions diffs/helm__envoy-gateway__values.yaml.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
diff --git a/vendor/gateway-helm/values.yaml b/helm/envoy-gateway/values.yaml
index 56cf308..b81476e 100644
index 56cf308..d383f2d 100644
--- a/vendor/gateway-helm/values.yaml
+++ b/helm/envoy-gateway/values.yaml
@@ -18,15 +18,24 @@ global:
@@ -18,15 +18,23 @@ global:
pullPolicy: IfNotPresent
# List of secrets in the same namespace of the component that can be used to pull images from private repositories.
pullSecrets: []
+
+name: envoy-gateway
+namespace: envoy-gateway-system
+serviceType: managed
+
podDisruptionBudget:
Expand All @@ -29,15 +28,15 @@ index 56cf308..b81476e 100644
imagePullPolicy: ""
imagePullSecrets: []
resources:
@@ -44,6 +53,7 @@ deployment:
@@ -44,6 +52,7 @@ deployment:
runAsNonRoot: true
runAsGroup: 65532
runAsUser: 65532
+ readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
ports:
@@ -88,11 +98,15 @@ createNamespace: false
@@ -88,11 +97,15 @@ createNamespace: false

kubernetesClusterDomain: cluster.local

Expand Down
1 change: 0 additions & 1 deletion helm/envoy-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ To uninstall the chart:
| image.repository | string | `"giantswarm"` | |
| kubernetesClusterDomain | string | `"cluster.local"` | |
| name | string | `"envoy-gateway"` | |
| namespace | string | `"envoy-gateway-system"` | |
| podDisruptionBudget.minAvailable | int | `0` | |
| service.annotations | object | `{}` | |
| serviceType | string | `"managed"` | |
Expand Down
4 changes: 2 additions & 2 deletions helm/envoy-gateway/templates/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
apiVersion: v1
kind: Namespace
metadata:
name: '{{ .Values.namespace }}'
{{ end }}
name: '{{ .Release.Namespace }}'
{{ end }}
1 change: 0 additions & 1 deletion helm/envoy-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ global:
pullSecrets: []

name: envoy-gateway
namespace: envoy-gateway-system
serviceType: managed

podDisruptionBudget:
Expand Down
12 changes: 0 additions & 12 deletions sync/patches/namespace-values/000-namespace-values.patch

This file was deleted.

17 changes: 0 additions & 17 deletions sync/patches/namespace-values/patch.sh

This file was deleted.

1 change: 0 additions & 1 deletion sync/patches/values/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ global:
pullSecrets: []

name: envoy-gateway
namespace: envoy-gateway-system
serviceType: managed

podDisruptionBudget:
Expand Down
1 change: 0 additions & 1 deletion sync/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ find vendor/ -type f -exec sed -i 's/[[:space:]]*$//' {} \;
./sync/patches/image-registry/patch.sh
./sync/patches/pss-comply/patch.sh
./sync/patches/team-label/patch.sh
./sync/patches/namespace-values/patch.sh
./sync/patches/values/patch.sh
./sync/patches/network-policies/patch.sh

Expand Down

0 comments on commit 8c05b4f

Please sign in to comment.