Skip to content

Commit

Permalink
Merge pull request #258 from jsullivan-CS/image
Browse files Browse the repository at this point in the history
Validating Image Pull Policy inputs
  • Loading branch information
redhatrises authored Jun 14, 2022
2 parents cb461a2 + 8bbfd3e commit 43326b1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/falcon/v1alpha1/falconnodesensor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type FalconNodeSensorConfig struct {
// +kubebuilder:default={{key: "node-role.kubernetes.io/master", operator: "Exists", effect: "NoSchedule"}, {key: "node-role.kubernetes.io/control-plane", operator: "Exists", effect: "NoSchedule"}}
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
// +kubebuilder:default=Always
// +kubebuilder:validation:Enum=Always;IfNotPresent;Never
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
// Location of the Falcon Sensor image. Use only in cases when you mirror the original image to your repository/name:tag
ImageOverride string `json:"image_override,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ spec:
default: Always
description: PullPolicy describes a policy for if/when to pull
a container image
enum:
- Always
- IfNotPresent
- Never
type: string
imagePullSecrets:
description: ImagePullSecrets is an optional list of references
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ spec:
default: Always
description: PullPolicy describes a policy for if/when to pull
a container image
enum:
- Always
- IfNotPresent
- Never
type: string
imagePullSecrets:
description: ImagePullSecrets is an optional list of references
Expand Down
4 changes: 4 additions & 0 deletions deploy/falcon-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ spec:
default: Always
description: PullPolicy describes a policy for if/when to pull
a container image
enum:
- Always
- IfNotPresent
- Never
type: string
imagePullSecrets:
description: ImagePullSecrets is an optional list of references
Expand Down

0 comments on commit 43326b1

Please sign in to comment.