Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(KFLUXVNGD-88): Add crossplane component #4855

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: crossplane-control-plane
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:
path: '{{values.sourceRoot}}/{{values.environment}}/{{values.clusterDir}}'
repoURL: https://github.com/redhat-appstudio/infra-deployments.git
targetRevision: main
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- crossplane-control-plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ resources:
- workspaces
- proactive-scaler
- knative-eventing
- crossplane-control-plane
components:
- ../../../k-components/inject-infra-deployments-repo-details
5 changes: 5 additions & 0 deletions argo-cd-apps/overlays/development/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions components/crossplane-control-plane/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See the OWNERS docs: https://go.k8s.io/owners

approvers:
- gbenhaim
- avi-biton
- amisstea
- yftacherzog
- ifireball
- hmariset
5 changes: 5 additions & 0 deletions components/crossplane-control-plane/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resources:
- https://github.com/konflux-ci/crossplane-control-plane/config/ocp?ref=24ad6a647835817289754b01bebaba3d8ac0bb37

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resources:
- ../base

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resources:
- ../base

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resources:
- ../base

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
6 changes: 6 additions & 0 deletions hack/deploy-argocd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ main() {
switch_route_to_reencrypt
grant_admin_role_to_all_authenticated_users
mark_pending_pvc_as_healty
set_kustomize_build_options
print_url
}

Expand Down Expand Up @@ -99,6 +100,11 @@ spec:
' --type=merge
}

set_kustomize_build_options() {
echo "Setting kustomize build options"
kubectl patch argocd/openshift-gitops -n openshift-gitops -p '{"spec":{"kustomizeBuildOptions":"--enable-helm"}}' --type=merge
}

print_url() {
local argo_cd_route argo_cd_url

Expand Down
Loading