-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refacto: add cluster-api and workload (#18)
* clean * fix test * module like * module like
- Loading branch information
Showing
104 changed files
with
1,765 additions
and
609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
creation_rules: | ||
- age: >- | ||
age1wg6z592fc3l6u8gceyqptqyy8l4eg76yq5987ffj8wn6hur0v39qdvvkd0, | ||
age1e4m0g70zk6gry3mh7xwlsnyxxdm3rxpwghkwgtw4ece6mqv53vysdmkh4v, | ||
age13xyyu756vdwjfq9qe66uae5rr9waytvgj8xhne46l0kuj0ad23nsnr06gp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
# here is the argocd app name for the cluster | ||
name: cluster-c1-demo-core | ||
namespace: argocd | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "2" | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: default | ||
destination: | ||
# here is the name of the new workload cluster | ||
name: c1-demo | ||
source: | ||
# replace with private repo , branch and path | ||
repoURL: https://github.com/pli01/k8s-helmfiles.git | ||
targetRevision: argocd | ||
path: . | ||
plugin: | ||
name: helmfile-v1.0 | ||
env: | ||
# here is the cluster name to configure | ||
- name: ENV_NAME | ||
value: "c1-demo" | ||
- name: HELMFILE_FILE | ||
value: "helmfile.d/cluster-configure-core" | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace=true | ||
- ServerSideApply=true | ||
# automated: | ||
# prune: true | ||
# selfHeal: true | ||
# allowEmpty: true | ||
# retry: | ||
# limit: 5 | ||
# backoff: | ||
# duration: 5s | ||
# maxDuration: 3m0s | ||
# factor: 2 |
Oops, something went wrong.