Skip to content

Commit ecf43d3

Browse files
author
Moritz Clasmeier
committed
Remove more OpenShift 3 cruft from Helm/Bundle code
1 parent 8acec39 commit ecf43d3

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

image/templates/helm/stackrox-secured-cluster/internal/cluster-config.yaml.tpl.htpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ clusterConfig:
77
{{- if not ._rox.env.openshift }}
88
type: KUBERNETES_CLUSTER
99
{{- else }}
10-
type: {{ if eq (int ._rox.env.openshift) 4 -}} OPENSHIFT4_CLUSTER {{- else -}} OPENSHIFT_CLUSTER {{ end }}
10+
type: OPENSHIFT4_CLUSTER
1111
{{- end }}
1212
mainImage: {{ coalesce ._rox.image.main._abbrevImageRef ._rox.image.main.fullRef }}
1313
collectorImage: {{ coalesce ._rox.image.collector._abbrevImageRef ._rox.image.collector.fullRef }}

image/templates/helm/stackrox-secured-cluster/internal/compatibility-translation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cluster:
1212
clusterName: {{ .value }}
1313
type: |
1414
env:
15-
openshift: {{ if eq .rawValue "OPENSHIFT4_CLUSTER" }} 4 {{ else }} {{ eq .rawValue "OPENSHIFT_CLUSTER" }} {{ end }}
15+
openshift: {{ eq .rawValue "OPENSHIFT4_CLUSTER" }}
1616
1717
endpoint:
1818
central: |

image/templates/helm/stackrox-secured-cluster/sensor-chart-upgrade.md.htpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Here is the list of old and new configuration options:
106106
|Old configuration option |New configuration option |
107107
|-------------------------|-------------------------|
108108
| `cluster.name` | `clusterName` |
109-
| `cluster.type` | Set `env.openshift` to `true` for `cluster.type=OPENSHIFT_CLUSTER` and `false` for `cluster.type=KUBERNETES_CLUSTER`. Leave unset to automatically detect (recommended). |
109+
| `cluster.type` | Set `env.openshift` to `true` for `cluster.type=OPENSHIFT4_CLUSTER` and `false` for `cluster.type=KUBERNETES_CLUSTER`. Leave unset to automatically detect (recommended). |
110110
| `endpoint.central` | `centralEndpoint` |
111111
| `endpoint.advertised` | `sensor.endpoint` |
112112
| `image.repository.main` | `image.main.name` |

image/templates/helm/stackrox-secured-cluster/values.yaml.htpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ admissionControl:
2121
[<- else >]
2222
failurePolicy: Ignore
2323
[<- end >]
24-
[<- if eq .ClusterType "OPENSHIFT_CLUSTER" >]
25-
listenOnEvents: false
26-
[<- else >]
2724
listenOnEvents: true
28-
[<- end >]
2925
enforce: [< or .AdmissionControllerEnabled .AdmissionControlEnforceOnUpdates >]
3026
disableBypass: [< default false .DisableBypass >]
3127

0 commit comments

Comments
 (0)