diff --git a/apps/README.md b/apps/README.md deleted file mode 100644 index 9750d7c..0000000 --- a/apps/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# Apps -This directory contains all of the applications you installed by using: -```bash -argocd-autopilot app create --app -p -``` - -## Application Types -> If you don't specify the application `--type` argocd-autopilot will try to clone the source repository and infer the application type [automatically](https://argoproj.github.io/argo-cd/user-guide/tool_detection/#tool-detection) - -* ### Directory application - Such an application references a specific directory at a given repo URL, path and revision. It will be persisted in the GitOps Repository as a single file at `apps///config.json`. - #### Example: - ```bash - argocd-autopilot app create dir-example --app github.com/argoproj-labs/argocd-autopilot/examples/demo-dir/ -p --type dir - ``` - -* ### Kustomize application - A Kustomize application will have exactly one: `apps//base/kustomization.yaml` file, and one or more `apps//overlays//` folders. - - The `apps//base/kustomization.yaml` file is created the first time you create the application. The `apps//overlays//` folder is created for each project you install this application on. So all overlays of the same application are using the same base `kustomization.yaml`. - #### Example: - Try running the following command: - ```bash - argocd-autopilot app create hello-world --app github.com/argoproj-labs/argocd-autopilot/examples/demo-app/ -p --type kustomize - ``` - -###### * If you did not create a project yet take a look at: [creating a project](https://argocd-autopilot.readthedocs.io/en/stable/Getting-Started/#add-a-project-and-an-application). \ No newline at end of file diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY new file mode 100644 index 0000000..e69de29 diff --git a/bootstrap/argo-cd.yaml b/bootstrap/argo-cd.yaml deleted file mode 100644 index 32f573a..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: argo-cd - name: argo-cd - namespace: argocd -spec: - destination: - namespace: argocd - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://git.nc.landry.land/davad/argo.git - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true -status: - health: {} - summary: {} - sync: - comparedTo: - destination: {} - source: - repoURL: "" - status: "" diff --git a/bootstrap/argo-cd/kustomization.yaml b/bootstrap/argo-cd/kustomization.yaml deleted file mode 100644 index 922c21a..0000000 --- a/bootstrap/argo-cd/kustomization.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - | - repository.credentials=- passwordSecret: - key: git_token - name: autopilot-secret - url: https://git.nc.landry.land/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: argocd -resources: -- github.com/argoproj-labs/argocd-autopilot/manifests/base?ref=v0.4.17 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 42feb94..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: argocd -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://git.nc.landry.land/davad/argo.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: cluster-resources-{{name}} - name: cluster-resources-{{name}} - namespace: argocd - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://git.nc.landry.land/davad/argo.git - syncPolicy: - automated: - allowEmpty: true - selfHeal: true -status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json deleted file mode 100644 index 259083a..0000000 --- a/bootstrap/cluster-resources/in-cluster.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"in-cluster","server":"https://kubernetes.default.svc"} \ No newline at end of file diff --git a/bootstrap/cluster-resources/in-cluster/README.md b/bootstrap/cluster-resources/in-cluster/README.md deleted file mode 100644 index 6129ae5..0000000 --- a/bootstrap/cluster-resources/in-cluster/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Cluster Resources -This directory contains all cluster resources that should be applied to cluster: `in-cluster`. -For example `Namespace` resources that are shared by multiple applications on the same namespace. diff --git a/bootstrap/cluster-resources/in-cluster/argocd-ns.yaml b/bootstrap/cluster-resources/in-cluster/argocd-ns.yaml deleted file mode 100644 index ba9bb98..0000000 --- a/bootstrap/cluster-resources/in-cluster/argocd-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: argocd -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 1a83296..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,40 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - creationTimestamp: null - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: root - name: root - namespace: argocd -spec: - destination: - namespace: argocd - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://git.nc.landry.land/davad/argo.git - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true -status: - health: {} - summary: {} - sync: - comparedTo: - destination: {} - source: - repoURL: "" - status: "" diff --git a/projects/README.md b/projects/README.md deleted file mode 100644 index baef199..0000000 --- a/projects/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Projects -This directory contains all of your `argocd-autopilot` projects. Projects provide a way to logically group applications and easily control things such as defaults and restrictions. - -### Creating a new project -To create a new project run: -```bash -export GIT_TOKEN= -export GIT_REPO= - -argocd-autopilot project create -``` - -### Creating a new project on different cluster -You can create a project that deploys applications to a different cluster, instead of the cluster where Argo-CD is installed. To do that run: -```bash -export GIT_TOKEN= -export GIT_REPO= - -argocd-autopilot project create --dest-kube-context -``` -Now all applications in this project that do not explicitly specify a different `--dest-server` will be created on the project's destination server.