From 7d3542fcbc624481413c14ceb99c685a9f651f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Fri, 2 Jun 2023 13:53:28 +0200 Subject: [PATCH] wip --- infrastructure/templates/acs.yaml | 102 +++++++++++++++++++++++++++ infrastructure/templates/tekton.yaml | 12 ++++ 2 files changed, 114 insertions(+) create mode 100644 infrastructure/templates/acs.yaml create mode 100644 infrastructure/templates/tekton.yaml diff --git a/infrastructure/templates/acs.yaml b/infrastructure/templates/acs.yaml new file mode 100644 index 0000000..964dce2 --- /dev/null +++ b/infrastructure/templates/acs.yaml @@ -0,0 +1,102 @@ +apiVersion: project.openshift.io/v1 +kind: Project +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + openshift.io/description: "" + openshift.io/display-name: "" + labels: + kubernetes.io/metadata.name: rhacs-operator + name: rhacs-operator +spec: + finalizers: + - kubernetes +--- +apiVersion: operators.coreos.com/v1 +kind: OperatorGroup +metadata: + annotations: + argocd.argoproj.io/sync-wave: "5" + name: rhacs-operator + namespace: rhacs-operator +spec: + upgradeStrategy: Default +--- +apiVersion: operators.coreos.com/v1alpha1 +kind: Subscription +metadata: + annotations: + argocd.argoproj.io/sync-wave: "10" + name: rhacs-operator + namespace: rhacs-operator +spec: + channel: rhacs-4.0 + installPlanApproval: Automatic + name: rhacs-operator + source: redhat-operators + sourceNamespace: openshift-marketplace + startingCSV: rhacs-operator.v4.0.1 +--- +apiVersion: project.openshift.io/v1 +kind: Project +metadata: + annotations: + argocd.argoproj.io/sync-wave: "15" + openshift.io/description: "" + openshift.io/display-name: "" + labels: + kubernetes.io/metadata.name: stackrox + name: stackrox +spec: + finalizers: + - kubernetes +--- +apiVersion: v1 +kind: Secret +metadata: + annotations: + argocd.argoproj.io/sync-wave: "15" + name: central-admin + namespace: stackrox +type: Opaque +data: + password: {{ include "acs-admin-password" . | b64enc | quote }} +--- +apiVersion: platform.stackrox.io/v1alpha1 +kind: Central +metadata: + annotations: + argocd.argoproj.io/sync-wave: "15" + name: stackrox-central-services + namespace: stackrox +spec: + central: + exposure: + loadBalancer: + enabled: false + port: 443 + nodePort: + enabled: false + route: + enabled: true + adminPasswordSecret: + name: central-admin + db: + isEnabled: Default + persistence: + persistentVolumeClaim: + claimName: central-db + persistence: + persistentVolumeClaim: + claimName: stackrox-db + egress: + connectivityPolicy: Online + scanner: + analyzer: + scaling: + autoScaling: Enabled + maxReplicas: 5 + minReplicas: 2 + replicas: 3 + scannerComponent: Enabled +--- diff --git a/infrastructure/templates/tekton.yaml b/infrastructure/templates/tekton.yaml new file mode 100644 index 0000000..4803f10 --- /dev/null +++ b/infrastructure/templates/tekton.yaml @@ -0,0 +1,12 @@ +apiVersion: operators.coreos.com/v1alpha1 +kind: Subscription +metadata: + annotations: + argocd.argoproj.io/sync-wave: "10" + name: openshift-pipelines-operator-rh + namespace: openshift-operators +spec: + channel: stable + name: openshift-pipelines-operator-rh + source: redhat-operators + sourceNamespace: openshift-marketplace