@@ -383,15 +383,33 @@ type KubernetesSpec struct {
383383
384384// Deployment is the configuration for the NGINX Deployment.
385385type DeploymentSpec struct {
386+ // Number of desired Pods.
387+ //
388+ // +optional
389+ Replicas * int32 `json:"replicas,omitempty"`
390+
391+ // Pod defines Pod-specific fields.
392+ //
393+ // +optional
394+ Pod PodSpec `json:"pod"`
395+
396+ // Container defines container fields for the NGINX container.
397+ //
398+ // +optional
386399 Container ContainerSpec `json:"container"`
387- Replicas * int32 `json:"replicas,omitempty"`
388- Pod PodSpec `json:"pod"`
389400}
390401
391402// DaemonSet is the configuration for the NGINX DaemonSet.
392403type DaemonSetSpec struct {
404+ // Pod defines Pod-specific fields.
405+ //
406+ // +optional
407+ Pod PodSpec `json:"pod"`
408+
409+ // Container defines container fields for the NGINX container.
410+ //
411+ // +optional
393412 Container ContainerSpec `json:"container"`
394- Pod PodSpec `json:"pod"`
395413}
396414
397415// PodSpec defines Pod-specific fields.
@@ -439,12 +457,37 @@ type PodSpec struct {
439457
440458// ContainerSpec defines container fields for the NGINX container.
441459type ContainerSpec struct {
442- Debug * bool `json:"debug,omitempty"`
443- Image * Image `json:"image,omitempty"`
444- Resources * corev1.ResourceRequirements `json:"resources,omitempty"`
445- Lifecycle * corev1.Lifecycle `json:"lifecycle,omitempty"`
446- HostPort * HostPort `json:"hostPort,omitempty"`
447- VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
460+ // Debug enables debugging for NGINX by using the nginx-debug binary.
461+ //
462+ // +optional
463+ Debug * bool `json:"debug,omitempty"`
464+
465+ // Image is the NGINX image to use.
466+ //
467+ // +optional
468+ Image * Image `json:"image,omitempty"`
469+
470+ // Resources describes the compute resource requirements.
471+ //
472+ // +optional
473+ Resources * corev1.ResourceRequirements `json:"resources,omitempty"`
474+
475+ // Lifecycle describes actions that the management system should take in response to container lifecycle
476+ // events. For the PostStart and PreStop lifecycle handlers, management of the container blocks
477+ // until the action is complete, unless the container process fails, in which case the handler is aborted.
478+ //
479+ // +optional
480+ Lifecycle * corev1.Lifecycle `json:"lifecycle,omitempty"`
481+
482+ // HostPort configuration
483+ //
484+ // +optional
485+ HostPort * HostPort `json:"hostPort,omitempty"`
486+
487+ // VolumeMounts describe the mounting of Volumes within a container.
488+ //
489+ // +optional
490+ VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
448491}
449492
450493// Image is the NGINX image to use.
0 commit comments