Skip to content

Commit

Permalink
Replace query and fileglob with hard coded list of files (#8081)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunn1 authored May 29, 2024
1 parent 6e09293 commit 1982f55
Showing 1 changed file with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@
- name: deploy-gitops-operator
kubernetes.core.k8s:
state: present
src: "{{ item }}"
loop: "{{ query('fileglob', 'files/gitops-operator/*.yaml') }}"
src: files/gitops-operator/{{ item }}
with_items:
- application-controller-rolebinding.yaml
- controller-managedby-rbac.yaml
- server-managedby-rbac.yaml
- subscription.yaml

- name: Wait until the openshift-gitops namespace is created
kubernetes.core.k8s_info:
Expand Down Expand Up @@ -127,14 +131,17 @@
- name: Deploy appprojects
kubernetes.core.k8s:
state: present
src: "{{ item }}"
loop: "{{ query('fileglob', 'files/appprojects/*.yaml') }}"
src: files/appprojects/{{ item }}
with_items:
- cluster-config.yaml
- users.yaml

- name: Deploy infra applications
kubernetes.core.k8s:
state: present
src: "{{ item }}"
loop: "{{ query('fileglob', 'files/applications/*.yaml') }}"
src: files/applications/{{ item }}
with_items:
- app-of-app.yaml

# Todo: Check health of apps
- name: Wait 30 seconds for deployment
Expand Down

0 comments on commit 1982f55

Please sign in to comment.