Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
postgres-operator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
zalando
postgres-operator
Commits
c31c7628
Commit
c31c7628
authored
Apr 23, 2018
by
Sergey Dudoladov
Browse files
Options
Downloads
Patches
Plain Diff
Make operator unaware of its own service account
parent
a88416e6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
manifests/configmap.yaml
+0
-1
0 additions, 1 deletion
manifests/configmap.yaml
pkg/cluster/k8sres.go
+1
-1
1 addition, 1 deletion
pkg/cluster/k8sres.go
pkg/util/config/config.go
+0
-1
0 additions, 1 deletion
pkg/util/config/config.go
with
1 addition
and
3 deletions
manifests/configmap.yaml
+
0
−
1
View file @
c31c7628
...
@@ -7,7 +7,6 @@ data:
...
@@ -7,7 +7,6 @@ data:
# if neither is set or evaluates to the empty string, listen to the operator's own namespace
# if neither is set or evaluates to the empty string, listen to the operator's own namespace
# if set to the "*", listen to all namespaces
# if set to the "*", listen to all namespaces
# watched_namespace: development
# watched_namespace: development
service_account_name
:
operator
cluster_labels
:
application:spilo
cluster_labels
:
application:spilo
cluster_name_label
:
version
cluster_name_label
:
version
pod_role_label
:
spilo-role
pod_role_label
:
spilo-role
...
...
This diff is collapsed.
Click to expand it.
pkg/cluster/k8sres.go
+
1
−
1
View file @
c31c7628
...
@@ -435,7 +435,7 @@ func (c *Cluster) generatePodTemplate(
...
@@ -435,7 +435,7 @@ func (c *Cluster) generatePodTemplate(
terminateGracePeriodSeconds
:=
int64
(
c
.
OpConfig
.
PodTerminateGracePeriod
.
Seconds
())
terminateGracePeriodSeconds
:=
int64
(
c
.
OpConfig
.
PodTerminateGracePeriod
.
Seconds
())
podSpec
:=
v1
.
PodSpec
{
podSpec
:=
v1
.
PodSpec
{
ServiceAccountName
:
c
.
OpConfig
.
ServiceAccountName
,
ServiceAccountName
:
c
.
OpConfig
.
Pod
ServiceAccountName
,
TerminationGracePeriodSeconds
:
&
terminateGracePeriodSeconds
,
TerminationGracePeriodSeconds
:
&
terminateGracePeriodSeconds
,
Containers
:
[]
v1
.
Container
{
container
},
Containers
:
[]
v1
.
Container
{
container
},
Tolerations
:
c
.
tolerations
(
tolerationsSpec
),
Tolerations
:
c
.
tolerations
(
tolerationsSpec
),
...
...
This diff is collapsed.
Click to expand it.
pkg/util/config/config.go
+
0
−
1
View file @
c31c7628
...
@@ -73,7 +73,6 @@ type Config struct {
...
@@ -73,7 +73,6 @@ type Config struct {
EtcdHost
string
`name:"etcd_host" default:"etcd-client.default.svc.cluster.local:2379"`
EtcdHost
string
`name:"etcd_host" default:"etcd-client.default.svc.cluster.local:2379"`
DockerImage
string
`name:"docker_image" default:"registry.opensource.zalan.do/acid/spiloprivate-9.6:1.2-p4"`
DockerImage
string
`name:"docker_image" default:"registry.opensource.zalan.do/acid/spiloprivate-9.6:1.2-p4"`
// re-use one account for both Spilo pods and the operator; this grants extra privileges to pods
// re-use one account for both Spilo pods and the operator; this grants extra privileges to pods
ServiceAccountName
string
`name:"service_account_name" default:"operator"`
PodServiceAccountName
string
`name:"pod_service_account_name" default:"operator"`
PodServiceAccountName
string
`name:"pod_service_account_name" default:"operator"`
PodServiceAccountDefinition
string
`name:"pod_service_account_definition" default:"apiVersion: v1\nkind: ServiceAccount\nmetadata:\n name: operator\n"`
PodServiceAccountDefinition
string
`name:"pod_service_account_definition" default:"apiVersion: v1\nkind: ServiceAccount\nmetadata:\n name: operator\n"`
DbHostedZone
string
`name:"db_hosted_zone" default:"db.example.com"`
DbHostedZone
string
`name:"db_hosted_zone" default:"db.example.com"`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment