Skip to content

Commit

Permalink
drop config items for configuration resources
Browse files Browse the repository at this point in the history
  • Loading branch information
linki committed Mar 7, 2024
1 parent 930c5d8 commit 9059507
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 24 deletions.
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

0 comments on commit 9059507

Please sign in to comment.