Skip to content

Commit 94dcdbd

Browse files
committed
added acm sdtuff
1 parent 17df84a commit 94dcdbd

7 files changed

Lines changed: 144 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v2
2+
name: portworx-operator
3+
description: Helm chart for deploying Portworx Enterprise operator on ROSA HCP with workload identity (IRSA)
4+
type: application
5+
version: 0.1.0
6+
appVersion: "3.2"
7+
dependencies:
8+
- name: helper-status-checker
9+
version: 4.4.3
10+
repository: https://rosa-hcp-dedicated-vpc.github.io/helm-repository/
11+
condition: helper-status-checker.enabled
12+
home: https://rh-mobb.github.io/validated-pattern-helm-charts/
13+
maintainers:
14+
- name: rh-mobb
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{- if .Values.monitoring.enableUserWorkload }}
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: cluster-monitoring-config
6+
namespace: openshift-monitoring
7+
annotations:
8+
argocd.argoproj.io/sync-wave: "0"
9+
argocd.argoproj.io/sync-options: Replace=true
10+
data:
11+
config.yaml: |
12+
enableUserWorkload: true
13+
{{- end }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: {{ .Values.namespace }}
5+
annotations:
6+
argocd.argoproj.io/sync-wave: "-1"
7+
labels:
8+
openshift.io/cluster-monitoring: "true"
9+
pod-security.kubernetes.io/audit: privileged
10+
pod-security.kubernetes.io/enforce: privileged
11+
pod-security.kubernetes.io/warn: privileged
12+
security.openshift.io/scc.podSecurityLabelSync: "false"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{- if .Values.operatorGroup.create }}
2+
apiVersion: operators.coreos.com/v1
3+
kind: OperatorGroup
4+
metadata:
5+
name: {{ .Values.operatorGroup.name | default .Values.subscription.name }}
6+
namespace: {{ .Values.namespace }}
7+
annotations:
8+
argocd.argoproj.io/sync-wave: "0"
9+
spec:
10+
targetNamespaces:
11+
- {{ .Values.namespace }}
12+
upgradeStrategy: Default
13+
{{- end }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{{- if .Values.storageCluster.enabled }}
2+
apiVersion: core.libopenstorage.org/v1
3+
kind: StorageCluster
4+
metadata:
5+
name: {{ .Values.storageCluster.name }}
6+
namespace: {{ .Values.namespace }}
7+
annotations:
8+
argocd.argoproj.io/sync-wave: {{ .Values.storageCluster.syncWave | default "5" | quote }}
9+
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true,Validate=false
10+
portworx.io/service-account: portworx
11+
spec:
12+
image: portworx/oci-monitor:{{ .Values.storageCluster.imageVersion }}
13+
imagePullPolicy: Always
14+
cloudStorage:
15+
deviceSpecs:
16+
{{- range .Values.storageCluster.cloudStorage.deviceSpecs }}
17+
- type={{ .type }},size={{ .size }},iops={{ .iops }}
18+
{{- end }}
19+
maxStorageNodesPerZone: {{ .Values.storageCluster.cloudStorage.maxStorageNodesPerZone }}
20+
kvdbDeviceSpec: {{ .Values.storageCluster.cloudStorage.kvdbDeviceSpec | quote }}
21+
secretsProvider: k8s
22+
stork:
23+
enabled: true
24+
autopilot:
25+
enabled: true
26+
{{- if .Values.storageCluster.iamRoleArn }}
27+
env:
28+
- name: PX_CLOUD_IDENTITY
29+
value: {{ .Values.storageCluster.iamRoleArn | quote }}
30+
{{- end }}
31+
{{- end }}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: operators.coreos.com/v1alpha1
2+
kind: Subscription
3+
metadata:
4+
name: {{ .Values.subscription.name }}
5+
namespace: {{ .Values.namespace }}
6+
annotations:
7+
argocd.argoproj.io/sync-wave: "0"
8+
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
9+
spec:
10+
channel: {{ .Values.subscription.channel }}
11+
installPlanApproval: {{ .Values.subscription.installPlanApproval }}
12+
name: {{ .Values.subscription.name }}
13+
source: {{ .Values.subscription.source }}
14+
sourceNamespace: {{ .Values.subscription.sourceNamespace }}
15+
{{- if .Values.subscription.startingCSV }}
16+
startingCSV: {{ .Values.subscription.startingCSV }}
17+
{{- end }}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
namespace: portworx
2+
3+
subscription:
4+
name: portworx-certified
5+
channel: stable
6+
installPlanApproval: Manual
7+
source: certified-operators
8+
sourceNamespace: openshift-marketplace
9+
startingCSV: ""
10+
11+
operatorGroup:
12+
create: true
13+
name: portworx-operator-group
14+
15+
storageCluster:
16+
enabled: true
17+
name: px-cluster
18+
# Required: IAM role ARN for Portworx workload identity (from terraform output portworx_role_arn)
19+
iamRoleArn: ""
20+
imageVersion: "3.2.1"
21+
syncWave: 5
22+
cloudStorage:
23+
deviceSpecs:
24+
- type: gp3
25+
size: 150
26+
iops: 3000
27+
maxStorageNodesPerZone: 3
28+
kvdbDeviceSpec: "type=gp3,size=150,iops=3000"
29+
30+
monitoring:
31+
enableUserWorkload: true
32+
33+
helper-status-checker:
34+
enabled: true
35+
approver: true
36+
checks:
37+
- operatorName: portworx-certified
38+
subscriptionName: portworx-certified
39+
namespace:
40+
name: portworx
41+
sleeptimer: 10
42+
maxretries: 60
43+
serviceAccount:
44+
name: "portworx-status-checker"

0 commit comments

Comments
 (0)