Skip to content

Commit

Permalink
feat: add gitops repo structure (#2319)
Browse files Browse the repository at this point in the history
Revert "fix: Revert "feat: add gitops repo structure (#2284)" (#2298)"

This reverts commit ef8d478.
  • Loading branch information
gracedo authored Jun 21, 2024
1 parent 864e6a9 commit 6431227
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions clusters/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In order for Kommander to present the user with the set of enabled services on a specific attached cluster, a controller on the management cluster will look into the git repository's `/clusters/` directory for that specific cluster, de-reference the `resources` listed in the `kustomization.yaml` file and list them the same way it does for listing all available services outlined above.
21 changes: 21 additions & 0 deletions clusters/kommander_host-cluster/apps/kommander.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
creationTimestamp: null
name: apps-kommander
namespace: kommander
spec:
interval: 6h
path: ./clusters/kommander_host-cluster/apps/kommander
postBuild:
substitute:
releaseNamespace: kommander
workspaceNamespace: kommander
prune: true
retryInterval: 1m
sourceRef:
kind: GitRepository
name: management
namespace: kommander-flux
timeout: 1m
wait: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
buildMetadata:
- originAnnotations
4 changes: 4 additions & 0 deletions clusters/kommander_host-cluster/apps/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- kommander.yaml
5 changes: 5 additions & 0 deletions clusters/kommander_host-cluster/common/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../common/base
- ../../../common/kommander-operator
5 changes: 5 additions & 0 deletions clusters/kommander_host-cluster/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- common
- apps
1 change: 1 addition & 0 deletions make/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ release:
git archive --format "tar.gz" -o $(ARCHIVE_NAME) \
$(GIT_TAG) -- \
common services charts \
clusters projects workspaces \
":(exclude)common/helm-repositories/ai-navigator-repos.yaml" \
":(exclude)services/ai-navigator-app" \
":(exclude)services/ai-navigator-cluster-info-agent"
Expand Down
1 change: 1 addition & 0 deletions projects/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`/projects/` directory contains one directory for each project on the Kommander cluster. Contains `kustomization.yaml`.
1 change: 1 addition & 0 deletions workspaces/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`/workspaces/` directory contains one directory for each workspace on the Kommander cluster. Contains `kustomization.yaml`.

0 comments on commit 6431227

Please sign in to comment.