mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-03 09:18:21 +02:00
Merge branch 'master' into fix/logical-backup-job-cleanup
This commit is contained in:
@@ -216,6 +216,10 @@ type Config struct {
|
||||
EnableMasterPoolerLoadBalancer bool `name:"enable_master_pooler_load_balancer" default:"false"`
|
||||
EnableReplicaLoadBalancer bool `name:"enable_replica_load_balancer" default:"false"`
|
||||
EnableReplicaPoolerLoadBalancer bool `name:"enable_replica_pooler_load_balancer" default:"false"`
|
||||
EnableMasterNodePort bool `name:"enable_master_node_port" default:"false"`
|
||||
EnableMasterPoolerNodePort bool `name:"enable_master_pooler_node_port" default:"false"`
|
||||
EnableReplicaNodePort bool `name:"enable_replica_node_port" default:"false"`
|
||||
EnableReplicaPoolerNodePort bool `name:"enable_replica_pooler_node_port" default:"false"`
|
||||
CustomServiceAnnotations map[string]string `name:"custom_service_annotations"`
|
||||
CustomPodAnnotations map[string]string `name:"custom_pod_annotations"`
|
||||
EnablePodAntiAffinity bool `name:"enable_pod_antiaffinity" default:"false"`
|
||||
|
||||
@@ -67,6 +67,7 @@ type KubernetesClient struct {
|
||||
zalandov1.FabricEventStreamsGetter
|
||||
|
||||
RESTClient rest.Interface
|
||||
Clientset *kubernetes.Clientset
|
||||
AcidV1ClientSet *zalandoclient.Clientset
|
||||
Zalandov1ClientSet *zalandoclient.Clientset
|
||||
}
|
||||
@@ -148,6 +149,7 @@ func NewFromConfig(cfg *rest.Config) (KubernetesClient, error) {
|
||||
return kubeClient, fmt.Errorf("could not get clientset: %v", err)
|
||||
}
|
||||
|
||||
kubeClient.Clientset = client
|
||||
kubeClient.PodsGetter = client.CoreV1()
|
||||
kubeClient.ServicesGetter = client.CoreV1()
|
||||
kubeClient.EndpointsGetter = client.CoreV1()
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ func NewEncryptor(encryption string) *Encryptor {
|
||||
}
|
||||
hasher, ok := m[encryption]
|
||||
if !ok {
|
||||
hasher = e.PGUserPasswordMD5
|
||||
hasher = e.PGUserPasswordScramSHA256
|
||||
}
|
||||
e.encrypt = hasher
|
||||
return &e
|
||||
|
||||
Reference in New Issue
Block a user