diff --git a/bootstrap/applicationset/applicationset-bootstrap.yaml b/bootstrap/applicationset/applicationset-bootstrap.yaml index 32bcc6e4..43106879 100644 --- a/bootstrap/applicationset/applicationset-bootstrap.yaml +++ b/bootstrap/applicationset/applicationset-bootstrap.yaml @@ -100,17 +100,17 @@ spec: - key: purpose operator: In values: - - ic-user-projects + - ic-shared-llm-app - matchExpressions: - key: purpose operator: In values: - - ic-shared-llm-app + - ic-shared-app - matchExpressions: - key: purpose operator: In values: - - ic-shared-app + - ic-user-projects template: metadata: name: "{{name}}" diff --git a/bootstrap/ic-user-projects/create-projects-and-resources-job.yaml b/bootstrap/ic-user-projects/create-projects-and-resources-job.yaml index e7621d07..03f1a074 100644 --- a/bootstrap/ic-user-projects/create-projects-and-resources-job.yaml +++ b/bootstrap/ic-user-projects/create-projects-and-resources-job.yaml @@ -4,7 +4,7 @@ metadata: name: create-and-apply-resources namespace: ic-user-projects annotations: - argocd.argoproj.io/sync-wave: "1" + argocd.argoproj.io/sync-wave: "2" argocd.argoproj.io/hook: Sync argocd.argoproj.io/hook-delete-policy: BeforeHookCreation argocd.argoproj.io/compare-options: IgnoreExtraneous diff --git a/bootstrap/ic-user-projects/kustomization.yaml b/bootstrap/ic-user-projects/kustomization.yaml index 80508f50..55a1c4cd 100644 --- a/bootstrap/ic-user-projects/kustomization.yaml +++ b/bootstrap/ic-user-projects/kustomization.yaml @@ -9,6 +9,8 @@ commonLabels: resources: # wave 0 -- project-manager.yaml +- namespace.yaml # wave 1 +- project-manager.yaml +# wave 2 - create-projects-and-resources-job.yaml \ No newline at end of file diff --git a/bootstrap/ic-user-projects/namespace.yaml b/bootstrap/ic-user-projects/namespace.yaml new file mode 100644 index 00000000..3062e3a0 --- /dev/null +++ b/bootstrap/ic-user-projects/namespace.yaml @@ -0,0 +1,11 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: ic-user-projects + labels: + app: ic-user-projects + argocd.argoproj.io/managed-by: openshift-gitops + annotations: + openshift.io/display-name: "Project Manager" + argocd.argoproj.io/sync-wave: "0" diff --git a/bootstrap/ic-user-projects/project-manager.yaml b/bootstrap/ic-user-projects/project-manager.yaml index 3d704904..7c5024aa 100644 --- a/bootstrap/ic-user-projects/project-manager.yaml +++ b/bootstrap/ic-user-projects/project-manager.yaml @@ -1,13 +1,3 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: ic-user-projects - labels: - app: ic-user-projects - argocd.argoproj.io/managed-by: openshift-gitops - annotations: - openshift.io/display-name: "Project Manager" - argocd.argoproj.io/sync-wave: "0" --- apiVersion: v1 kind: ServiceAccount @@ -15,14 +5,14 @@ metadata: name: project-creator namespace: ic-user-projects annotations: - argocd.argoproj.io/sync-wave: "0" + argocd.argoproj.io/sync-wave: "1" --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: project-creator-binding annotations: - argocd.argoproj.io/sync-wave: "0" + argocd.argoproj.io/sync-wave: "1" subjects: - kind: ServiceAccount name: project-creator @@ -37,7 +27,7 @@ apiVersion: rbac.authorization.k8s.io/v1 metadata: name: route-reader annotations: - argocd.argoproj.io/sync-wave: "0" + argocd.argoproj.io/sync-wave: "1" rules: - apiGroups: ["route.openshift.io"] resources: ["routes"]