Skip to content

Commit

Permalink
Merge pull request #476 from ingvagabund/deploy-pdb-for-oauth-apiserver
Browse files Browse the repository at this point in the history
bug  1998031: Deploy PDB to prevent more than one replica going unavailable
  • Loading branch information
openshift-merge-robot committed Sep 1, 2021
2 parents 1b6ef29 + f3baff8 commit b6c02e6
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bindata/oauth-apiserver/oauth-apiserver-pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: oauth-apiserver-pdb
namespace: openshift-oauth-apiserver
spec:
maxUnavailable: 1
selector:
matchLabels:
app: openshift-oauth-apiserver
apiserver: "true"
31 changes: 31 additions & 0 deletions pkg/operator/assets/bindata.go

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

1 change: 1 addition & 0 deletions pkg/operator/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ func prepareOauthAPIServerOperator(ctx context.Context, controllerContext *contr
"oauth-apiserver/sa.yaml",
"oauth-apiserver/RBAC/useroauthaccesstokens_binding.yaml",
"oauth-apiserver/RBAC/useroauthaccesstokens_clusterrole.yaml",
"oauth-apiserver/oauth-apiserver-pdb.yaml",
},
operatorCtx.kubeInformersForNamespaces,
operatorCtx.kubeClient,
Expand Down

0 comments on commit b6c02e6

Please sign in to comment.