Skip to content

Commit

Permalink
Merge pull request #7335 from zalando-incubator/pcs-support
Browse files Browse the repository at this point in the history
Update Stackset Controller for versioned PlatformCredentialsSet support
  • Loading branch information
mikkeloscar authored Apr 22, 2024
2 parents 28ff911 + 40eb256 commit bfb9a0e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ stackset_routegroup_support_enabled: "true"
stackset_inline_configmap_support_enabled: "false"

# enable/disable platformCredentialsSet support for stackset
stackset_pcs_support_enabled: "false"
stackset_pcs_support_enabled: "true"

# Enable/Disable profiling for Kubernetes components
enable_control_plane_profiling: "false"
Expand Down
5 changes: 4 additions & 1 deletion cluster/manifests/stackset-controller/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $version := "v1.4.64" }}
{{ $version := "v1.4.67" }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -38,6 +38,9 @@ spec:
{{- end }}
- "--enable-configmap-support"
- "--enable-secret-support"
{{- if eq .Cluster.ConfigItems.stackset_pcs_support_enabled "true" }}
- "--enable-pcs-support"
{{- end }}
{{if eq .Cluster.Environment "e2e"}}
- "--sync-ingress-annotation=example.org/i-haz-synchronize"
- "--sync-ingress-annotation=teapot.org/the-best"
Expand Down
13 changes: 13 additions & 0 deletions cluster/manifests/stackset-controller/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,19 @@ rules:
- list
- create
- update
{{- if eq .Cluster.ConfigItems.stackset_pcs_support_enabled "true" }}
- apiGroups:
- "zalando.org"
resources:
- platformcredentialssets
verbs:
- get
- list
- create
- update
- patch
- delete
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/stackset/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22

toolchain go1.22.0

require github.com/zalando-incubator/stackset-controller v1.4.64
require github.com/zalando-incubator/stackset-controller v1.4.67

require (
github.com/beorn7/perks v1.0.1 // indirect
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/stackset/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/zalando-incubator/stackset-controller v1.4.64 h1:6imt+pGk3kShm48GBYrH589phgADdowMvFqgOW4r9F0=
github.com/zalando-incubator/stackset-controller v1.4.64/go.mod h1:1bKOeeMdnuy3LGp1Jd+yc528hXKy0mEnJtUVrCXFqqM=
github.com/zalando-incubator/stackset-controller v1.4.67 h1:O1q5C/7PANA0+zkylDpqbuYQpkZ1NESFdhZ2X/++5OI=
github.com/zalando-incubator/stackset-controller v1.4.67/go.mod h1:1bKOeeMdnuy3LGp1Jd+yc528hXKy0mEnJtUVrCXFqqM=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
Expand Down

0 comments on commit bfb9a0e

Please sign in to comment.