Skip to content

Commit

Permalink
Merge pull request #29 from mindwm/mindwm-resources
Browse files Browse the repository at this point in the history
Mindwm resources
  • Loading branch information
metacoma authored Jun 1, 2024
2 parents f48b12a + ebac700 commit 02633ea
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ argocd_app: argocd
argocd_sync: argocd_app argocd_login
argocd app sync mindwm-gitops

mindwm_resources:
$(KUBECTL_RUN) 'kubectl apply -f resources/'

argocd_apps_ensure: argocd_password
$(KUBECTL_RUN) "kubectl -n argocd exec -ti deployment/argocd-server -- sh -c 'argocd login --plaintext --username admin --password $(ARGOCD_PASSWORD) localhost:8080 >/dev/null && argocd app list'" | awk '!/^NAME/ {if ($$6 != "Healthy") {print $$0; exit 1}}'

mindwm_lifecycle: cluster argocd_app argocd_app_run_and_wait crossplane_rolebinding_workaround argocd_apps_ensure

mindwm_lifecycle: cluster argocd_app argocd_app_run_and_wait crossplane_rolebinding_workaround argocd_apps_ensure mindwm_resources
6 changes: 6 additions & 0 deletions resources/context.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: mindwm.io/v1beta1
kind: Context
metadata:
name: team-a
spec:
name: "team-a"
7 changes: 7 additions & 0 deletions resources/host.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: mindwm.io/v1beta1
kind: Host
metadata:
name: example-host
spec:
name: "example-host"
username: "user"
7 changes: 7 additions & 0 deletions resources/user.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: mindwm.io/v1beta1
kind: User
metadata:
name: user
spec:
context: [ "team-a" ]
name: "user"

0 comments on commit 02633ea

Please sign in to comment.