From bc81fa7b006d8c59f10c7c8fe5e2f4dd26c740c7 Mon Sep 17 00:00:00 2001 From: Homaja Marisetty Date: Wed, 6 Nov 2024 08:41:21 -0500 Subject: [PATCH] chore(KFLUXVNGD-88): Add crossplane component Initial crossplane component is added in the components of the infra-deployments. Jira-Url: https://issues.redhat.com/browse/KFLUXVNGD-88 Signed-off-by: Homaja Marisetty --- .../crossplane-control-plane.yaml | 46 +++++++++++++++++++ .../kustomization.yaml | 4 ++ .../infra-deployments/kustomization.yaml | 1 + .../overlays/development/kustomization.yaml | 5 ++ components/crossplane-control-plane/OWNERS | 9 ++++ .../base/kustomization.yaml | 5 ++ .../crossplane-control-plane/base/ns.yaml | 5 ++ .../development/kustomization.yaml | 5 ++ .../production/kustomization.yaml | 5 ++ .../staging/kustomization.yaml | 5 ++ 10 files changed, 90 insertions(+) create mode 100644 argo-cd-apps/base/member/infra-deployments/crossplane-control-plane/crossplane-control-plane.yaml create mode 100644 argo-cd-apps/base/member/infra-deployments/crossplane-control-plane/kustomization.yaml create mode 100644 components/crossplane-control-plane/OWNERS create mode 100644 components/crossplane-control-plane/base/kustomization.yaml create mode 100644 components/crossplane-control-plane/base/ns.yaml create mode 100644 components/crossplane-control-plane/development/kustomization.yaml create mode 100644 components/crossplane-control-plane/production/kustomization.yaml create mode 100644 components/crossplane-control-plane/staging/kustomization.yaml diff --git a/argo-cd-apps/base/member/infra-deployments/crossplane-control-plane/crossplane-control-plane.yaml b/argo-cd-apps/base/member/infra-deployments/crossplane-control-plane/crossplane-control-plane.yaml new file mode 100644 index 00000000000..842869aa62c --- /dev/null +++ b/argo-cd-apps/base/member/infra-deployments/crossplane-control-plane/crossplane-control-plane.yaml @@ -0,0 +1,46 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: crossplane-control-plane + labels: + noSourceTransform: "true" +spec: + generators: + - merge: + mergeKeys: + - nameNormalized + generators: + - clusters: + values: + sourceRoot: components/crossplane-control-plane + environment: development + clusterDir: "" + - list: + elements: [] + template: + metadata: + name: crossplane-control-plane-{{nameNormalized}} + spec: + project: default + source: + chart: crossplane + repoURL: https://charts.crossplane.io/stable + targetRevision: 1.18.0 + # - path: '{{values.sourceRoot}}/{{values.environment}}/{{values.clusterDir}}' + # repoURL: https://github.com/hmariset/infra-deployments.git + # targetRevision: crossplane-KFLUXVNGD-88 + destination: + namespace: crossplane-system + server: '{{server}}' + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + retry: + limit: -1 + backoff: + duration: 10s + factor: 2 + maxDuration: 3m diff --git a/argo-cd-apps/base/member/infra-deployments/crossplane-control-plane/kustomization.yaml b/argo-cd-apps/base/member/infra-deployments/crossplane-control-plane/kustomization.yaml new file mode 100644 index 00000000000..abf9a71bb85 --- /dev/null +++ b/argo-cd-apps/base/member/infra-deployments/crossplane-control-plane/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- crossplane-control-plane.yaml diff --git a/argo-cd-apps/base/member/infra-deployments/kustomization.yaml b/argo-cd-apps/base/member/infra-deployments/kustomization.yaml index e7b5e19cecf..172eab6f6a8 100644 --- a/argo-cd-apps/base/member/infra-deployments/kustomization.yaml +++ b/argo-cd-apps/base/member/infra-deployments/kustomization.yaml @@ -26,5 +26,6 @@ resources: - workspaces - proactive-scaler - knative-eventing + - crossplane-control-plane components: - ../../../k-components/inject-infra-deployments-repo-details diff --git a/argo-cd-apps/overlays/development/kustomization.yaml b/argo-cd-apps/overlays/development/kustomization.yaml index fb9292f6c99..6c4cc9ebaca 100644 --- a/argo-cd-apps/overlays/development/kustomization.yaml +++ b/argo-cd-apps/overlays/development/kustomization.yaml @@ -184,3 +184,8 @@ patches: kind: ApplicationSet version: v1alpha1 name: knative-eventing + - path: development-overlay-patch.yaml + target: + kind: ApplicationSet + version: v1alpha1 + name: crossplane-control-plane diff --git a/components/crossplane-control-plane/OWNERS b/components/crossplane-control-plane/OWNERS new file mode 100644 index 00000000000..c48b430530f --- /dev/null +++ b/components/crossplane-control-plane/OWNERS @@ -0,0 +1,9 @@ +# See the OWNERS docs: https://go.k8s.io/owners + +approvers: +- gbenhaim +- avi-biton +- amisstea +- yftacherzog +- ifireball +- hmariset diff --git a/components/crossplane-control-plane/base/kustomization.yaml b/components/crossplane-control-plane/base/kustomization.yaml new file mode 100644 index 00000000000..aafe508b810 --- /dev/null +++ b/components/crossplane-control-plane/base/kustomization.yaml @@ -0,0 +1,5 @@ +resources: +- ns.yaml + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization diff --git a/components/crossplane-control-plane/base/ns.yaml b/components/crossplane-control-plane/base/ns.yaml new file mode 100644 index 00000000000..f704ee0a576 --- /dev/null +++ b/components/crossplane-control-plane/base/ns.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: crossplane-connections diff --git a/components/crossplane-control-plane/development/kustomization.yaml b/components/crossplane-control-plane/development/kustomization.yaml new file mode 100644 index 00000000000..5da221fe313 --- /dev/null +++ b/components/crossplane-control-plane/development/kustomization.yaml @@ -0,0 +1,5 @@ +resources: +- ../base + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization diff --git a/components/crossplane-control-plane/production/kustomization.yaml b/components/crossplane-control-plane/production/kustomization.yaml new file mode 100644 index 00000000000..5da221fe313 --- /dev/null +++ b/components/crossplane-control-plane/production/kustomization.yaml @@ -0,0 +1,5 @@ +resources: +- ../base + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization diff --git a/components/crossplane-control-plane/staging/kustomization.yaml b/components/crossplane-control-plane/staging/kustomization.yaml new file mode 100644 index 00000000000..5da221fe313 --- /dev/null +++ b/components/crossplane-control-plane/staging/kustomization.yaml @@ -0,0 +1,5 @@ +resources: +- ../base + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization