-
Notifications
You must be signed in to change notification settings - Fork 880
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
Allow modification of the hostNetwork parameter to avoid the need of … #1046
Changes from 2 commits
36f9fcd
330b64c
529e788
0d76b6d
73c7a0c
23b57cf
602d0d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -535,6 +535,28 @@ load _helpers | |||||||||||||||||||
[ "${actual}" = "true" ] | ||||||||||||||||||||
} | ||||||||||||||||||||
|
||||||||||||||||||||
#-------------------------------------------------------------------- | ||||||||||||||||||||
# hostNetwork | ||||||||||||||||||||
|
||||||||||||||||||||
@test "csi/daemonset: csi.hostNetwork not set" { | ||||||||||||||||||||
cd `chart_dir` | ||||||||||||||||||||
local actual=$(helm template \ | ||||||||||||||||||||
--show-only templates/csi-daemonset.yaml \ | ||||||||||||||||||||
. | tee /dev/stderr | | ||||||||||||||||||||
yq -r '.spec.template.spec.hostNetwork' | tee /dev/stderr) | ||||||||||||||||||||
[ "${actual}" = "false" ] | ||||||||||||||||||||
} | ||||||||||||||||||||
|
||||||||||||||||||||
@test "server/StatefulSet: server.hostNetwork is set" { | ||||||||||||||||||||
tvoran marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||
cd `chart_dir` | ||||||||||||||||||||
local actual=$(helm template \ | ||||||||||||||||||||
--show-only templates/csi-daemonset.yaml \ | ||||||||||||||||||||
--set 'csi.hostNetwork=true' \ | ||||||||||||||||||||
. | tee /dev/stderr | | ||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||||||||||||||||||
yq -r '.spec.template.spec.hostNetwork' | tee /dev/stderr) | ||||||||||||||||||||
[ "${actual}" = "true" ] | ||||||||||||||||||||
} | ||||||||||||||||||||
|
||||||||||||||||||||
#-------------------------------------------------------------------- | ||||||||||||||||||||
# Readiness/liveness probes | ||||||||||||||||||||
|
||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,6 +197,9 @@ | |
"resources": { | ||
"type": "object" | ||
}, | ||
"hostNetwork": { | ||
"type": "boolean" | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: These are in alphabetical order, so it would be good to move this to be after hmacSecretName. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
"serviceAccount": { | ||
"type": "object", | ||
"properties": { | ||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -1119,6 +1119,9 @@ csi: | |||||||
# generating secret versions. | ||||||||
hmacSecretName: "" | ||||||||
|
||||||||
#Allow modification of the hostNetwork parameter to avoid the need of a dedicated pod ip | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: formatting
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||||||
hostNetwork: false | ||||||||
|
||||||||
# Settings for the daemonSet used to run the provider. | ||||||||
daemonSet: | ||||||||
updateStrategy: | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these will need csi.enabled=true set since by default the csi daemonset is not deployed in the chart.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done