Skip to content

Commit af8ca53

Browse files
committed
adds blanket variable to add containers into daemonset or deployment
1 parent 9abbd6e commit af8ca53

File tree

6 files changed

+12090
-6252
lines changed

6 files changed

+12090
-6252
lines changed

apis/v1alpha2/nginxproxy_types.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,12 @@ type DeploymentSpec struct {
397397
//
398398
// +optional
399399
Container ContainerSpec `json:"container"`
400+
401+
// ExtraContainers defines additional containers to be added to the NGINX Pod.
402+
// Uses upstream corev1.Container to allow arbitrary sidecars.
403+
//
404+
// +optional
405+
ExtraContainers []corev1.Container `json:"extraContainers,omitempty"`
400406
}
401407

402408
// DaemonSet is the configuration for the NGINX DaemonSet.
@@ -410,6 +416,11 @@ type DaemonSetSpec struct {
410416
//
411417
// +optional
412418
Container ContainerSpec `json:"container"`
419+
// ExtraContainers defines additional containers to be added to the NGINX Pod.
420+
// Uses upstream corev1.Container to allow arbitrary sidecars.
421+
//
422+
// +optional
423+
ExtraContainers []corev1.Container `json:"extraContainers,omitempty"`
413424
}
414425

415426
// PodSpec defines Pod-specific fields.

apis/v1alpha2/zz_generated.deepcopy.go

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)