Skip to content

Commit

Permalink
OCPBUGS-32348: Mount pod namespace for on-prem components
Browse files Browse the repository at this point in the history
  • Loading branch information
mkowalski committed May 1, 2024
1 parent 69944ad commit 23015aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/on-prem/keepalived.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ spec:
value: "yes"
- name: IS_BOOTSTRAP
value: "yes"
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
command:
- dynkeepalived
- "/etc/kubernetes/kubeconfig"
Expand Down
4 changes: 4 additions & 0 deletions templates/common/on-prem/files/keepalived.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ contents:
value: "yes"
- name: IS_BOOTSTRAP
value: "no"
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
command:
- /bin/bash
- -c
Expand Down

0 comments on commit 23015aa

Please sign in to comment.