Skip to content

Commit

Permalink
Remove POD_NAMESPACE and POD_NAME from init container
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-osborn committed Dec 11, 2024
1 parent eb30efe commit a8d01cf
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 96 deletions.
8 changes: 0 additions & 8 deletions charts/nginx-gateway-fabric/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions config/tests/static-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID

Check failure on line 36 in config/tests/static-deployment.yaml

View workflow job for this annotation

GitHub Actions / YAML lint

[yamllint] reported by reviewdog 🐶 [error] wrong indentation: expected 8 but found 10 (indentation) Raw Output: ./config/tests/static-deployment.yaml:36:11: [error] wrong indentation: expected 8 but found 10 (indentation)
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions deploy/aws-nlb/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions deploy/azure/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions deploy/default/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions deploy/experimental-nginx-plus/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions deploy/experimental/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions deploy/nginx-plus/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions deploy/nodeport/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions deploy/openshift/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions deploy/snippets-filters-nginx-plus/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down
8 changes: 0 additions & 8 deletions deploy/snippets-filters/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,6 @@ spec:
- --destination
- /etc/nginx/main-includes
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
Expand Down

0 comments on commit a8d01cf

Please sign in to comment.