Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop config items for configuration resources (enabled by default) #7140

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -921,10 +921,6 @@ stackset_routegroup_support_enabled: "true"
# E.g. switching from RouteGroup to Ingress or vice versa.
stackset_ingress_source_switch_ttl: "5m"

# enable/disable versioned configuration resources support for stackset
stackset_configmap_support_enabled: "true"
stackset_secret_support_enabled: "true"

# enable/disable traffic segment support for stackset
stackset_enable_traffic_segments: "false"
{{if eq .Cluster.Environment "e2e"}}
Expand Down
6 changes: 0 additions & 6 deletions cluster/manifests/stackset-controller/01-stack-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ spec:
- maxReplicas
- metrics
type: object
{{- if or (eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true") (eq .Cluster.ConfigItems.stackset_secret_support_enabled "true") }}
configurationResources:
description: ConfigurationResources describes the ConfigMaps that
will be created. Later Secrets and PlatformCredentialSets will also
Expand All @@ -358,7 +357,6 @@ spec:
description: ConfigurationResourcesSpec makes it possible to defined
the config resources to be created
properties:
{{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
configMapRef:
description: ConfigMap to be owned by Stack
properties:
Expand All @@ -367,8 +365,6 @@ spec:
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
{{ end }}
{{- if eq .Cluster.ConfigItems.stackset_secret_support_enabled "true" }}
secretRef:
description: Secret to be owned by Stack
properties:
Expand All @@ -377,10 +373,8 @@ spec:
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
{{ end }}
type: object
type: array
{{ end }}
externalIngress:
description: Stack specific ExternalIngress, based on the parent StackSet
at creation time.
Expand Down
6 changes: 0 additions & 6 deletions cluster/manifests/stackset-controller/01-stackset-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,6 @@ spec:
- maxReplicas
- metrics
type: object
{{- if or (eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true") (eq .Cluster.ConfigItems.stackset_secret_support_enabled "true") }}
configurationResources:
description: ConfigurationResources describes the ConfigMaps
that will be created. Later Secrets and PlatformCredentialSets
Expand All @@ -605,7 +604,6 @@ spec:
description: ConfigurationResourcesSpec makes it possible
to defined the config resources to be created
properties:
{{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
configMapRef:
description: ConfigMap to be owned by Stack
properties:
Expand All @@ -615,8 +613,6 @@ spec:
uid?'
type: string
type: object
{{ end }}
{{- if eq .Cluster.ConfigItems.stackset_secret_support_enabled "true" }}
secretRef:
description: Secret to be owned by Stack
properties:
Expand All @@ -626,10 +622,8 @@ spec:
uid?'
type: string
type: object
{{ end }}
type: object
type: array
{{ end }}
minReadySeconds:
description: Minimum number of seconds for which a newly created
pod should be ready without any of its container crashing,
Expand Down
4 changes: 0 additions & 4 deletions cluster/manifests/stackset-controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ spec:
- "--enable-routegroup-support"
- "--ingress-source-switch-ttl={{ .Cluster.ConfigItems.stackset_ingress_source_switch_ttl }}"
{{- end }}
{{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
- "--enable-configmap-support"
{{- end }}
{{- if eq .Cluster.ConfigItems.stackset_secret_support_enabled "true" }}
- "--enable-secret-support"
{{- end }}
{{- if eq .Cluster.ConfigItems.stackset_enable_traffic_segments "true" }}
- "--enable-traffic-segments"
{{- end }}
Expand Down
4 changes: 0 additions & 4 deletions cluster/manifests/stackset-controller/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ rules:
- create
- update
- patch
{{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
- apiGroups:
- ""
resources:
Expand All @@ -109,8 +108,6 @@ rules:
- list
- create
- update
{{- end }}
{{- if eq .Cluster.ConfigItems.stackset_secret_support_enabled "true" }}
- apiGroups:
- ""
resources:
Expand All @@ -120,7 +117,6 @@ rules:
- list
- create
- update
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down