Skip to content

Commit

Permalink
Added Restart for PgBouncer (#1340)
Browse files Browse the repository at this point in the history
* security-context for pgbouncer
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>

* Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>

* finished security context
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>

* Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>

* security context revert
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>
  • Loading branch information
HiranmoyChowdhury authored Nov 19, 2024
1 parent 7e38ccb commit 624774d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/ops/v1alpha1/pgbouncer_ops_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ type PgBouncerOpsRequestSpec struct {
Apply ApplyOption `json:"apply,omitempty"`
}

// +kubebuilder:validation:Enum=HorizontalScaling;VerticalScaling;UpdateVersion;Reconfigure;RotateAuth
// ENUM(HorizontalScaling, VerticalScaling, UpdateVersion, Reconfigure, RotateAuth)
// +kubebuilder:validation:Enum=HorizontalScaling;VerticalScaling;UpdateVersion;Reconfigure;RotateAuth;Restart
// ENUM(HorizontalScaling, VerticalScaling, UpdateVersion, Reconfigure, RotateAuth, Restart)
type PgBouncerOpsRequestType string

type PgBouncerUpdateVersionSpec struct {
Expand Down
5 changes: 5 additions & 0 deletions apis/ops/v1alpha1/pgbouncer_ops_types_enum.go

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

1 change: 1 addition & 0 deletions crds/ops.kubedb.com_pgbounceropsrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ spec:
- UpdateVersion
- Reconfigure
- RotateAuth
- Restart
type: string
updateVersion:
properties:
Expand Down

0 comments on commit 624774d

Please sign in to comment.