Skip to content

Commit

Permalink
Merge pull request #415 from Miciah/BZ1821671-let-cloud-provider-upda…
Browse files Browse the repository at this point in the history
…te-services-slash-status-on-GCP

Bug 1821671: Let cloud-provider update services/status on GCP
  • Loading branch information
openshift-merge-robot committed May 27, 2020
2 parents d0da775 + 44559f8 commit dcfc3b6
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 1 deletion.
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:openshift:kube-controller-manager:gce-cloud-provider
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:openshift:kube-controller-manager:gce-cloud-provider
subjects:
- kind: ServiceAccount
name: cloud-provider
namespace: kube-system
@@ -0,0 +1,20 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: system:openshift:kube-controller-manager:gce-cloud-provider
rules:
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- update
- apiGroups:
- ""
resources:
- services/status
verbs:
- patch
- update
2 changes: 2 additions & 0 deletions pkg/operator/starter.go
Expand Up @@ -92,6 +92,8 @@ func RunOperator(ctx context.Context, cc *controllercmd.ControllerContext) error
"v4.1.0/kube-controller-manager/localhost-recovery-client-crb.yaml",
"v4.1.0/kube-controller-manager/localhost-recovery-sa.yaml",
"v4.1.0/kube-controller-manager/localhost-recovery-token.yaml",
"v4.1.0/kube-controller-manager/gce/cloud-provider-role.yaml",
"v4.1.0/kube-controller-manager/gce/cloud-provider-binding.yaml",
},
(&resourceapply.ClientHolder{}).WithKubernetes(kubeClient),
operatorClient,
Expand Down
76 changes: 75 additions & 1 deletion pkg/operator/v411_00_assets/bindata.go

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

0 comments on commit dcfc3b6

Please sign in to comment.