mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 19:02:52 +02:00
polish global config about sharing postgresql-run socket (#2155)
* polish global config about sharing postgresql-run socket
This commit is contained in:
@@ -1289,9 +1289,6 @@ var OperatorConfigCRDResourceValidation = apiextv1.CustomResourceValidation{
|
||||
},
|
||||
},
|
||||
},
|
||||
"share_pg_socket_with_sidecars": {
|
||||
Type: "boolean",
|
||||
},
|
||||
"infrastructure_roles_secret_name": {
|
||||
Type: "string",
|
||||
},
|
||||
@@ -1419,6 +1416,9 @@ var OperatorConfigCRDResourceValidation = apiextv1.CustomResourceValidation{
|
||||
"secret_name_template": {
|
||||
Type: "string",
|
||||
},
|
||||
"share_pgsocket_with_sidecars": {
|
||||
Type: "boolean",
|
||||
},
|
||||
"spilo_runasuser": {
|
||||
Type: "integer",
|
||||
},
|
||||
|
||||
@@ -72,7 +72,7 @@ type KubernetesMetaConfiguration struct {
|
||||
StorageResizeMode string `json:"storage_resize_mode,omitempty"`
|
||||
EnableInitContainers *bool `json:"enable_init_containers,omitempty"`
|
||||
EnableSidecars *bool `json:"enable_sidecars,omitempty"`
|
||||
SharePGSocketWithSidecars *bool `json:"share_pgsocket_with_sidecars,omitempty"`
|
||||
SharePgSocketWithSidecars *bool `json:"share_pgsocket_with_sidecars,omitempty"`
|
||||
SecretNameTemplate config.StringTemplate `json:"secret_name_template,omitempty"`
|
||||
ClusterDomain string `json:"cluster_domain,omitempty"`
|
||||
OAuthTokenSecretName spec.NamespacedName `json:"oauth_token_secret_name,omitempty"`
|
||||
|
||||
@@ -193,8 +193,8 @@ func (in *KubernetesMetaConfiguration) DeepCopyInto(out *KubernetesMetaConfigura
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.SharePGSocketWithSidecars != nil {
|
||||
in, out := &in.SharePGSocketWithSidecars, &out.SharePGSocketWithSidecars
|
||||
if in.SharePgSocketWithSidecars != nil {
|
||||
in, out := &in.SharePgSocketWithSidecars, &out.SharePgSocketWithSidecars
|
||||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user