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

WIP: Enable using host networking for Controller Plugin pods. #176

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/v1alpha1/driver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ type ControllerPluginResourcesSpec struct {
}

type ControllerPluginSpec struct {
// hostNetwork setting to be propagated to CSI controller plugin pods
HostNetwork *bool `json:"hostNetwork,omitempty"`
// Embedded common pods spec
PodCommonSpec `json:",inline"`

Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions config/crd/bases/csi.ceph.io_drivers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,10 @@ spec:
Default is RollingUpdate.
type: string
type: object
hostNetwork:
description: hostNetwork setting to be propagated to CSI controller
plugin pods
type: boolean
imagePullPolicy:
description: To indicate the image pull policy to be applied to
all the containers in the csi driver pods.
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/csi.ceph.io_operatorconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,10 @@ spec:
"RollingUpdate". Default is RollingUpdate.
type: string
type: object
hostNetwork:
description: hostNetwork setting to be propagated to CSI controller
plugin pods
type: boolean
imagePullPolicy:
description: To indicate the image pull policy to be applied
to all the containers in the csi driver pods.
Expand Down
8 changes: 8 additions & 0 deletions deploy/all-in-one/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,10 @@ spec:
Default is RollingUpdate.
type: string
type: object
hostNetwork:
description: hostNetwork setting to be propagated to CSI controller
plugin pods
type: boolean
imagePullPolicy:
description: To indicate the image pull policy to be applied to
all the containers in the csi driver pods.
Expand Down Expand Up @@ -8161,6 +8165,10 @@ spec:
"RollingUpdate". Default is RollingUpdate.
type: string
type: object
hostNetwork:
description: hostNetwork setting to be propagated to CSI controller
plugin pods
type: boolean
imagePullPolicy:
description: To indicate the image pull policy to be applied
to all the containers in the csi driver pods.
Expand Down
8 changes: 8 additions & 0 deletions deploy/multifile/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,10 @@ spec:
Default is RollingUpdate.
type: string
type: object
hostNetwork:
description: hostNetwork setting to be propagated to CSI controller
plugin pods
type: boolean
imagePullPolicy:
description: To indicate the image pull policy to be applied to
all the containers in the csi driver pods.
Expand Down Expand Up @@ -8152,6 +8156,10 @@ spec:
"RollingUpdate". Default is RollingUpdate.
type: string
type: object
hostNetwork:
description: hostNetwork setting to be propagated to CSI controller
plugin pods
type: boolean
imagePullPolicy:
description: To indicate the image pull policy to be applied
to all the containers in the csi driver pods.
Expand Down
1 change: 1 addition & 0 deletions internal/controller/driver_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ func (r *driverReconcile) reconcileControllerPluginDeployment() error {
Spec: corev1.PodSpec{
ServiceAccountName: serviceAccountName,
PriorityClassName: ptr.Deref(pluginSpec.PrioritylClassName, ""),
HostNetwork: ptr.Deref(pluginSpec.HostNetwork, false),
Affinity: getControllerPluginPodAffinity(pluginSpec, &appSelector),
Tolerations: pluginSpec.Tolerations,
Containers: utils.Call(func() []corev1.Container {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading