Skip to content

Commit

Permalink
feat(operator): Add pod security context and container security conte…
Browse files Browse the repository at this point in the history
…xt to dragonfly sts's pods (#255)

* feat(operator) added pod security context and container security context to dragonfly sts's pods

Signed-off-by: sigarus <sigarus.so@gmail.com>

* feat(operator) added watch namespace(s) options: reading env variable WATCH_NAMESPACE and watch-current-namespace command line option

Signed-off-by: sigarus <sigarus.so@gmail.com>

---------

Signed-off-by: sigarus <sigarus.so@gmail.com>
  • Loading branch information
sigarus authored Feb 12, 2025
1 parent 223d3f5 commit 493605c
Show file tree
Hide file tree
Showing 6 changed files with 872 additions and 3 deletions.
10 changes: 10 additions & 0 deletions api/v1alpha1/dragonfly_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,16 @@ type DragonflySpec struct {
// +kubebuilder:validation:Optional
Authentication *Authentication `json:"authentication,omitempty"`

// (Optional) Dragonfly container security context
// +optional
// +kubebuilder:validation:Optional
ContainerSecurityContext *corev1.SecurityContext `json:"containerSecurityContext,omitempty"`

// (Optional) Dragonfly pod security context
// +optional
// +kubebuilder:validation:Optional
PodSecurityContext *corev1.PodSecurityContext `json:"podSecurityContext,omitempty"`

// (Optional) Dragonfly pod service account name
// +optional
// +kubebuilder:validation:Optional
Expand Down
10 changes: 10 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.

Loading

0 comments on commit 493605c

Please sign in to comment.