Skip to content

Commit

Permalink
Add DisableSSLSessionResumption field in PostgresVersion CRD (#1390)
Browse files Browse the repository at this point in the history
Signed-off-by: souravbiswassanto <saurov@appscode.com>
  • Loading branch information
souravbiswassanto authored Feb 5, 2025
1 parent 47fd90c commit b05f970
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 1 deletion.
29 changes: 28 additions & 1 deletion apis/catalog/v1alpha1/openapi_generated.go

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

10 changes: 10 additions & 0 deletions apis/catalog/v1alpha1/postgres_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ type PostgresVersionSpec struct {
// SecurityContext is for the additional config for postgres DB container
// +optional
SecurityContext PostgresSecurityContext `json:"securityContext"`
// PostgresVersionTLSSpec is used to set postgres version specific tls settings
// +optional
TLS *PostgresVersionTLSSpec `json:"tls,omitempty"`
// update constraints
UpdateConstraints UpdateConstraints `json:"updateConstraints,omitempty"`
// +optional
Expand Down Expand Up @@ -110,6 +113,13 @@ type PostgresVersionPodSecurityPolicy struct {
DatabasePolicyName string `json:"databasePolicyName"`
}

// PostgresVersionTLSSpec is used to set postgres version specific tls settings
type PostgresVersionTLSSpec struct {
// DisableSSLSessionResumption determines whether to disable or enable Envoy Session Resumption
// +optional
DisableSSLSessionResumption bool `json:"disableSSLSessionResumption,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// PostgresVersionList is a list of PostgresVersions
Expand Down
21 changes: 21 additions & 0 deletions apis/catalog/v1alpha1/zz_generated.deepcopy.go

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

5 changes: 5 additions & 0 deletions crds/catalog.kubedb.com_postgresversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ spec:
- restoreTask
type: object
type: object
tls:
properties:
disableSSLSessionResumption:
type: boolean
type: object
ui:
items:
properties:
Expand Down
14 changes: 14 additions & 0 deletions openapi/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -22527,6 +22527,10 @@
"default": {},
"$ref": "#/definitions/xyz.kmodules.custom-resources.apis.appcatalog.v1alpha1.StashAddonSpec"
},
"tls": {
"description": "PostgresVersionTLSSpec is used to set postgres version specific tls settings",
"$ref": "#/definitions/dev.kubedb.apimachinery.apis.catalog.v1alpha1.PostgresVersionTLSSpec"
},
"ui": {
"type": "array",
"items": {
Expand All @@ -22546,6 +22550,16 @@
}
}
},
"dev.kubedb.apimachinery.apis.catalog.v1alpha1.PostgresVersionTLSSpec": {
"description": "PostgresVersionTLSSpec is used to set postgres version specific tls settings",
"type": "object",
"properties": {
"disableSSLSessionResumption": {
"description": "DisableSSLSessionResumption determines whether to disable or enable Envoy Session Resumption",
"type": "boolean"
}
}
},
"dev.kubedb.apimachinery.apis.catalog.v1alpha1.ProxySQLVersion": {
"type": "object",
"properties": {
Expand Down

0 comments on commit b05f970

Please sign in to comment.