From 28381bd8bba317ff04667b6c4d4fae73a50ba188 Mon Sep 17 00:00:00 2001 From: Ong Khai Wei Date: Tue, 7 Feb 2023 11:50:24 +0800 Subject: [PATCH] OpenShift Serverless Policy --- .../openshift-serverless.yaml | 21 +++++++++++++++++++ 0-bootstrap/hub/3-policies/kustomization.yaml | 5 ++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 0-bootstrap/hub/3-policies/argocd/otp-policies/openshift-serverless/openshift-serverless.yaml diff --git a/0-bootstrap/hub/3-policies/argocd/otp-policies/openshift-serverless/openshift-serverless.yaml b/0-bootstrap/hub/3-policies/argocd/otp-policies/openshift-serverless/openshift-serverless.yaml new file mode 100644 index 00000000..e773e833 --- /dev/null +++ b/0-bootstrap/hub/3-policies/argocd/otp-policies/openshift-serverless/openshift-serverless.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: policy-managed-openshift-serverless + annotations: + argocd.argoproj.io/sync-wave: "300" + labels: + gitops.tier.layer: policies + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: openshift-serverless + server: https://kubernetes.default.svc + project: policies + source: + path: otp-policies/openshift-serverless + syncPolicy: + automated: + prune: true + selfHeal: true \ No newline at end of file diff --git a/0-bootstrap/hub/3-policies/kustomization.yaml b/0-bootstrap/hub/3-policies/kustomization.yaml index 8781b3b3..ac72f01f 100644 --- a/0-bootstrap/hub/3-policies/kustomization.yaml +++ b/0-bootstrap/hub/3-policies/kustomization.yaml @@ -1,6 +1,9 @@ resources: ## Policy to install OpenShift GitOps on Managed Clusters for "Last Mile" Configuration - # - argocd/otp-policies/openshift-gitops/openshift-gitops.yaml + - argocd/otp-policies/openshift-gitops/openshift-gitops.yaml + + ## Policy to install OpenShift Serverless for ClusterSet dev + # - argocd/otp-policies/openshift-serverless/openshift-serverless.yaml patches: - target: