Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check environment when doing pre-upgrade with Helm #8463

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mantissahz
Copy link
Contributor

Which issue(s) this PR fixes:

Issue # #7571

What this PR does / why we need it:

Check if the environment settings are achieved when doing pre-upgrade job with Helm, ref: environment_check.sh

Special notes for your reviewer:

Additional documentation or context

ref: longhorn#7571

Signed-off-by: James Lu <james.lu@suse.com>
Comment on lines +23 to +42
securityContext:
privileged: true
command:
- longhorn-manager
- pre-upgrade
volumeMounts:
- name: proc
mountPath: /host/proc/
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumes:
- name: proc
hostPath:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a description for the /proc and privileged: true in the commit message is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants