From 61d5a4a22a8fe6e0f0d2347aaa11c416101c1b70 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 5 Sep 2022 11:27:02 +0500 Subject: [PATCH 001/411] Change ingressHost --- bootstrap/aws-local-runtime.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index f64529c..4795c1d 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -45,7 +45,8 @@ data: defVersion: 1.0.1 ingressClassName: nginx ingressController: k8s.io/ingress-nginx - ingressHost: http://92.248.191.75:3017 + # ingressHost: http://92.248.191.75:3017 + ingressHost: https://philipp.hybrid-team.cf-cd.com internalIngressHost: "" repo: https://github.com/PhilippPlotnikov/aws-local-runtime version: 0.0.500 From 60110b3e33b5d11cbf91d954a3a5a844dea4c9a1 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 5 Sep 2022 12:49:27 +0500 Subject: [PATCH 002/411] Change --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 69993fa..2be27e6 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -6,6 +6,7 @@ configMapGenerator: - cfHost=http://philipp-platform.ngrok.io - cors=http://philipp-platform.ngrok.io,http://local.codefresh.io - env=production + - graphqlPlayground=true name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime From cc6a323caa3ad7db848532435904e590840b0da6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 5 Sep 2022 17:28:12 +0000 Subject: [PATCH 003/411] removed runtime 'aws-local-runtime' from isc repo --- .../aws-local-runtime/in-cluster.yaml | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml deleted file mode 100644 index 0581bc1..0000000 --- a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: "true" - name: in-cluster -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - project: default - source: - directory: - include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true From f92fb0dbdb672e85831ee2239027d68ddc072228 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 5 Sep 2022 22:28:19 +0500 Subject: [PATCH 004/411] Autopilot Uninstall --- apps/README.md | 27 ----- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 18 ---- .../aws-local-runtime/kustomization.yaml | 15 --- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 23 ---- .../aws-local-runtime/resources/sensor.yaml | 42 -------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/isc/aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 50 --------- .../aws-local-runtime/resources/rbac.yaml | 35 ------ .../aws-local-runtime/resources/sensor.yaml | 92 ---------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 28 ----- .../aws-local-runtime/resources/rbac.yaml | 37 ------- .../aws-local-runtime/resources/sensor.yaml | 42 -------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/ingress-patch.json | 12 --- .../overlays/aws-local-runtime/ingress.yaml | 23 ---- .../aws-local-runtime/kustomization.yaml | 13 --- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------- bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 60 ----------- bootstrap/cluster-resources.yaml | 48 --------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------- projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 102 ------------------ 44 files changed, 1022 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 39092b6..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.500 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index ab4f1f0..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-cap-app-proxy - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: cap-app-proxy - port: - number: 3017 - path: /app-proxy - pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 2be27e6..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=http://philipp-platform.ngrok.io - - cors=http://philipp-platform.ngrok.io,http://local.codefresh.io - - env=production - - graphqlPlayground=true - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index f1c1469..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index 66c733c..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.500 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 1c85d6e..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 86a3bd3..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index 74aaaca..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.500 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index 8e5ae9f..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.500 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 2e19a37..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index 82a2a6e..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.500 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index 6de8554..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - ingress.kubernetes.io/protocol: https - ingress.kubernetes.io/rewrite-target: /$2 - nginx.ingress.kubernetes.io/backend-protocol: https - nginx.ingress.kubernetes.io/rewrite-target: /$2 - name: aws-local-runtime-workflows-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: argo-server - port: - number: 2746 - path: /workflows(/|$)(.*) - pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 2fb61e0..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: ingress-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base -- ingress.yaml 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 ec90cdd..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.500 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 4795c1d..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,60 +0,0 @@ -apiVersion: v1 -data: - base-url: http://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - isInternal: false - name: events - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.500 - wait: true - - isInternal: false - name: rollouts - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.500 - wait: false - - isInternal: false - name: workflows - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.500 - wait: false - - isInternal: false - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.500 - wait: false - - isInternal: false - name: sealed-secrets - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.500 - wait: false - defVersion: 1.0.1 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - # ingressHost: http://92.248.191.75:3017 - ingressHost: https://philipp.hybrid-team.cf-cd.com - internalIngressHost: "" - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.500 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 88af71b..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,102 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 76526f870723f3da731d4fb650cb08b4b61f4363 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 5 Sep 2022 22:33:53 +0500 Subject: [PATCH 005/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From fb3905477d4935caf19ea2557a8d59f9087582d1 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 07:04:45 +0000 Subject: [PATCH 006/411] commiting isc app 'in-cluster' to 'codefresh-hosted' --- .../runtimes/codefresh-hosted/in-cluster.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 shared-config/runtimes/codefresh-hosted/in-cluster.yaml diff --git a/shared-config/runtimes/codefresh-hosted/in-cluster.yaml b/shared-config/runtimes/codefresh-hosted/in-cluster.yaml new file mode 100644 index 0000000..c6182f2 --- /dev/null +++ b/shared-config/runtimes/codefresh-hosted/in-cluster.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + finalizers: + - resources-finalizer.argocd.argoproj.io + labels: + codefresh.io/entity: internal-config + codefresh.io/internal: "true" + name: in-cluster +spec: + destination: + namespace: codefresh-hosted + server: https://kubernetes.default.svc + project: default + source: + directory: + include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/codefresh-hosted/*.yaml,runtimes/codefresh-hosted/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' + recurse: true + path: shared-config/resources + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + targetRevision: HEAD + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true + syncOptions: + - allowEmpty=true From 1c4a49b0cdef1f6f130751511102829c410e8b37 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 07:04:58 +0000 Subject: [PATCH 007/411] add git-source "codefresh-runtime-applications" --- .../codefresh-runtime-applications.yaml | 27 +++++++++++++++++++ .../runtimes/codefresh-hosted/in-cluster.yaml | 7 ++--- 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 shared-config/resources/codefresh-hosted/codefresh-runtime-applications.yaml diff --git a/shared-config/resources/codefresh-hosted/codefresh-runtime-applications.yaml b/shared-config/resources/codefresh-hosted/codefresh-runtime-applications.yaml new file mode 100644 index 0000000..7275ee0 --- /dev/null +++ b/shared-config/resources/codefresh-hosted/codefresh-runtime-applications.yaml @@ -0,0 +1,27 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: codefresh-runtime-applications + labels: + codefresh.io/entity: git-source + codefresh.io/internal: 'false' + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: git-sources + source: + repoURL: https://github.com/PhilippPlotnikov/codefresh-runtime-applications.git + path: . + targetRevision: HEAD + directory: + include: '*' + exclude: '' + recurse: true + destination: + namespace: codefresh-hosted + server: https://kubernetes.default.svc + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true diff --git a/shared-config/runtimes/codefresh-hosted/in-cluster.yaml b/shared-config/runtimes/codefresh-hosted/in-cluster.yaml index c6182f2..ae792b1 100644 --- a/shared-config/runtimes/codefresh-hosted/in-cluster.yaml +++ b/shared-config/runtimes/codefresh-hosted/in-cluster.yaml @@ -5,7 +5,7 @@ metadata: - resources-finalizer.argocd.argoproj.io labels: codefresh.io/entity: internal-config - codefresh.io/internal: "true" + codefresh.io/internal: 'true' name: in-cluster spec: destination: @@ -14,7 +14,8 @@ spec: project: default source: directory: - include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/codefresh-hosted/*.yaml,runtimes/codefresh-hosted/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' + include: >- + {all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/codefresh-hosted/*.yaml,runtimes/codefresh-hosted/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml,codefresh-hosted/codefresh-runtime-applications.yaml} recurse: true path: shared-config/resources repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git @@ -25,4 +26,4 @@ spec: prune: true selfHeal: true syncOptions: - - allowEmpty=true + - allowEmpty=true From 67bc729c5077e6ab49f95b5519eff4bf5f46aab7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 07:04:59 +0000 Subject: [PATCH 008/411] ISC Commit --- ...ets-keyj997w-codefresh-hosted.sealing-key.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml new file mode 100644 index 0000000..2d1350b --- /dev/null +++ b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + creationTimestamp: 2022-09-06T06:54:22.000Z + labels: + sealedsecrets.bitnami.com/sealed-secrets-key: active + codefresh.io/sealing-key-id: 6316f119a4007d001cd79a31 + codefresh.io/sealing-key: 'true' + codefresh.io/runtime-name: codefresh-hosted + name: sealed-secrets-keyj997w +data: + tls.crt: >- + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6RENDQXJTZ0F3SUJBZ0lRT1pKQzFvYTFpVlg0a3BNNktHU21sVEFOQmdrcWhraUc5dzBCQVFzRkFEQUEKTUI0WERUSXlNRGt3TmpBMk5UUXlNbG9YRFRNeU1Ea3dNekEyTlRReU1sb3dBRENDQWlJd0RRWUpLb1pJaHZjTgpBUUVCQlFBRGdnSVBBRENDQWdvQ2dnSUJBTWRhaTF0RzlZR3UwWDAyaFpFTVY5UkV1VXZlT1FyOFhnSG5qUHVXCmJGSGtGMUtXU0ZUY1dVTmh2UW9lVU54aXUxaFY4YVVxSko0c1FNMi9PN25OSlZJbDdnQzBjSjduM092NldDZVQKMnQ3bHFhbVZWcU5oN1hoMHJxL3p6Z0d1bVhsQnBnSlM2WVVEMmw3aFBxeEpvNk4yaURJbktCOXFBT1NJQWpBbApCcEI4bGJwTVBJZStNMWtQRWZNU2VzUnhlRW5hQVZySXNMY1liYW5HbC9QeGxrdk8vY1N4cVpCNDI2aHRsYyt6ClZpbDd1UnJMUDQ1K0JSM3BudlV5TTRyQnVrWmdpWVBjalJ4cTA4RHBpN3hkeFFibHIrdzIzNU9Oc1VsU0JTUDIKc0oxd2J6OVVIOEVQdERSbWxMOWNnL3E2RXZ2ZExWbGlwa0F1OVlkZkdlRzlsSDNsMnhhZldOdTBZY2FENy8rVwo2MllxUEh2MkFLM2c2OGorN3ppRFEzVWZTdXVOTmw1V2UvVjI5WE5NOHZDeUQ1eTV5TmdXUm0xdUFiZFJoUVROClhiZk1JWU44QU9MeFRwcHZicU9GYVlaTEtiSWdMdDJpRHRSRjlMWGNUc2NqN2w1alJvQmFsWGJiem5IQmhYV0oKVU8rMWh5aDc5VmlERGF6b3A3N2ZyK2pFSHo4ZGRBRDR1QzNPODNjRkVDOU0xZzFxeHBidHVGNmw3V2RlTHBYOQpVV1doRXFubFlhQzdkTG9rY3hWZ1JNZjRXT24razBSWVE0TlQwdVhCaDZPZlg1SzFDWmtnWlhEOVQrQ3VCc3FLCmNlaGNZaWp0N3E3aVBuQ0xBTkNVOFBtMzBGa3MxMVM3OUlYNVAyUDJSNGMwdk9aOHlFNFlZS2JKbEwxUnpZV0sKbGVGWkFnTUJBQUdqUWpCQU1BNEdBMVVkRHdFQi93UUVBd0lBQVRBUEJnTlZIUk1CQWY4RUJUQURBUUgvTUIwRwpBMVVkRGdRV0JCUVdGdEFtUlVOTmpubkJRSW0zNzQ3bzNSV1M3akFOQmdrcWhraUc5dzBCQVFzRkFBT0NBZ0VBCmZDNnRaTGhQR2dtWGYyNy8yQjNFeUIzdSt3c0RsMzBnT0hvdFlmNVgzdS8va21xMEhUbkU0L1BzdUJBVWJjaDEKaDJPWlJHdHhmS1A4Uy9iRlJEZHpxcTZoVmdLVFozaUhFUDRxb3BEdmVNSUZ3MmxZVi9DVWtBd3lUb2JvNE1YMApZdXBRK1BoSnJVSjg5bjM5RmorcW5yMThvUVhNK0RhM1hKU09waFpESDFkVks4b3V6QnBkb1V5byt4OEdlVXpYCjlDSHFMNkMwMnBFQnpOdUV2NTU3Ull3ZFNZUERUd0dkalN3enltNGptbFo5MEN6T2xrdmVrSE9DTCtuYUptbFYKd0NBNkFuR2o4TUE4ZHdUbHlxbGJVZnN0RFV2S2VqNFBvcW10UExwVFJIU2xEU3dkZ3RaRTQ5WVBMaFAxVVpzSgpnczdqQk9uNFVMT0lJWGUxTkNxdy9CVkllR3Boc3F4OENOcXJrTFpoL29OUVlZT1VqaldTQ0VHU1p0TU9yMUw4CktmTFdDMk1qaEJGc1BibVkxU0VodXowT21CcFo5M3ZBbTBDSUw5NDRzMkkyUHJVeFdCNncvM3VnUEwrWkkzMngKa216clpBY1JzYkZsVGJwUHlSZUZEeEVQQW1hamppRzBCLzBKUFByN3pjNDJ3STJaalU4VFQ4MkcwamRrSmErNwpMNENpdG84ckJ1Z0xFTTdmRW5paTh6SU5uckZXRWxVTE9ZeUl3a1NQWEV4dGs3K09Da0JOemY3U2NVakpSMFpICjE3cXMvUENzUlBlWml5RjR1OUZVdktNNE9ONWNnazMvSGpOT1R1WWxzbm1WQWc0UUVMNGl6aHU5SllORnZyYloKdzRPK2lHQktqa3RGNzMzYVdTdlZISlM5ZGIrM3V2VFIvTnJPdDN6NGwxND0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= + tls.key: >- + YzbnNpbk9UVmsvT2hZNlZxdFBTd242NGxxL1dYRDdWeWtKCmJoVXFMV2g2SVQwZXVOYkU4U3VwWGRWQlJJV3hka1Q3QmpuYldNYUJjTHhITjduNDUva2c3M2ZDMU8xOVZmM28KYTJlUlhvOWlYQmpJU0FEejFDSzhtSTZ0R3A3VXpjZzQ2amRQU0tEUUZDM2NZM2hPY2ROV2RWRnhVZzM2R0NOSQplWjUzWFh3bFJYeG1uUUtDQVFFQS9obUI0bVNDbDZDUTVlOFNKR3ZGSzYrZHp2VzBmU1NySEUzMDd1ejBXNGxUClVrOXhKV3ovOUZYeU9hZWpsK2YwTlhtdUFiY0tTd1haNTlvMWJMcStrRk4vdjdDaEliV3M1a3JNNkRnZm56OEsKWUpQSjJxSEtuTE1SVE81R0pyN1pkeVJnaHoydnBFTHBidWJWbWQ2WHdpbk9ZY3VhNmV6SStKc3lXU1paQytxbAo4RjBrZW9tSXdaNDhVNW9YSTU0dVBpb1k5Z21hZDdJTXJ6SXpwNGhWeTVyR3BvMVNtcmczWmRNWTBEelR4dXYvCk9nUnE4NE40UFFncytEMVhJTEJyZUtqanlpZXZwRDM4a0hpYVUxNkp6VlZyUFF0MVRiN1lORVh2UEg5SFVTUWEKc0g1OStSc1JTd3ZUVHdLdmFRZnM1VlNyTWxLMXBJYU9RaFlPLzAvSzdRS0NBUUJENWpWc1J2MVhtcGEzUzBqUwoxbVROZWlDV1lRQnIxbEEyREg0aVN1SUh5M1Y2N0dtQ1dkZWRLMTU5b1h5SlRSMEVXK1dXZ3dEaDNldys2cGcrCnZUNm05bjBneUhKNGZvNno5NFc4VXF4WFFEZU9QOVJmeUJvZVRCV1Y5UGo4VXVvNUZDcXJVT2lpWE55c1lyQUkKRlA3UHVpb0FGc2RCcDNCdlhTRXQ1cTFKNGpCSW5mOXVGODJwTjBrYlNVaHo5ZEh5M3V0WjBCbk1DWU8wempsYgp1MW9EaXpnUmdIMUZwNjdsQjMyelNpYkRPQlFic3lCWGlJOWJHNWcyZEZiYUhsYlR2V1krQ0JUbkdxQmVvNExSCk45K2QyQlNXaHhmVFM0amlFd2hHZVlZa1NJYVpPeVNkYmRPd0hTQUlBemFiZXVrZ29IRUljQVUwZUlwS0pJcEYKTDRWUkFvSUJBQ3Rzc0lYQUo1RkNINEVzR2kyZlBWTDU4RDR1UDJvam1ocDhPQitjM3lYRmtqZSsyOWRKaVhSNApPNjBldVJaOHpYOVdEQ2ErNFVOdy9JeGkvajVXcTdwK2lwWjMyUkdwdXFLZ3BlUUpzMTNEcUVKWS8yWWR3RUtIClY2Mk9DdThVTHBYdDRaRTdPWWtZNWt2TnB6Tmtsd3JYbWkyY1hoMGNHanhpU1hoeTFVVDBGT2UvQXp6dHhERlMKbVh5d0dNUTloQ21iaUNpRCs2SDVDN0hsSW02L0hlcHR5UVV0b2JCUFN5aGJxeUhyUTBYN2p1S2JYcXUvREExaQpHRTFVTGsrbjFyWUlKdVdsWXA3dStQcTNvYWdkdis4WGFmeEV1UWRRVmlLWTBRbkZ0cXBuUVNob2RaN2N3VmZSCjdZclRLcWNJYzdPOWhJUlZIalcveVJBQ05RM3MxUUVDZ2dFQUxhazZBdFQxNk1ydDRIV0h5WHRlRDl6QjdSSFMKY1hpZVQyTkNxbGJMOFpaS3VQbUF4cjlwTkh4ZVoxdkljcVpZdXBKT1FxY3E1cVgxdUwydWpHZVdUY3NUMjlVQQpjNTF5a3Mvd1NPdGhmL2p6dUVxY3AwMEVKRXVIcEZBaFNqWlRCQ1FFZXBnMlUzRGRQM3pSNUNaN1B0RkRBcGdOCi9sQnN2S2gxTHNiYnZnUm1OZURYYS9ROEUrU01IdTRXbEl4NkJrTjdlWURaY2ROalRtQnp2d3h6NjJlZ09raWgKZ3VNaVpZZGx4eklQazZXS2JvWkNsVVdZclRxYTYxUGVrTzc4U2F6WXJCaklZL05YK2ZrdmdXNVVYZGc1WEpEQQp1TmNoZzN0cEozNjFIamdleTN4VUw5cndYaTdxRXVGb2xQcmJ3TnFVQ2tHektCTllrMDNrRlIrTE1nPT0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K From ff1d4209d25afa32aae005afa640728ee02a03d4 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 07:05:01 +0000 Subject: [PATCH 009/411] ISC Commit --- .../sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml index 2d1350b..0d025a4 100644 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml +++ b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml @@ -4,7 +4,7 @@ metadata: creationTimestamp: 2022-09-06T06:54:22.000Z labels: sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 6316f119a4007d001cd79a31 + codefresh.io/sealing-key-id: 6316f119a4007d001cd79a30 codefresh.io/sealing-key: 'true' codefresh.io/runtime-name: codefresh-hosted name: sealed-secrets-keyj997w From 53d76c62ad79a8a61d7eba4dbd922b77702a5f73 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 07:05:44 +0000 Subject: [PATCH 010/411] adding cluster 'philipp-test' to runtime 'codefresh-hosted' --- ...osted-managed-cluster-philipp-test-cm.yaml | 8 +++++ .../codefresh-hosted/philipp-test.yaml | 29 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 shared-config/resources/codefresh-hosted-managed-cluster-philipp-test-cm.yaml create mode 100644 shared-config/runtimes/codefresh-hosted/philipp-test.yaml diff --git a/shared-config/resources/codefresh-hosted-managed-cluster-philipp-test-cm.yaml b/shared-config/resources/codefresh-hosted-managed-cluster-philipp-test-cm.yaml new file mode 100644 index 0000000..b195725 --- /dev/null +++ b/shared-config/resources/codefresh-hosted-managed-cluster-philipp-test-cm.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: codefresh-hosted-managed-cluster-philipp-test-cm + labels: + app.kubernetes.io/managed-by: codefresh +data: + managed-by-runtime: codefresh-hosted diff --git a/shared-config/runtimes/codefresh-hosted/philipp-test.yaml b/shared-config/runtimes/codefresh-hosted/philipp-test.yaml new file mode 100644 index 0000000..4910d3c --- /dev/null +++ b/shared-config/runtimes/codefresh-hosted/philipp-test.yaml @@ -0,0 +1,29 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + finalizers: + - resources-finalizer.argocd.argoproj.io + labels: + codefresh.io/entity: internal-config + codefresh.io/internal: 'true' + name: philipp-test +spec: + destination: + namespace: default + server: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + project: default + source: + directory: + include: >- + {all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/codefresh-hosted/*.yaml,runtimes/codefresh-hosted/**/*.yaml,codefresh-hosted-managed-cluster-philipp-test-cm.yaml} + recurse: true + path: shared-config/resources + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + targetRevision: HEAD + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true + syncOptions: + - allowEmpty=true From dab6542ed0adc98915a9f52b0a688524a0dc6ba3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 07:12:29 +0000 Subject: [PATCH 011/411] add component "philipp-test-rollouts" --- .../philipp-test-rollout-reporter.yaml | 176 ++++++++++++++++++ .../philipp-test-rollouts.yaml | 23 +++ .../runtimes/codefresh-hosted/in-cluster.yaml | 2 +- 3 files changed, 200 insertions(+), 1 deletion(-) create mode 100644 shared-config/resources/codefresh-hosted/philipp-test-rollout-reporter.yaml create mode 100644 shared-config/resources/codefresh-hosted/philipp-test-rollouts.yaml diff --git a/shared-config/resources/codefresh-hosted/philipp-test-rollout-reporter.yaml b/shared-config/resources/codefresh-hosted/philipp-test-rollout-reporter.yaml new file mode 100644 index 0000000..603c687 --- /dev/null +++ b/shared-config/resources/codefresh-hosted/philipp-test-rollout-reporter.yaml @@ -0,0 +1,176 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: philipp-test-rollout-reporter-sa + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: philipp-test-rollout-reporter-role +rules: +- apiGroups: + - argoproj.io + resources: + - analysisruns + - rollouts + verbs: + - list + - watch +- apiGroups: + - apps + resources: + - replicasets + verbs: + - list + - watch +- apiGroups: + - "" + resources: + - secrets + - configmaps + verbs: + - get + - list + - watch + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: philipp-test-rollout-reporter-role-binding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: philipp-test-rollout-reporter-role +subjects: +- kind: ServiceAccount + namespace: codefresh-hosted + name: philipp-test-rollout-reporter-sa + +--- +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + name: philipp-test-rollout-reporter + labels: + app.kubernetes.io/managed-by: cf +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + cluster: philipp-test + group: argoproj.io + version: v1alpha1 + resource: analysisruns + eventTypes: + - ADD + - UPDATE + - DELETE + replicasets: + cluster: philipp-test + group: apps + version: v1 + resource: replicasets + eventTypes: + - ADD + - UPDATE + - DELETE + rollouts: + cluster: philipp-test + group: argoproj.io + version: v1alpha1 + resource: rollouts + eventTypes: + - ADD + - UPDATE + - DELETE + template: + serviceAccountName: philipp-test-rollout-reporter-sa + +--- +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + name: philipp-test-rollout-reporter + labels: + app.kubernetes.io/managed-by: cf +spec: + dependencies: + - name: analysisruns + eventSourceName: philipp-test-rollout-reporter + eventName: analysisruns + - name: replicasets + eventSourceName: philipp-test-rollout-reporter + eventName: replicasets + - name: rollouts + eventSourceName: philipp-test-rollout-reporter + eventName: rollouts + eventBusName: codefresh-eventbus + triggers: + - template: + name: rollouts + conditions: rollouts + http: + method: POST + url: https://g.codefresh.io/2.0/api/events + headers: + Content-Type: application/json + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + retryStrategy: + duration: 0 + steps: 3 + - template: + name: replicasets + conditions: replicasets + http: + method: POST + url: https://g.codefresh.io/2.0/api/events + headers: + Content-Type: application/json + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + retryStrategy: + duration: 0 + steps: 3 + - template: + name: analysisruns + conditions: analysisruns + http: + method: POST + url: https://g.codefresh.io/2.0/api/events + headers: + Content-Type: application/json + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + retryStrategy: + duration: 0 + steps: 3 diff --git a/shared-config/resources/codefresh-hosted/philipp-test-rollouts.yaml b/shared-config/resources/codefresh-hosted/philipp-test-rollouts.yaml new file mode 100644 index 0000000..083cfe4 --- /dev/null +++ b/shared-config/resources/codefresh-hosted/philipp-test-rollouts.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: philipp-test-rollouts + labels: + codefresh.io/entity: component + codefresh.io/internal: "false" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: csdp + source: + repoURL: https://github.com/codefresh-io/csdp-official.git + path: csdp/base/argo-rollouts + targetRevision: latest-managed + destination: + namespace: default + server: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true diff --git a/shared-config/runtimes/codefresh-hosted/in-cluster.yaml b/shared-config/runtimes/codefresh-hosted/in-cluster.yaml index ae792b1..73781e5 100644 --- a/shared-config/runtimes/codefresh-hosted/in-cluster.yaml +++ b/shared-config/runtimes/codefresh-hosted/in-cluster.yaml @@ -15,7 +15,7 @@ spec: source: directory: include: >- - {all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/codefresh-hosted/*.yaml,runtimes/codefresh-hosted/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml,codefresh-hosted/codefresh-runtime-applications.yaml} + {all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/codefresh-hosted/*.yaml,runtimes/codefresh-hosted/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml,codefresh-hosted/codefresh-runtime-applications.yaml,codefresh-hosted/philipp-test-rollouts.yaml,codefresh-hosted/philipp-test-rollout-reporter.yaml} recurse: true path: shared-config/resources repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git From db8b75192e11e24562b0970374959035de79e49e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 07:14:47 +0000 Subject: [PATCH 012/411] removed runtime 'codefresh-hosted' from isc repo From e008a1ce515963f818fa5478caff2e2a48d65f44 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 08:11:11 +0000 Subject: [PATCH 013/411] ISC Commit --- ...ets-keyl4fsk-codefresh-hosted.sealing-key.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml new file mode 100644 index 0000000..6243f47 --- /dev/null +++ b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + creationTimestamp: 2022-09-06T07:48:26.000Z + labels: + sealedsecrets.bitnami.com/sealed-secrets-key: active + codefresh.io/sealing-key-id: 6317009ea4007d001cd79ac4 + codefresh.io/sealing-key: 'true' + codefresh.io/runtime-name: codefresh-hosted + name: sealed-secrets-keyl4fsk +data: + tls.crt: >- + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6VENDQXJXZ0F3SUJBZ0lSQUxGYzJuNTFVWjl3cWc0OEd1dnoxL1F3RFFZSktvWklodmNOQVFFTEJRQXcKQURBZUZ3MHlNakE1TURZd056UTRNalphRncwek1qQTVNRE13TnpRNE1qWmFNQUF3Z2dJaU1BMEdDU3FHU0liMwpEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUURXdll3OFE0am1Pb3ExS1ZxQ0lvRnA3R3UyOWt4QmsrbWlveFRKCjBtSVZxL29EOHQ1VW91QmRBTmxvNXZ3ZDJ3bGUzTjFSYm9ibmRwa09BN05tcDFjYXZ5SkhaZW5vRXdyQUIybTIKbEl2T0ZBSWpnYkowTk9YZU5ld3VieVpvZXgyWFZ6VW5Kby9jQ2c2TDN2aVNnbFJ3YTRJOVZ4SGRReGlBeDE2MQprS3IydDBiRW1oLzJjeFlKby9oQ2tyVlFHZUdCQWk0Mkl5RWczTHB2MlROeEN0dXJDa1B4QjB4MDNQcXFuU09HCmFmOXRVZkV6ZmZKKzlBaUVsSVBpL1RRVVhRREUxYklFTVpSRzlKVkRHejNuc3pZTFhhNStDS2Z3WHJKZW56RkQKUUdlRFg1ODM0NjczS0svMEVzQTNqWWs5VUpnVUlEMzVmbm9pWm1vT1M3SHRMcC83Ly96cHJiWGQwV2YwYytUbwp5TVFEaXdDbjM3VDJMWUtlM2RHUEo3SlpTMlJ4b0lxVVNXSkJ3Ylk3VDl6MmZONWo5M3RRVVNnZHBhRmdkYi9FCkZmeDI2ZExmUFdiT3B1M2RpeEM0MVpTUTU0cnJOUllNM3lEZTdhUWxtWTcwVnFmVVlhSXI1TzVSTVB3dUlwOGEKQ0ViUloyaUxWRFlOczhjUEFnNWlodDdFc0pvZytienViejZqZFkxdWg0a0poWWo5UDM3V01naCtHZVNocVJFYQpxM0RTUHVVc1ovNG9OSTQ5VVJsTmxFR0xuVFc0T2VXTXM5MzhVQzhJVEpsdUl6ZjFXNGxJZUJ2ekVhTHdtTjZ0CmZ1WmJjZHpTTks4TFl5UWtTdzlJVU9oc2RXRXJZanpKcWpqZG1aaGlscE1CS0VqRWN4WWlTYTFvNkdzR2lxeGcKcHFxZGdRSURBUUFCbzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQUFFd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZApCZ05WSFE0RUZnUVVTdHpOWVltMDJIZEJYS2VGY2QrWmljSjFBcUV3RFFZSktvWklodmNOQVFFTEJRQURnZ0lCCkFBZ21TS2tWOFhvSTArTnYxaHNQd1p6bEEvUHB5R1YyMmxsY0pGOTVCWlNqRjlYNm1KTnVOVmlUbVJIeVkyYnAKY1ZJSWVjMUsxbDBETjZlalBpak4zcmdnRlU4ZlliSWRoK0JSemx6M0FkRjNybmp6U2RVd2RvUkRjYm85L2oyNgphTlB4cmptOTdNdm1LMjNuQ1lxY2ZMa1BHYVoySDZSMEQ3MzU0eFkvUGNLZVF2SXM3Q0RiaFhCaHNGellSdjVTCjd0MHBydTArRDdmRkhYMlVLRHEvUHVRZlJoYTlpMFFBSjV4RjBNc3BEaExnOHNFN0p6MERqblJ2NFpkb3FlS2wKcnFRNTJBRTNLdTdwUDZSZWpKR0FxQmVoZ0VxMlZlajJXS240NXZvVURSUmVlS3NMejJDK0hjb3dNMHRNNHhJZwphejJFdExPMmx3bUY1VUkrWlhNaHl1MzVva1VjZ3hCTTBIekJsWHAvQy83MGFCc0RyUVNoeVN0VHZCZFRNUE5oClJhZmV0SElzL0RidHpWWXNoVTRPTUdHSm81LzkzLytXbi9RSkRyQ1E2SW9kRythNjFUVkZKQldIcnlEOW5sbEcKZ1VYc3FVSzFFZnNBN2xlcWdrV1QzSlFRc1JPS3dYTGEzSC8wWmkvQ1ZyZXZqOWhNcVNXRk1PN3h6OEw2S1l3WQpTT0Q2R3BOeGRmR3dJTCtDSTg2WWo4MVhUSGFoSGhXM1MrQWt2UWpYaGt2SUtSeitnUXR0OUZYUHRTN3ljeEtaClFxQis2ZWlFcnFWcWIrWWdjdW5DQzJOYVBkZnhHckVXcnFhTlNWanMrZ1N2MDdBa1FzbktUUFVpOC9CNXBvKzMKQ0lvSFBiQ1d3ZWx6SFF5YmNtQ1BYODVCZUdZOGxpUm4vckJTc0pDQkxJeFYKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= + tls.key: >- + NNZGRnL0xCTHB4ZGR4OTh2STBtYWhxOUlkNWtkL2xHa2g0Ck4yc2hOYUlSc1c3VGNydE12a09WMEJLWHlnNUNhNlErZytZbU9PbnJ3cHIxSHk2YWhVV0wxT0JWUzZqSWtOVEgKNWFLSkVkbE9VaGd0cm54Wk9ML1Zmc1BzQnRTVGFHczdCNTVGVnVZb213dm9ZaGFIczBFL3htekJUN09ZWHJFaQp3S2gxOWJwZmJLeDFZd0tDQVFFQTVRYml2MjhBbUlMdVR1bUJBY0NhMmQ4VlpUTFZyNFFxQXhVMWlybFp5cXBnCnpzeFY1T28zNmV1Q2N4UHZwOWlEdFJNaDl5N0tMOGZvVTF5RjVBMXV4ays5aC8yb3pPa0JtaC8xUHdQVUFFUHkKb1Y2R1poY2c1YlMxR21aWTYrRGltTUo3NFhBNFdKbnFKdmNqWlU4YU4zQmNUZm05RndZaWozNTdMRUlZMTk1VQo3Wi9RUUN4b3dVT3NobkxvS2tTK3JXUzl0K2U4Rkk5RDRTYUtJaDVtbXRmMW1QS3BQRnNkQVNzcWFQbC83dytsCjhheGRhOTlUK0tGQWpNSUNuS1YvY0ZCU2lFNTdRWkh0Rk5rZmNBRjNxRUNveWZaamM1TTFuQlZTd3NYYnRQRncKS2xLL2c5VHNGWUFPNWlEOGxoUDQwUk1yekJSc0xwWnBlUFVkYXdyWXl3S0NBUUVBN3ZOVmNIa1k2VUdQNkZIVQo4b0djY2Z2dnZ2ZWwzSHBxTUNOTnJSdkcwbGc5TzVNdUtzVDNkMSs3TkR1bEYycnUzeFcvQnpYdUYvREY4Q2NWClpXSEtlUi9nL3dEbTFMTmc0cythUWljc01Lenlob0RTOG9pQy9ITzl3d0VuTXVibjBVeGQ2YnRaOVJYM3hraWwKU3dtSENrdUR3Ui9rNE1JVzRVa3J6dG00aUlHc1grYWpjT3V4enB0ajFkd2RyWlQ0WjBuMnJ6V1p4OEcwYThvTgp4dzlISEo1dEJiUU9mZmNrZUplOWM1OHNSTzVtK3AyVWdFVDI1TFhtU2VvMERCWFBrK1JRMWkyZFduTjE5UGpaCnlVd2NuZWxZZ1BBb1Ayd1htYTBobWYrMTRoMmpkYURtcDRNeE1nU3Z6cm1VSFpyQ3p1OUJMbk0wMzRwVTgrMDMKZGQ0eGRRS0NBUUJncjRaOEVJMXMxU0ZyMlBIb1hucEE3Z2VuUUUycm1oenVUajdiUUtKaWg0ajA1SmlDV2txZQppeGo0SWZ0em5Wa0UwWDN1VHlkMkFtdlcvV0ZjeERyMnAyVTVDdUgvRjRMZ29RczB2aFg2d3JTa1lUWlYxUC9ECldZVjNEcXdOY0ZQWTc0bkN3MUJXUHl2MXBUR2hMRUxDRXNJMC9QQlJ6dm82SDhnNkIvRmErSFpjRnJLZzFONm8KY0R4ZVNoWXUrZlNSV00wcTNUNnVZMGpodlJabGp2WDcrcDJwSXhCRTlhWUovMElaTFBOUVpnZkZQZUgyajBKdwozUXBXSWZWZVVoTzV3MzhFSWpXd21iMC9wdVc1c0RUbXA5MVozWlZnamszOGhaZjV0L09uc0tHTWpJQmpWRGtTClhveHJwSk5kZkRMM2VLTnR0VlZ5V1hkUFpCTTJSRTcvQW9JQkFRQ2JnVWJiTkROemlmZDBNUStmMENOajRUYzEKNVVhYlYrc29nTWxINXY5VDdNU1BHMmVjemtNRDFnMGppdWlmd1ByenV2aFhJNmNHd0hLNlR3Vi9MdzFMZ1E2UApqRzdZRktqU011aUNDQmRQSTNHdkpoR1l0dWI1VGFwMUhrYjdOZVoxSWZLUU12ak9rZk1nNFUydXZqeS9qTGM5ClJMSjJRdFBydWJwZ3NrRThKeGJ6RjczWjVrMVlEUGdlU0ZTK3EzNmEwaEhZMmhCMVN0M1dGcVM2Zk00czRQTFoKTk16bnFDS3FLenV3eTA4eUVZTE03R3pvSDdCd21yK2pHNUZrV3hrZ1ExUmdFdW5vMXQzY3AxcjhWYXdpZkNyLwpFOGM5enpxUWpZWWhKdS83WnZkUk9PTnBHMEUvMEN2RUptMndqN2FyRDRyVnJHYVB5cGNkMFZpZlpGV2sKLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K From 8fc7216a92c898f89bfd2004e64ea2c8e89c4eb8 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 08:11:14 +0000 Subject: [PATCH 014/411] ISC Commit --- .../sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml index 6243f47..b7f0abb 100644 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml +++ b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml @@ -4,7 +4,7 @@ metadata: creationTimestamp: 2022-09-06T07:48:26.000Z labels: sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 6317009ea4007d001cd79ac4 + codefresh.io/sealing-key-id: 631700a1a4007d001cd79ac5 codefresh.io/sealing-key: 'true' codefresh.io/runtime-name: codefresh-hosted name: sealed-secrets-keyl4fsk From c93f582a71245505edd741aa971718bb5c1f9d8f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 08:18:54 +0000 Subject: [PATCH 015/411] removed runtime 'codefresh-hosted' from isc repo From 550767fe2d5210dbc6ab6467dad89cdebeb795d5 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 6 Sep 2022 13:21:25 +0500 Subject: [PATCH 016/411] Delete shared-config directory --- shared-config/README.md | 44 ----- .../resources/all-runtimes-all-clusters/DUMMY | 0 ...osted-managed-cluster-philipp-test-cm.yaml | 8 - .../codefresh-runtime-applications.yaml | 27 --- .../philipp-test-rollout-reporter.yaml | 176 ------------------ .../philipp-test-rollouts.yaml | 23 --- ...ey7xp7c-aws-local-runtime.sealing-key.yaml | 15 -- ...keyj997w-codefresh-hosted.sealing-key.yaml | 15 -- ...keyl4fsk-codefresh-hosted.sealing-key.yaml | 15 -- ...eym54dj-aws-local-runtime.sealing-key.yaml | 15 -- .../runtimes/codefresh-hosted/in-cluster.yaml | 29 --- .../codefresh-hosted/philipp-test.yaml | 29 --- 12 files changed, 396 deletions(-) delete mode 100644 shared-config/README.md delete mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY delete mode 100644 shared-config/resources/codefresh-hosted-managed-cluster-philipp-test-cm.yaml delete mode 100644 shared-config/resources/codefresh-hosted/codefresh-runtime-applications.yaml delete mode 100644 shared-config/resources/codefresh-hosted/philipp-test-rollout-reporter.yaml delete mode 100644 shared-config/resources/codefresh-hosted/philipp-test-rollouts.yaml delete mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key7xp7c-aws-local-runtime.sealing-key.yaml delete mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml delete mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml delete mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keym54dj-aws-local-runtime.sealing-key.yaml delete mode 100644 shared-config/runtimes/codefresh-hosted/in-cluster.yaml delete mode 100644 shared-config/runtimes/codefresh-hosted/philipp-test.yaml diff --git a/shared-config/README.md b/shared-config/README.md deleted file mode 100644 index 85ee1f9..0000000 --- a/shared-config/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# codefresh-runtime_internal-shared-config -This repository stores configuration files that can be shared between runtimes. - -Configuration definitions that will be stored in this repository: -- Argo CD managed cluster -- Git sources -- Codefresh 3rd party integrations configuration -- Ouath2 Authentications applications - -Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. - -## Repository structure -The base path of the repository will include 2 directories - resources and runtimes. -The resources directory will include the following sub-directories: -- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters -- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster -- runtimes/ - a folder for each specific runtime. - -Each manifest will be applied to all clusters in a specific runtime -both control-plane and the runtime-specific directories are optional. -The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml - - -``` -├── resources <───────────────────┐ -│ ├── all-runtimes-all-clusters │ -│ │ ├── manifest1.yaml │ -│ │ └── subfolder │ -│ │ └── manifest2.yaml │ -│ ├── control-planes │ -│ │ └── manifest3.yaml │ -│ ├── runtimes │ -│ │ ├── runtime1 │ -│ │ │ └── manifest4.yaml │ -│ │ └── runtime2 │ -│ │ └── manifest5.yaml │ -│ └── manifest6.yaml │ -└── runtimes │ - ├── runtime1 │ # references by /apps/runtime1/config_dir.json - │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - └── runtime2 │ # references by /apps/runtime2/config_dir.json - └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster -``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY deleted file mode 100644 index e69de29..0000000 diff --git a/shared-config/resources/codefresh-hosted-managed-cluster-philipp-test-cm.yaml b/shared-config/resources/codefresh-hosted-managed-cluster-philipp-test-cm.yaml deleted file mode 100644 index b195725..0000000 --- a/shared-config/resources/codefresh-hosted-managed-cluster-philipp-test-cm.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: codefresh-hosted-managed-cluster-philipp-test-cm - labels: - app.kubernetes.io/managed-by: codefresh -data: - managed-by-runtime: codefresh-hosted diff --git a/shared-config/resources/codefresh-hosted/codefresh-runtime-applications.yaml b/shared-config/resources/codefresh-hosted/codefresh-runtime-applications.yaml deleted file mode 100644 index 7275ee0..0000000 --- a/shared-config/resources/codefresh-hosted/codefresh-runtime-applications.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: codefresh-runtime-applications - labels: - codefresh.io/entity: git-source - codefresh.io/internal: 'false' - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: git-sources - source: - repoURL: https://github.com/PhilippPlotnikov/codefresh-runtime-applications.git - path: . - targetRevision: HEAD - directory: - include: '*' - exclude: '' - recurse: true - destination: - namespace: codefresh-hosted - server: https://kubernetes.default.svc - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true diff --git a/shared-config/resources/codefresh-hosted/philipp-test-rollout-reporter.yaml b/shared-config/resources/codefresh-hosted/philipp-test-rollout-reporter.yaml deleted file mode 100644 index 603c687..0000000 --- a/shared-config/resources/codefresh-hosted/philipp-test-rollout-reporter.yaml +++ /dev/null @@ -1,176 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: philipp-test-rollout-reporter-sa - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: philipp-test-rollout-reporter-role -rules: -- apiGroups: - - argoproj.io - resources: - - analysisruns - - rollouts - verbs: - - list - - watch -- apiGroups: - - apps - resources: - - replicasets - verbs: - - list - - watch -- apiGroups: - - "" - resources: - - secrets - - configmaps - verbs: - - get - - list - - watch - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: philipp-test-rollout-reporter-role-binding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: philipp-test-rollout-reporter-role -subjects: -- kind: ServiceAccount - namespace: codefresh-hosted - name: philipp-test-rollout-reporter-sa - ---- -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - name: philipp-test-rollout-reporter - labels: - app.kubernetes.io/managed-by: cf -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - cluster: philipp-test - group: argoproj.io - version: v1alpha1 - resource: analysisruns - eventTypes: - - ADD - - UPDATE - - DELETE - replicasets: - cluster: philipp-test - group: apps - version: v1 - resource: replicasets - eventTypes: - - ADD - - UPDATE - - DELETE - rollouts: - cluster: philipp-test - group: argoproj.io - version: v1alpha1 - resource: rollouts - eventTypes: - - ADD - - UPDATE - - DELETE - template: - serviceAccountName: philipp-test-rollout-reporter-sa - ---- -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - name: philipp-test-rollout-reporter - labels: - app.kubernetes.io/managed-by: cf -spec: - dependencies: - - name: analysisruns - eventSourceName: philipp-test-rollout-reporter - eventName: analysisruns - - name: replicasets - eventSourceName: philipp-test-rollout-reporter - eventName: replicasets - - name: rollouts - eventSourceName: philipp-test-rollout-reporter - eventName: rollouts - eventBusName: codefresh-eventbus - triggers: - - template: - name: rollouts - conditions: rollouts - http: - method: POST - url: https://g.codefresh.io/2.0/api/events - headers: - Content-Type: application/json - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - retryStrategy: - duration: 0 - steps: 3 - - template: - name: replicasets - conditions: replicasets - http: - method: POST - url: https://g.codefresh.io/2.0/api/events - headers: - Content-Type: application/json - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - retryStrategy: - duration: 0 - steps: 3 - - template: - name: analysisruns - conditions: analysisruns - http: - method: POST - url: https://g.codefresh.io/2.0/api/events - headers: - Content-Type: application/json - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - retryStrategy: - duration: 0 - steps: 3 diff --git a/shared-config/resources/codefresh-hosted/philipp-test-rollouts.yaml b/shared-config/resources/codefresh-hosted/philipp-test-rollouts.yaml deleted file mode 100644 index 083cfe4..0000000 --- a/shared-config/resources/codefresh-hosted/philipp-test-rollouts.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: philipp-test-rollouts - labels: - codefresh.io/entity: component - codefresh.io/internal: "false" - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: csdp - source: - repoURL: https://github.com/codefresh-io/csdp-official.git - path: csdp/base/argo-rollouts - targetRevision: latest-managed - destination: - namespace: default - server: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key7xp7c-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key7xp7c-aws-local-runtime.sealing-key.yaml deleted file mode 100644 index 9a767e6..0000000 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key7xp7c-aws-local-runtime.sealing-key.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - creationTimestamp: 2022-09-02T11:52:18.000Z - labels: - sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 6311eed548bfa1001ba2527f - codefresh.io/sealing-key: 'true' - codefresh.io/runtime-name: aws-local-runtime - name: sealed-secrets-key7xp7c -data: - tls.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6VENDQXJXZ0F3SUJBZ0lSQVBWQURCM1dWV3I0Lzc2V0o3SzlVUHN3RFFZSktvWklodmNOQVFFTEJRQXcKQURBZUZ3MHlNakE1TURJeE1UVXlNVGhhRncwek1qQTRNekF4TVRVeU1UaGFNQUF3Z2dJaU1BMEdDU3FHU0liMwpEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUURaREd1WHB1c2lhWGNTQXZJNytKS0p4WXVWNE9HdDBqakdvT2E1ClFCMEFEMytZMDVNdFdMSUV5bnRkTmZrQmI3VFlLYW1sTysyK1FETU45WlB0UEp0WjJlU1NYK04vNDNaaEd2bFQKNVJmZnBtUzNXNGI4VVZVVFFpbVMrUGg5RFV3UGM3MDk5SzRMUFNzeldueVJjL3NQUTBDOUpCaUVuSU56T2RUdAo1eFRaV1U5aFFFa0hSZnViaEhxSzJDYWxwYldaZ2lscHNKUWZRNTZack5MR3pRVENTMG42M1NXTjBBSlBha2JLCnB1NUVIMC9Sc1NPMFNITTNEWnhGWS9OY2tRMzNiUlJZS2FXN1ZmWWtGLzdzT3BFNE9TTUN3VlFCMTlnWFI0aGwKZTllTUFoZmkrdlQxZGlGTXdKdWZmSjRVemhaYk5KUlRUdWFhVEROVSt0SE00UnlPNURxckpFaXpaM2pCbURFSgphOGR4NHUzY29kSHUrLzExdUpzNTVGeTlQU1Q2bFNNNWs2SjNZUEZTemxMaFJZbzJwNTVlNU1FS0VBMjYvN0JxCkRWYytOVloyT0E0RjlpcE11bVRiT1lzZHovRThzSUQ1a2l6VThyZFJhK0tjQUxYYXpjYVJwT2pvYkRxOXRlVE4KQm9qaHZjT3kwMXAwbUhJZnpMUXpoYUVaa2hrTXNhcE1qc0lZVU12UEJMRmtEOFpGUUVzR2xpdGRKRFdWR1E0RApoWmVJbEZqcDJVbi9lbUd1d1ZtTXIyVjBRaTRyTG9HZmVqdXV6cUVidk1ZV0x2U2xVaWtsNVpYWkhnTkZpQ3hnCnNETFF4dnBZeWxkM0tZZUR0ald6NHBacWYxM2pUN2xqdHFkallqSVJNNVpNMS8xcGNsbkkyNko2S1U0aFFQNTMKRzJ0N2tRSURBUUFCbzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQUFFd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZApCZ05WSFE0RUZnUVVPZkQ4NEM0S3lxdXZhYlU3c2FXbk9rYW1mYjh3RFFZSktvWklodmNOQVFFTEJRQURnZ0lCCkFGSWdXQUZEZGVqb25tcnlkMmFxRUVSa0FDVkdma0RjVVovZ2xNRG1FSHRVa2J0UVpRejJ3RXk3UW9hWmxyeHgKZDNPaGpFT2tSb0hsaWFRS09pbmNnZkVQaWRlSEtmMkFESkRZdXhxNFhNcTRVUjRabFR6NXJqTXFCVHhPbWNKbgpQeVAyOG5zVzk5bWZpSnlManlZOFRTSFN4eUl0VzVCVkltK0pwWDYvL20vMG9FRUUxdXZaUkR1S1drNUgzTUJOCjFwM285Z2tYYmsxMFMzWjZ2UGsrM3BPT0g5alhMdHhzeVlPVG16U0ROMHlKQnQ5TlZmSUVndU1keXA5RUNSdnoKK0MvOFhiWlE5WHArWTJuakdCczFxVGJwYXYrR0JtU25XNTMzZk9tQzZrYURyRFJWNWkyKzkzbTRleWdxOUxGKwoyci95V25vM3duY1pkbmJyV3lvcTloeGMyVkpwVm9ISnFzazhINnI5REFYZkVuVERPdWRZZTBKYVJMdkNWYUZ4CjZOOVlHVVlsbHd4L2MzVjNTeG5YVW9jYnBjd2hMYXJsMFdXS29WNlcxZ0ZYdDc0cHphUzdJTWMxQVRqZ1FSZUwKeXhmVDg1Y05rdDFOSkVWWi9qVWhQR255c3lyWDNjREN4KzQwalo0R2U2dnRQSWgvUE5ScHYrbWliRHRrVUN1eApydUN5bXl2UUZhSU5zMUtVRlJ3K1l4ZjlmOXVJeWZTaU5sTU5WZHJycDR2YlNnMGdTSnFHajlLaENxZDY3NlU0CkpCQ2swTm1jM21oVHE3bEFXUStaWExJNndnbjlJM3dtb3ZxcEpEaXVWd0hTNGNseFN5UFRyT3lLY2EvejdQM3IKbk5wQmlOZUhTcVlqZzN1WVFHTXBjaWtDbjB6THZxYTVyTXRhYXJjTTh0NjIKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= - tls.key: >- - cyekxobjN6NURWVWw0UXlad3JPUHZCbTRXMDFBVUZNZTNsCjAvcHNnSHlDZmMzRVZLWlhBcEptMjlyNVplYUs4MWUyemhCM1N4NWlPbjZXTkl3UXZpOGhSdGRZUUs5QWJ0WnIKZ2wyTXB5SHB6K1FmRnBHQW5sMFdmZGVpNFlDdU9IZWNyTXpEdnhqcG8rR2JBOFhkcVBwM3NVbTlmMVJxMlVoUwpKZlZGUzNhN1FqZzlyd0tDQVFFQTgvdDFmaDA0LzFZczJZQTA0MUxHN0pvamRPcXkwMGROSWp0YTZiK04yU0hjCjZpNEFsaGJiOVlpazB1WkRGVEdxcVV2azk3NnorVUl0VURPVVBRZzZkOW0wSnhVYWdPanlveTFqajdHcmRha0EKRkZEa0w1SkVROEpsTm5Pd2VONVppenhvMEhmbWJSM1lxS1pZNjlTa09GSkt6eTVlSW1XTFB0SlB2Nklja1pmVAp5WDNZNDBzOGVVNG9RSlZSdi92YWQ4amloVWxJUktYenJiTWRUbU1jeE5pbzRmWTFNOGN0bHA0MGI3RjVoNTVrCkVmd2VSMXlRM2FKeW14UVFpdzFNRk52OGlLQ1Z5eWVaTEVkZTFHVHhzSTgvWDQwTjVJMnpDMG9UL3kwdTZuOE8KbExBR1VqR280K3BiSi9qT0ZhSDk3eDcvUzZBYkd2c0NwMnorQW9WcXZ3S0NBUUFDOVF0dkkwOUpSNjBRbUFoVgpLMUcxTThpR01jMWU2MFVaLzhhZGNvUjRYdFZhRVB0dkYvSXVIYk14SVpIVEp0YTdPY0dLOGdTTEx3ZWIzTXZ2CmFuK2pOSHh4Sys2aTZ6Rk93UUE5M045RWdQTUM1MVBwNUVrUCtFZ2wwYTJJeWtOQWI5RzNHNVZNelNOeWJGaDYKdTViMWpRWGFKaDhxLy9SaW8zZmNLTE9CN3I1a0NKcHNobUlyYkFhM3A3VTg0c0NWWERkVURhWEZXZVFjeXdFYQp4eGc4alNobUZTYVd4a0lreTVpVVRsaEdWcnBsMUZBc09FYVZDaGlSajZVYitXSGcvU1dXQ3R5OGhhQjA3eUROCkhVWTJFYytjdnRLeThhRGcwcjN3WjhVMkRUYWhmWjVURFhQbzJhSG1OdEpsRC9NUSt6U2orNmR0Yk1Eb21QTVgKaWdsckFvSUJBR1dvc2ZVQlloMXFIN2ZrcHFUTmVkdGVBa1lXQUxydDY2TEd6b08wNy9xNEZGOXpHWVZ3TXVoawpyaUMrRnRkKzRWZzNLa2xjS1l0RFdyUWZPYllRZHFRM2pzdjJEQndJZEFrdndWcy9NVzBPSk4xU016SHJKUXlDCnREOXpCdVhsNTdPUFVURUR0SHhrd2tETFJ5UEViMFNVYlYxVU9aN2xacGFmZE9FcFAvUWVLZjI3dFNKSDJBUEgKWUJoQTMxWTZMM1pYdXFMRXZScjFkc282Wm95aDJYdmZ0c2FvR3RUZk9neVhFTXcxUzZrSmd6TEhOU3FRMUQrMQpEMEcwbzR2ODEyV2RuK1NoM0toUWNJODFrYnEzOE1pYmQxRnQ2WXNBeThoNWJrbVYzd1dRT1ZnVTNCMWxXYlRWCmtuUGVSS2hZM2dERGpxWkpLT0llRXFZR1VQUmwrT3NDZ2dFQVN1MkVENGpOTzF4ZHVwMmt4bmFneC95YU13V0YKRCtCK2FxUHViSWp3N2RqK2FUS21Uc29pUkJkdVQ4Ti9JTlZmSFpScXh5RVBFVWltNkNqK3AyNmJicEJnbGt3cQpoNzZZV3FnTm1CcW8zUzhCbkt1bnBybDQrR0h6ck5lVTh1ait1UlE3M2RyNTlTeS9NalM0b29lNjQrZm1qRTVOCnVoTWVuUjk2N3M4TGhiQ0RBQ2VxN2JzWEtnM2k2ZjB2d0VXNEZnYThpMVhJV2xCWFNIVWcyd3l2bCtBV2FNMEkKOHl4RnhJU05lWUZSbDhrckFYS1FmcCt6THlMMFhvS2JEd0hlNW5kSGpEeW9GaW5HYy8rdjkyYUpTemlpWFpEbgpycm5KeUlSbm1MT050YUc0QjZxUkNqZzZCRzNaeTVtMkRua0l2NHJ5UGxwK2FONHE0ZnFteVI0UDNRPT0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml deleted file mode 100644 index 0d025a4..0000000 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyj997w-codefresh-hosted.sealing-key.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - creationTimestamp: 2022-09-06T06:54:22.000Z - labels: - sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 6316f119a4007d001cd79a30 - codefresh.io/sealing-key: 'true' - codefresh.io/runtime-name: codefresh-hosted - name: sealed-secrets-keyj997w -data: - tls.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6RENDQXJTZ0F3SUJBZ0lRT1pKQzFvYTFpVlg0a3BNNktHU21sVEFOQmdrcWhraUc5dzBCQVFzRkFEQUEKTUI0WERUSXlNRGt3TmpBMk5UUXlNbG9YRFRNeU1Ea3dNekEyTlRReU1sb3dBRENDQWlJd0RRWUpLb1pJaHZjTgpBUUVCQlFBRGdnSVBBRENDQWdvQ2dnSUJBTWRhaTF0RzlZR3UwWDAyaFpFTVY5UkV1VXZlT1FyOFhnSG5qUHVXCmJGSGtGMUtXU0ZUY1dVTmh2UW9lVU54aXUxaFY4YVVxSko0c1FNMi9PN25OSlZJbDdnQzBjSjduM092NldDZVQKMnQ3bHFhbVZWcU5oN1hoMHJxL3p6Z0d1bVhsQnBnSlM2WVVEMmw3aFBxeEpvNk4yaURJbktCOXFBT1NJQWpBbApCcEI4bGJwTVBJZStNMWtQRWZNU2VzUnhlRW5hQVZySXNMY1liYW5HbC9QeGxrdk8vY1N4cVpCNDI2aHRsYyt6ClZpbDd1UnJMUDQ1K0JSM3BudlV5TTRyQnVrWmdpWVBjalJ4cTA4RHBpN3hkeFFibHIrdzIzNU9Oc1VsU0JTUDIKc0oxd2J6OVVIOEVQdERSbWxMOWNnL3E2RXZ2ZExWbGlwa0F1OVlkZkdlRzlsSDNsMnhhZldOdTBZY2FENy8rVwo2MllxUEh2MkFLM2c2OGorN3ppRFEzVWZTdXVOTmw1V2UvVjI5WE5NOHZDeUQ1eTV5TmdXUm0xdUFiZFJoUVROClhiZk1JWU44QU9MeFRwcHZicU9GYVlaTEtiSWdMdDJpRHRSRjlMWGNUc2NqN2w1alJvQmFsWGJiem5IQmhYV0oKVU8rMWh5aDc5VmlERGF6b3A3N2ZyK2pFSHo4ZGRBRDR1QzNPODNjRkVDOU0xZzFxeHBidHVGNmw3V2RlTHBYOQpVV1doRXFubFlhQzdkTG9rY3hWZ1JNZjRXT24razBSWVE0TlQwdVhCaDZPZlg1SzFDWmtnWlhEOVQrQ3VCc3FLCmNlaGNZaWp0N3E3aVBuQ0xBTkNVOFBtMzBGa3MxMVM3OUlYNVAyUDJSNGMwdk9aOHlFNFlZS2JKbEwxUnpZV0sKbGVGWkFnTUJBQUdqUWpCQU1BNEdBMVVkRHdFQi93UUVBd0lBQVRBUEJnTlZIUk1CQWY4RUJUQURBUUgvTUIwRwpBMVVkRGdRV0JCUVdGdEFtUlVOTmpubkJRSW0zNzQ3bzNSV1M3akFOQmdrcWhraUc5dzBCQVFzRkFBT0NBZ0VBCmZDNnRaTGhQR2dtWGYyNy8yQjNFeUIzdSt3c0RsMzBnT0hvdFlmNVgzdS8va21xMEhUbkU0L1BzdUJBVWJjaDEKaDJPWlJHdHhmS1A4Uy9iRlJEZHpxcTZoVmdLVFozaUhFUDRxb3BEdmVNSUZ3MmxZVi9DVWtBd3lUb2JvNE1YMApZdXBRK1BoSnJVSjg5bjM5RmorcW5yMThvUVhNK0RhM1hKU09waFpESDFkVks4b3V6QnBkb1V5byt4OEdlVXpYCjlDSHFMNkMwMnBFQnpOdUV2NTU3Ull3ZFNZUERUd0dkalN3enltNGptbFo5MEN6T2xrdmVrSE9DTCtuYUptbFYKd0NBNkFuR2o4TUE4ZHdUbHlxbGJVZnN0RFV2S2VqNFBvcW10UExwVFJIU2xEU3dkZ3RaRTQ5WVBMaFAxVVpzSgpnczdqQk9uNFVMT0lJWGUxTkNxdy9CVkllR3Boc3F4OENOcXJrTFpoL29OUVlZT1VqaldTQ0VHU1p0TU9yMUw4CktmTFdDMk1qaEJGc1BibVkxU0VodXowT21CcFo5M3ZBbTBDSUw5NDRzMkkyUHJVeFdCNncvM3VnUEwrWkkzMngKa216clpBY1JzYkZsVGJwUHlSZUZEeEVQQW1hamppRzBCLzBKUFByN3pjNDJ3STJaalU4VFQ4MkcwamRrSmErNwpMNENpdG84ckJ1Z0xFTTdmRW5paTh6SU5uckZXRWxVTE9ZeUl3a1NQWEV4dGs3K09Da0JOemY3U2NVakpSMFpICjE3cXMvUENzUlBlWml5RjR1OUZVdktNNE9ONWNnazMvSGpOT1R1WWxzbm1WQWc0UUVMNGl6aHU5SllORnZyYloKdzRPK2lHQktqa3RGNzMzYVdTdlZISlM5ZGIrM3V2VFIvTnJPdDN6NGwxND0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= - tls.key: >- - YzbnNpbk9UVmsvT2hZNlZxdFBTd242NGxxL1dYRDdWeWtKCmJoVXFMV2g2SVQwZXVOYkU4U3VwWGRWQlJJV3hka1Q3QmpuYldNYUJjTHhITjduNDUva2c3M2ZDMU8xOVZmM28KYTJlUlhvOWlYQmpJU0FEejFDSzhtSTZ0R3A3VXpjZzQ2amRQU0tEUUZDM2NZM2hPY2ROV2RWRnhVZzM2R0NOSQplWjUzWFh3bFJYeG1uUUtDQVFFQS9obUI0bVNDbDZDUTVlOFNKR3ZGSzYrZHp2VzBmU1NySEUzMDd1ejBXNGxUClVrOXhKV3ovOUZYeU9hZWpsK2YwTlhtdUFiY0tTd1haNTlvMWJMcStrRk4vdjdDaEliV3M1a3JNNkRnZm56OEsKWUpQSjJxSEtuTE1SVE81R0pyN1pkeVJnaHoydnBFTHBidWJWbWQ2WHdpbk9ZY3VhNmV6SStKc3lXU1paQytxbAo4RjBrZW9tSXdaNDhVNW9YSTU0dVBpb1k5Z21hZDdJTXJ6SXpwNGhWeTVyR3BvMVNtcmczWmRNWTBEelR4dXYvCk9nUnE4NE40UFFncytEMVhJTEJyZUtqanlpZXZwRDM4a0hpYVUxNkp6VlZyUFF0MVRiN1lORVh2UEg5SFVTUWEKc0g1OStSc1JTd3ZUVHdLdmFRZnM1VlNyTWxLMXBJYU9RaFlPLzAvSzdRS0NBUUJENWpWc1J2MVhtcGEzUzBqUwoxbVROZWlDV1lRQnIxbEEyREg0aVN1SUh5M1Y2N0dtQ1dkZWRLMTU5b1h5SlRSMEVXK1dXZ3dEaDNldys2cGcrCnZUNm05bjBneUhKNGZvNno5NFc4VXF4WFFEZU9QOVJmeUJvZVRCV1Y5UGo4VXVvNUZDcXJVT2lpWE55c1lyQUkKRlA3UHVpb0FGc2RCcDNCdlhTRXQ1cTFKNGpCSW5mOXVGODJwTjBrYlNVaHo5ZEh5M3V0WjBCbk1DWU8wempsYgp1MW9EaXpnUmdIMUZwNjdsQjMyelNpYkRPQlFic3lCWGlJOWJHNWcyZEZiYUhsYlR2V1krQ0JUbkdxQmVvNExSCk45K2QyQlNXaHhmVFM0amlFd2hHZVlZa1NJYVpPeVNkYmRPd0hTQUlBemFiZXVrZ29IRUljQVUwZUlwS0pJcEYKTDRWUkFvSUJBQ3Rzc0lYQUo1RkNINEVzR2kyZlBWTDU4RDR1UDJvam1ocDhPQitjM3lYRmtqZSsyOWRKaVhSNApPNjBldVJaOHpYOVdEQ2ErNFVOdy9JeGkvajVXcTdwK2lwWjMyUkdwdXFLZ3BlUUpzMTNEcUVKWS8yWWR3RUtIClY2Mk9DdThVTHBYdDRaRTdPWWtZNWt2TnB6Tmtsd3JYbWkyY1hoMGNHanhpU1hoeTFVVDBGT2UvQXp6dHhERlMKbVh5d0dNUTloQ21iaUNpRCs2SDVDN0hsSW02L0hlcHR5UVV0b2JCUFN5aGJxeUhyUTBYN2p1S2JYcXUvREExaQpHRTFVTGsrbjFyWUlKdVdsWXA3dStQcTNvYWdkdis4WGFmeEV1UWRRVmlLWTBRbkZ0cXBuUVNob2RaN2N3VmZSCjdZclRLcWNJYzdPOWhJUlZIalcveVJBQ05RM3MxUUVDZ2dFQUxhazZBdFQxNk1ydDRIV0h5WHRlRDl6QjdSSFMKY1hpZVQyTkNxbGJMOFpaS3VQbUF4cjlwTkh4ZVoxdkljcVpZdXBKT1FxY3E1cVgxdUwydWpHZVdUY3NUMjlVQQpjNTF5a3Mvd1NPdGhmL2p6dUVxY3AwMEVKRXVIcEZBaFNqWlRCQ1FFZXBnMlUzRGRQM3pSNUNaN1B0RkRBcGdOCi9sQnN2S2gxTHNiYnZnUm1OZURYYS9ROEUrU01IdTRXbEl4NkJrTjdlWURaY2ROalRtQnp2d3h6NjJlZ09raWgKZ3VNaVpZZGx4eklQazZXS2JvWkNsVVdZclRxYTYxUGVrTzc4U2F6WXJCaklZL05YK2ZrdmdXNVVYZGc1WEpEQQp1TmNoZzN0cEozNjFIamdleTN4VUw5cndYaTdxRXVGb2xQcmJ3TnFVQ2tHektCTllrMDNrRlIrTE1nPT0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml deleted file mode 100644 index b7f0abb..0000000 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyl4fsk-codefresh-hosted.sealing-key.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - creationTimestamp: 2022-09-06T07:48:26.000Z - labels: - sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 631700a1a4007d001cd79ac5 - codefresh.io/sealing-key: 'true' - codefresh.io/runtime-name: codefresh-hosted - name: sealed-secrets-keyl4fsk -data: - tls.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6VENDQXJXZ0F3SUJBZ0lSQUxGYzJuNTFVWjl3cWc0OEd1dnoxL1F3RFFZSktvWklodmNOQVFFTEJRQXcKQURBZUZ3MHlNakE1TURZd056UTRNalphRncwek1qQTVNRE13TnpRNE1qWmFNQUF3Z2dJaU1BMEdDU3FHU0liMwpEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUURXdll3OFE0am1Pb3ExS1ZxQ0lvRnA3R3UyOWt4QmsrbWlveFRKCjBtSVZxL29EOHQ1VW91QmRBTmxvNXZ3ZDJ3bGUzTjFSYm9ibmRwa09BN05tcDFjYXZ5SkhaZW5vRXdyQUIybTIKbEl2T0ZBSWpnYkowTk9YZU5ld3VieVpvZXgyWFZ6VW5Kby9jQ2c2TDN2aVNnbFJ3YTRJOVZ4SGRReGlBeDE2MQprS3IydDBiRW1oLzJjeFlKby9oQ2tyVlFHZUdCQWk0Mkl5RWczTHB2MlROeEN0dXJDa1B4QjB4MDNQcXFuU09HCmFmOXRVZkV6ZmZKKzlBaUVsSVBpL1RRVVhRREUxYklFTVpSRzlKVkRHejNuc3pZTFhhNStDS2Z3WHJKZW56RkQKUUdlRFg1ODM0NjczS0svMEVzQTNqWWs5VUpnVUlEMzVmbm9pWm1vT1M3SHRMcC83Ly96cHJiWGQwV2YwYytUbwp5TVFEaXdDbjM3VDJMWUtlM2RHUEo3SlpTMlJ4b0lxVVNXSkJ3Ylk3VDl6MmZONWo5M3RRVVNnZHBhRmdkYi9FCkZmeDI2ZExmUFdiT3B1M2RpeEM0MVpTUTU0cnJOUllNM3lEZTdhUWxtWTcwVnFmVVlhSXI1TzVSTVB3dUlwOGEKQ0ViUloyaUxWRFlOczhjUEFnNWlodDdFc0pvZytienViejZqZFkxdWg0a0poWWo5UDM3V01naCtHZVNocVJFYQpxM0RTUHVVc1ovNG9OSTQ5VVJsTmxFR0xuVFc0T2VXTXM5MzhVQzhJVEpsdUl6ZjFXNGxJZUJ2ekVhTHdtTjZ0CmZ1WmJjZHpTTks4TFl5UWtTdzlJVU9oc2RXRXJZanpKcWpqZG1aaGlscE1CS0VqRWN4WWlTYTFvNkdzR2lxeGcKcHFxZGdRSURBUUFCbzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQUFFd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZApCZ05WSFE0RUZnUVVTdHpOWVltMDJIZEJYS2VGY2QrWmljSjFBcUV3RFFZSktvWklodmNOQVFFTEJRQURnZ0lCCkFBZ21TS2tWOFhvSTArTnYxaHNQd1p6bEEvUHB5R1YyMmxsY0pGOTVCWlNqRjlYNm1KTnVOVmlUbVJIeVkyYnAKY1ZJSWVjMUsxbDBETjZlalBpak4zcmdnRlU4ZlliSWRoK0JSemx6M0FkRjNybmp6U2RVd2RvUkRjYm85L2oyNgphTlB4cmptOTdNdm1LMjNuQ1lxY2ZMa1BHYVoySDZSMEQ3MzU0eFkvUGNLZVF2SXM3Q0RiaFhCaHNGellSdjVTCjd0MHBydTArRDdmRkhYMlVLRHEvUHVRZlJoYTlpMFFBSjV4RjBNc3BEaExnOHNFN0p6MERqblJ2NFpkb3FlS2wKcnFRNTJBRTNLdTdwUDZSZWpKR0FxQmVoZ0VxMlZlajJXS240NXZvVURSUmVlS3NMejJDK0hjb3dNMHRNNHhJZwphejJFdExPMmx3bUY1VUkrWlhNaHl1MzVva1VjZ3hCTTBIekJsWHAvQy83MGFCc0RyUVNoeVN0VHZCZFRNUE5oClJhZmV0SElzL0RidHpWWXNoVTRPTUdHSm81LzkzLytXbi9RSkRyQ1E2SW9kRythNjFUVkZKQldIcnlEOW5sbEcKZ1VYc3FVSzFFZnNBN2xlcWdrV1QzSlFRc1JPS3dYTGEzSC8wWmkvQ1ZyZXZqOWhNcVNXRk1PN3h6OEw2S1l3WQpTT0Q2R3BOeGRmR3dJTCtDSTg2WWo4MVhUSGFoSGhXM1MrQWt2UWpYaGt2SUtSeitnUXR0OUZYUHRTN3ljeEtaClFxQis2ZWlFcnFWcWIrWWdjdW5DQzJOYVBkZnhHckVXcnFhTlNWanMrZ1N2MDdBa1FzbktUUFVpOC9CNXBvKzMKQ0lvSFBiQ1d3ZWx6SFF5YmNtQ1BYODVCZUdZOGxpUm4vckJTc0pDQkxJeFYKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= - tls.key: >- - NNZGRnL0xCTHB4ZGR4OTh2STBtYWhxOUlkNWtkL2xHa2g0Ck4yc2hOYUlSc1c3VGNydE12a09WMEJLWHlnNUNhNlErZytZbU9PbnJ3cHIxSHk2YWhVV0wxT0JWUzZqSWtOVEgKNWFLSkVkbE9VaGd0cm54Wk9ML1Zmc1BzQnRTVGFHczdCNTVGVnVZb213dm9ZaGFIczBFL3htekJUN09ZWHJFaQp3S2gxOWJwZmJLeDFZd0tDQVFFQTVRYml2MjhBbUlMdVR1bUJBY0NhMmQ4VlpUTFZyNFFxQXhVMWlybFp5cXBnCnpzeFY1T28zNmV1Q2N4UHZwOWlEdFJNaDl5N0tMOGZvVTF5RjVBMXV4ays5aC8yb3pPa0JtaC8xUHdQVUFFUHkKb1Y2R1poY2c1YlMxR21aWTYrRGltTUo3NFhBNFdKbnFKdmNqWlU4YU4zQmNUZm05RndZaWozNTdMRUlZMTk1VQo3Wi9RUUN4b3dVT3NobkxvS2tTK3JXUzl0K2U4Rkk5RDRTYUtJaDVtbXRmMW1QS3BQRnNkQVNzcWFQbC83dytsCjhheGRhOTlUK0tGQWpNSUNuS1YvY0ZCU2lFNTdRWkh0Rk5rZmNBRjNxRUNveWZaamM1TTFuQlZTd3NYYnRQRncKS2xLL2c5VHNGWUFPNWlEOGxoUDQwUk1yekJSc0xwWnBlUFVkYXdyWXl3S0NBUUVBN3ZOVmNIa1k2VUdQNkZIVQo4b0djY2Z2dnZ2ZWwzSHBxTUNOTnJSdkcwbGc5TzVNdUtzVDNkMSs3TkR1bEYycnUzeFcvQnpYdUYvREY4Q2NWClpXSEtlUi9nL3dEbTFMTmc0cythUWljc01Lenlob0RTOG9pQy9ITzl3d0VuTXVibjBVeGQ2YnRaOVJYM3hraWwKU3dtSENrdUR3Ui9rNE1JVzRVa3J6dG00aUlHc1grYWpjT3V4enB0ajFkd2RyWlQ0WjBuMnJ6V1p4OEcwYThvTgp4dzlISEo1dEJiUU9mZmNrZUplOWM1OHNSTzVtK3AyVWdFVDI1TFhtU2VvMERCWFBrK1JRMWkyZFduTjE5UGpaCnlVd2NuZWxZZ1BBb1Ayd1htYTBobWYrMTRoMmpkYURtcDRNeE1nU3Z6cm1VSFpyQ3p1OUJMbk0wMzRwVTgrMDMKZGQ0eGRRS0NBUUJncjRaOEVJMXMxU0ZyMlBIb1hucEE3Z2VuUUUycm1oenVUajdiUUtKaWg0ajA1SmlDV2txZQppeGo0SWZ0em5Wa0UwWDN1VHlkMkFtdlcvV0ZjeERyMnAyVTVDdUgvRjRMZ29RczB2aFg2d3JTa1lUWlYxUC9ECldZVjNEcXdOY0ZQWTc0bkN3MUJXUHl2MXBUR2hMRUxDRXNJMC9QQlJ6dm82SDhnNkIvRmErSFpjRnJLZzFONm8KY0R4ZVNoWXUrZlNSV00wcTNUNnVZMGpodlJabGp2WDcrcDJwSXhCRTlhWUovMElaTFBOUVpnZkZQZUgyajBKdwozUXBXSWZWZVVoTzV3MzhFSWpXd21iMC9wdVc1c0RUbXA5MVozWlZnamszOGhaZjV0L09uc0tHTWpJQmpWRGtTClhveHJwSk5kZkRMM2VLTnR0VlZ5V1hkUFpCTTJSRTcvQW9JQkFRQ2JnVWJiTkROemlmZDBNUStmMENOajRUYzEKNVVhYlYrc29nTWxINXY5VDdNU1BHMmVjemtNRDFnMGppdWlmd1ByenV2aFhJNmNHd0hLNlR3Vi9MdzFMZ1E2UApqRzdZRktqU011aUNDQmRQSTNHdkpoR1l0dWI1VGFwMUhrYjdOZVoxSWZLUU12ak9rZk1nNFUydXZqeS9qTGM5ClJMSjJRdFBydWJwZ3NrRThKeGJ6RjczWjVrMVlEUGdlU0ZTK3EzNmEwaEhZMmhCMVN0M1dGcVM2Zk00czRQTFoKTk16bnFDS3FLenV3eTA4eUVZTE03R3pvSDdCd21yK2pHNUZrV3hrZ1ExUmdFdW5vMXQzY3AxcjhWYXdpZkNyLwpFOGM5enpxUWpZWWhKdS83WnZkUk9PTnBHMEUvMEN2RUptMndqN2FyRDRyVnJHYVB5cGNkMFZpZlpGV2sKLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keym54dj-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keym54dj-aws-local-runtime.sealing-key.yaml deleted file mode 100644 index ac78cfc..0000000 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keym54dj-aws-local-runtime.sealing-key.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - creationTimestamp: 2022-09-02T10:13:31.000Z - labels: - sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 6311d79948bfa1001ba25130 - codefresh.io/sealing-key: 'true' - codefresh.io/runtime-name: aws-local-runtime - name: sealed-secrets-keym54dj -data: - tls.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6RENDQXJTZ0F3SUJBZ0lRYmhibVhvSC8ybTZvcHFZMWViS0lKREFOQmdrcWhraUc5dzBCQVFzRkFEQUEKTUI0WERUSXlNRGt3TWpFd01UTXpNVm9YRFRNeU1EZ3pNREV3TVRNek1Wb3dBRENDQWlJd0RRWUpLb1pJaHZjTgpBUUVCQlFBRGdnSVBBRENDQWdvQ2dnSUJBTzYvcENaTmtvSS9SZnd2QnZ3eU0zb3pTVStKQWVZUGprN0toVnJsClZpblVTQlVndHVSQ0pvcUVlZUJFN3ZMSnlESkJRcXJaYXRZQWNlUFgrUDg3SGdPZEZsRFVnNWg5K3pLbzgvLzgKNUJUbjFDc1lUbk9FMVhjOTR5Mk5ZdnNyZlVDeXg2UUtDMEFZSmdyNlBVcDBwZlh1WU9zdWRzQitOLzJxdnRSVApsaWVQeVNORURLWXdYVGZ3OUYrbWRJUUgrYlJhS05wamVaUTBZTEFGbFBDWVdOY3BzY1IxTGdwUXlRaEFHSDdYCitaMlZhejI2ZnBCRndjci83VGpJN3Zxd1N5UzdDMmxIcmJMSHkvZmJpdzMyeXJodlBSYXlHSVdaeWdJanYyYlUKQW9DeFkwc0ZvMTJoWG9XQTkzQksxTmZaeVZFeEtCaG50ZmZRL3l4cjdaSExxWEFCOUV0bE91V3JkNWZ3UDB0YgpyL0dBV0I3YnpxVUlyd2hFNUdXTklyMU9RTVN6bDlmSzYrLzhURjg1MFFjNWhjM0hoWjYwNXUxZHdSOUFudmU2ClczWER2aUp0M1UwZnhZL2YvN0VYaXhHa3MyZjhtUUU1QXJEN3Bwa0NlakMvMDZsVmpwZFJrTWQyVUQ0dDdIb2oKblVVR1U5KzQyVmNnU3UyRU9sMHdnNk15RXQ2VEtNaEYwZ1JjN1FKeVEzT0MzbU1saU04M2tjbXZyb1ZnNjNiWAoxN1o0ekdLODFBUEdvSGR1SERLTHRqbGpHUVU3R3h2ZmNUSEMyTUxvTkdvKytrb0p4bld6Z01lbGNtdTA4aWMwCkV4TkMvTi9xV0dObXB1d1JGbUpUODJ6TDM3d29Ob2tMTnN0bms4ekkxRGQzUUMxSVVtQmRlaytVRHg4TDEwWHEKTUhIOUFnTUJBQUdqUWpCQU1BNEdBMVVkRHdFQi93UUVBd0lBQVRBUEJnTlZIUk1CQWY4RUJUQURBUUgvTUIwRwpBMVVkRGdRV0JCVFgvRUtvVDdieERoRjB2VFNhWVUyTUwxU2tWREFOQmdrcWhraUc5dzBCQVFzRkFBT0NBZ0VBCk02NzlleXJFNUkvUk9yVEUwY3h3bVpHRUJiSzNPcWU4UExIcExmMFlLcUNqcDRlQisxRkNvTUovd0czbVBxZG8KaVhBaDY3Uk0vNFlvYVoxSStLZHcrSVRoZSt3bzJJdStXcDJkOVhBWHR2OVdtV2xRcFdkUzFhL0V3emNMQjl0NwpNY2R5NUE4QUxHblRHZFFmUVpnb05FTTMxZXJUQ0htME1rY3JJQ042NzlYV2V1bVVPL01vOFRZVVBpdThJNy9jCjF3WHpDQmw2R1NQYjM3L0ZaYnU5d2kvYjFOOG5ydjVTdlBnRVdpUmhBaitxK1ZHSjJJa09UM1RTL1NvZFhZYk0KOFdCTnk4dWRicnk5L2FqVE1MckV0TGtmU2tQZ2RnbG02MnV1b1BPVTZGcmgyTEhWaitnRkxjUmNQTEh2U3lUcwozWk1WN090dzlSVXdDZC95dmxEQWlPRTNxa1E5UGlYd3RkRVI5M2hqbU00U0RlbnRLSzhFNytPNVhOaUdtenFzCnR6Nks3U3NvdzFBZk5qcXdabDdsZkkwa0JQQVQ1aUpRcCttZFp2cTYwTUR0eHdMVkpKZUYycUtMd2RlQWh5OVQKaGUzM0d5UTZLb0dPSmNOU09BVU5ZaE14VzkyTjhDRFkvTEhXSFFTWm83aWVQb1R1MTZhTEJmd3FFZ0VKazlZbQpIKzBlVWUvUjJhUWlsdWdIV29NTXo2bytWcEsvaFd5NW9FYU9kSVgxL0RqRnJaWmZTemVqRkVub2xlOWxpbVZCCjVFb0ZIS3hnVnZqaWJIbzVRSWpzT04zenMvalNQb1JiYTcrTlJHYkFlSWw1UzFaRlZONFFOZ0Y3MGRVdjlveG8KRndBU1JzNG9WRU4yK3czdCsvaWZPSldIYitIOG5hOXlQUGU3Zm0ybmk5MD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= - tls.key: >- - JQVVdXdUlPdHpMa0dUd2pNbjN4WFZmajVzWWFhVkY2ClVTckFCcU00UG9NM21tN2JEUGNzcGFGMDlTUlVLdHJaTkZwVnhlVGkzakVPU3RjYWwzSEhaNFc4eEtidVZRdjcKWU1iYU9jQUE1TnY2MWYyOHVybkRGK1h0TU1wR2J4QXkrVWs3M0wvUFBqRkpqcldPWUZoTVdqTlZZOTNmbDhEcApFbEtwc3ZINllkb0l5RmNDZ2dFQkFQcVoyREswcG9PUjdPUGtjWjQvUmxHVDJSSkdqemFUbW81d0V3a0N6Vng1CmlDb0JUOThoVWpZcFlOZmczTm8wZWFuT3BWTk5udWRNcVZlbll1UXZMQ1dTU3ppMDdOYzZZUnRmMGpsQlc4Q3oKZDVnL1VaMHUwTkFqdlA5VmpOT0lJWGtjQ0JxSDJwM3NnYVNnVmNUb1BtdzlUMS9PTGVzakYvdnVobmtldmpwOQozajhVWUJNMzA1MVhDVllMb1N5a2RUOGFSbmJMYTNtcnREM201ZU01V3Q3ak5WcklsTnVHeWlwNFBVbm1yYlQxCjdIMFpXRVdDcTBHZEQ1VU9zUndYM3VYV29DeHBnRS9WYVFYbFRNLzQzUDA1c2wxaXFSOVc1N1VDZWRPS3BEemEKdFVUVXRtTlUrY2lvNi9ldG5WSWJFdldBU3lLWWViSGd0WU1EaGZ3Sjg4c0NnZ0VCQU01Ny9VOUpqZzk0THY4cwpiZ2hUaG1yeEtSTzZnalJyU3FVRFJxWmRqV1JTa00xcTQvM2g4Zi94d3N2MmcvRjdocmRPYm1mSnFLU2poQWF0CmRqWTRpM2l4eGt5M2s1UXB5Q3ZrZHpPdERIRDdPUUxadlY1SlIvc1VCbFAwVVphb0lLYWVRM05ROGhDNXlZQzEKT3dOMURnSmZselowY2RYdzdMN2dSWUZrNlIwT3NTRWtMa3dDdTY2amFmTWdydE5qV3BVcjlUQ0xLejdUVm90SAphZjF6ek9hL3crbGNQbHBFaCtzYTZ6RmZwU2c1NkJKUlZLWVpvSmtlcFVzcDlHWlFtL2xzWEVxSnA3U1RPME5vClBscFRzbXBoSjRGd1A4SmxIdUtSNFNQSTFDOEJaSEpzQmc1NlpUMG03a0N6VzhhTUs4SER0Rm9adVc2TXg3aUEKTCtvRmQzOENnZ0VBVVAzNTF1RjEwNTRNL3RadE5pVGpHQ2g5aHArUlY2VTYxWUE1VnJjMklnWVJVT29kbzFMRQpuRWFoU3dRY3ZOVXE0UXV0ZVEva0pJTXRVK3dBVlJrOTNtSzZ0dmdhZDdFaGcxUmp3Q2QwZlFKRHk4dmpGN2J5CnUrSmhDZkRmVTlweVh3OEZPM1hlM1IxOEJQWGc0b1BnOE9DYno2MzJQMEdYVmRBUVhBTG9ua1RoMkdkQWFkV28KS2ZqZ1JwUDVvbEVBcDhWWk1ybXA0YWZ4MS9QUkpxLzV3NEdSVStieDNVVmgvM25lN1F5RjVhOTVvRERaeTVWZwp2aE1CM3ozaFZlQU5KU0ZKb1REenpGbC8yT3p6OTE5S0pQbEp3VTdLdEJ0RlJjWW9FNHVDYXp5UVMwK29KdEJtCjdraFNBemwwVi8zeUViQkdHRWRKUllrSGdQRlprMHl3SXdLQ0FRRUF1WE01VktoNDhncXZLdUZlbXdwclczdjkKMlRjSzcwWGJDdnhkc09Va0ovaUs2a05kR21PK2VHS3FmKzJwTGRBSW12NG1heTJJcmRrTThnRklOUDJIWHgrRgpSUUNHRVpsYllzcUt1bHNVQlgzQ2xtNGRySVg5NW50dVg3T3RUTHpKYTE0YWF1NlRMUFdoZjZ6QTBNdW5ZVzZSClV6SysrY1lCVG0rWkhFSWJkYVZjVE4ydGRJanExTzllUVBMckYyYWJPaUFMTjZNc3UwVkF4Y21oYnE0MEpxRTMKczMxaFN6dC9BNTNJSTVBaGJxRHJXOUM3Y0J1ZzBnNy96NllhcmFOU2xVa0NZdDByZkNzdytlSE9wa3BMOFR0RQpCaDBBbjhSdVN4c2FwODZhczgxR0d4NDl2UWtrREZPRnFoY1F1dVViWWxMdkEvejdkM3FWL2hYWnBFNkRiUT09Ci0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg== diff --git a/shared-config/runtimes/codefresh-hosted/in-cluster.yaml b/shared-config/runtimes/codefresh-hosted/in-cluster.yaml deleted file mode 100644 index 73781e5..0000000 --- a/shared-config/runtimes/codefresh-hosted/in-cluster.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: 'true' - name: in-cluster -spec: - destination: - namespace: codefresh-hosted - server: https://kubernetes.default.svc - project: default - source: - directory: - include: >- - {all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/codefresh-hosted/*.yaml,runtimes/codefresh-hosted/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml,codefresh-hosted/codefresh-runtime-applications.yaml,codefresh-hosted/philipp-test-rollouts.yaml,codefresh-hosted/philipp-test-rollout-reporter.yaml} - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true diff --git a/shared-config/runtimes/codefresh-hosted/philipp-test.yaml b/shared-config/runtimes/codefresh-hosted/philipp-test.yaml deleted file mode 100644 index 4910d3c..0000000 --- a/shared-config/runtimes/codefresh-hosted/philipp-test.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: 'true' - name: philipp-test -spec: - destination: - namespace: default - server: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - project: default - source: - directory: - include: >- - {all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/codefresh-hosted/*.yaml,runtimes/codefresh-hosted/**/*.yaml,codefresh-hosted-managed-cluster-philipp-test-cm.yaml} - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true From d7153da9830a2afbf0a48169b4549eba9b128a03 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:10:37 +0500 Subject: [PATCH 017/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..c3e02d4 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.504 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From 441e91fe75fc0a77bd8c7eb8e5c295cf42e6ccd6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:10:46 +0500 Subject: [PATCH 018/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 6e4d4ab7450ca9f9b46b0546f12e4222776680d7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:10:47 +0500 Subject: [PATCH 019/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 59 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 2 ++ 2 files changed, 61 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..fd5ea1b --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,59 @@ +apiVersion: v1 +data: + base-url: http://philipp-platform.ngrok.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - isInternal: false + name: events + syncWave: 0 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.504 + wait: true + - isInternal: false + name: rollouts + syncWave: 0 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.504 + wait: false + - isInternal: false + name: workflows + syncWave: 0 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.504 + wait: false + - isInternal: false + name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.504 + wait: false + - isInternal: false + name: sealed-secrets + syncWave: 0 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.504 + wait: false + defVersion: 1.0.1 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + internalIngressHost: "" + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.504 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..88af71b 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: From fda1a653f5da53c04bda62d2d667aa68476e51d9 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:10:53 +0500 Subject: [PATCH 020/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..803c4af --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.504 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From cc5fa2ece9a29e4addfd1765a9b2bd7b1fd6a3fa Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:28 +0500 Subject: [PATCH 021/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..2efc358 --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.504 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 4d0fa8cea0f2c8987db225962eebfe4b1e4180f5 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:30 +0500 Subject: [PATCH 022/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..7a43abb --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.504 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From b65f45fe3cadcb648c9a40ad6774716b9cf500d4 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:31 +0500 Subject: [PATCH 023/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..7e492c4 --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.504 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 3872970efe140450923b7677beefd990eb0964ff Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:32 +0500 Subject: [PATCH 024/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..368ab07 --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.504 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 26e515c097fe6e834a38ec21a33dde2bbf23e8d7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:33 +0500 Subject: [PATCH 025/411] Created Workflows Ingress --- .../aws-local-runtime/ingress-patch.json | 12 ++++++++++ .../overlays/aws-local-runtime/ingress.yaml | 23 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 8 +++++++ 3 files changed, 43 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..6de8554 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + ingress.kubernetes.io/protocol: https + ingress.kubernetes.io/rewrite-target: /$2 + nginx.ingress.kubernetes.io/backend-protocol: https + nginx.ingress.kubernetes.io/rewrite-target: /$2 + name: aws-local-runtime-workflows-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: argo-server + port: + number: 2746 + path: /workflows(/|$)(.*) + pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..2fb61e0 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: ingress-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base +- ingress.yaml From 6b284d70bf2c89cc76fbf68fc7f374612468650d Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:34 +0500 Subject: [PATCH 026/411] Created App-Proxy Ingress --- .../overlays/aws-local-runtime/ingress.yaml | 18 ++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..ab4f1f0 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-cap-app-proxy + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: cap-app-proxy + port: + number: 3017 + path: /app-proxy + pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..218d6a1 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=http://philipp-platform.ngrok.io + - cors=http://philipp-platform.ngrok.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From 19e165011bf82d5eed78d421f27cd827d095cd0f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:36 +0500 Subject: [PATCH 027/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 14f7cf7940c1129586cbd4ae357d22fdeae0c81a Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:37 +0500 Subject: [PATCH 028/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..f1c1469 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: http://philipp-platform.ngrok.io/2.0/api/events + name: events +status: {} From d54cff45863393660662742d5351b9ccd5a6d84f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:38 +0500 Subject: [PATCH 029/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 204ed64c44d2ecb09da9ca7713dd874d506dd088 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:39 +0500 Subject: [PATCH 030/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..2e19a37 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: http://philipp-platform.ngrok.io/2.0/api/events + name: workflows +status: {} From 2458a9e1cc9881aab078b091495b24f5c8076be3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:41 +0500 Subject: [PATCH 031/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 182658f3e07cd1cfd2eef674b18d8900d716d0c7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:42 +0500 Subject: [PATCH 032/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..86a3bd3 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: http://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: http://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: http://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From 42e9b3fac4e8bf8a76a6cbb7dfcd3efd900b4605 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:44 +0500 Subject: [PATCH 033/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From a5a1ec27f59f5011fa80e10071b78915a6418260 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:11:46 +0500 Subject: [PATCH 034/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From be9a233433e0c06a1ec92e177f80687d90569f97 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 09:12:52 +0000 Subject: [PATCH 035/411] commiting isc app 'in-cluster' to 'aws-local-runtime' adding 'resources' dir to shared-config repo commiting isc readme file From 1257e2b8d42f9620133b8f123eff515246154cc7 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 6 Sep 2022 09:12:53 +0000 Subject: [PATCH 036/411] installed app 'isc' on project 'aws-local-runtime' installation-path: '/' --- apps/isc/aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/isc/aws-local-runtime/config_dir.json diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..1c85d6e --- /dev/null +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "isc", + "userGivenName": "isc", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "shared-config/runtimes/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "shared-configuration", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd.argoproj.io/sync-wave": "10" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 0ffe62a927201224558ea86a69f2701c96e16391 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:17:29 +0500 Subject: [PATCH 037/411] Update --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 218d6a1..69993fa 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=http://philipp-platform.ngrok.io - - cors=http://philipp-platform.ngrok.io + - cors=http://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From 44630afccb2d9e7a4137c51426f9f79185cbcdff Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:18:29 +0500 Subject: [PATCH 038/411] Update --- bootstrap/aws-local-runtime.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index fd5ea1b..ea00867 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -45,7 +45,8 @@ data: defVersion: 1.0.1 ingressClassName: nginx ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com + # ingressHost: https://philipp.hybrid-team.cf-cd.com + ingressHost: http://92.248.191.75:3017 internalIngressHost: "" repo: https://github.com/PhilippPlotnikov/aws-local-runtime version: 0.0.504 From 957485501b3aee65684ab96b072265a6b947ff5e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:21:14 +0500 Subject: [PATCH 039/411] commiting isc app 'in-cluster' to 'aws-local-runtime' adding 'resources' dir to shared-config repo commiting isc readme file --- shared-config/README.md | 44 +++++++++++++++++++ .../resources/all-runtimes-all-clusters/DUMMY | 0 .../aws-local-runtime/in-cluster.yaml | 28 ++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 shared-config/README.md create mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY create mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml diff --git a/shared-config/README.md b/shared-config/README.md new file mode 100644 index 0000000..85ee1f9 --- /dev/null +++ b/shared-config/README.md @@ -0,0 +1,44 @@ +# codefresh-runtime_internal-shared-config +This repository stores configuration files that can be shared between runtimes. + +Configuration definitions that will be stored in this repository: +- Argo CD managed cluster +- Git sources +- Codefresh 3rd party integrations configuration +- Ouath2 Authentications applications + +Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. + +## Repository structure +The base path of the repository will include 2 directories - resources and runtimes. +The resources directory will include the following sub-directories: +- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters +- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster +- runtimes/ - a folder for each specific runtime. + +Each manifest will be applied to all clusters in a specific runtime +both control-plane and the runtime-specific directories are optional. +The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml + + +``` +├── resources <───────────────────┐ +│ ├── all-runtimes-all-clusters │ +│ │ ├── manifest1.yaml │ +│ │ └── subfolder │ +│ │ └── manifest2.yaml │ +│ ├── control-planes │ +│ │ └── manifest3.yaml │ +│ ├── runtimes │ +│ │ ├── runtime1 │ +│ │ │ └── manifest4.yaml │ +│ │ └── runtime2 │ +│ │ └── manifest5.yaml │ +│ └── manifest6.yaml │ +└── runtimes │ + ├── runtime1 │ # references by /apps/runtime1/config_dir.json + │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster + │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster + └── runtime2 │ # references by /apps/runtime2/config_dir.json + └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster +``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY new file mode 100644 index 0000000..e69de29 diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml new file mode 100644 index 0000000..0581bc1 --- /dev/null +++ b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + finalizers: + - resources-finalizer.argocd.argoproj.io + labels: + codefresh.io/entity: internal-config + codefresh.io/internal: "true" + name: in-cluster +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + project: default + source: + directory: + include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' + recurse: true + path: shared-config/resources + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + targetRevision: HEAD + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true + syncOptions: + - allowEmpty=true From f1d923912440383fe048ace6f1fb6b89a7b663c8 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 14:21:34 +0500 Subject: [PATCH 040/411] ISC Commit --- ...ts-keyb7n6b-aws-local-runtime.sealing-key.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyb7n6b-aws-local-runtime.sealing-key.yaml diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyb7n6b-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyb7n6b-aws-local-runtime.sealing-key.yaml new file mode 100644 index 0000000..f7dee81 --- /dev/null +++ b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyb7n6b-aws-local-runtime.sealing-key.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + creationTimestamp: 2022-09-06T09:11:48.000Z + labels: + sealedsecrets.bitnami.com/sealed-secrets-key: active + codefresh.io/sealing-key-id: 631711191b2d46001cc80a91 + codefresh.io/sealing-key: 'true' + codefresh.io/runtime-name: aws-local-runtime + name: sealed-secrets-keyb7n6b +data: + tls.crt: >- + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6VENDQXJXZ0F3SUJBZ0lSQU9mc01iV0lwYkRKS000Smk2aFUzRWN3RFFZSktvWklodmNOQVFFTEJRQXcKQURBZUZ3MHlNakE1TURZd09URXhORGhhRncwek1qQTVNRE13T1RFeE5EaGFNQUF3Z2dJaU1BMEdDU3FHU0liMwpEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUUR0bDdhNkpsY2tkTjI4NFRtZVdPZ0lBMUF5TmVna0RlaTMweTNaClRPVUQzZWhMOWNxL01ma0JJQ1M1elpNRjBqaVVOeFJ0Wm9Sc2lHYU9ZVVk1Mk1lSEhGSnp6UHUzSmphdHNvQkQKa2tGb2JLYUQrZkxXakV0bU9Xc1B1eklmQ1Y0cjVkV2lFcDRWQ0p1QUkzVkEzOEVNQ3pnanFnUmk4ZDVJTWVPLwpYS3BLaUgyczRoNXlTeVBVY2NzQVh5eFd4akoxOEJYVzFxWTI0ODZDdWZ1eWxCK3VuNkthYlYrRjlEVXdYeXZ6CjBHVW1ZcldYcW1LNjRraDJNVy9iN0JtcnNpM0V0akV2L21HVGpCa3pOMmZhZ2w5RFlsOXJDemM5cDh4RFV6clUKaUU4WjcwNHBIeHJhYndKMHJCUnd6OTc5Z0hBTFZPa2RsaE52OEoxVS9qUEw3ZTNiaGYvM0Mrd0gyektxamRGWgpTN05ZSW5tVElLMzZKV0NaL3RNVVY1VUxtZDc0S25SUXB1c3V5NWhwOWQ0L05RbGJVRXZjVDdsOFRzM3M0SVg0CkpFc3RNWVN1YVhxMVJiNGIrd2tUMnFCQ25lVkFkWWo1OWZmdjJpNFA2SEZlb1JvNnNnY3RqOElYTFY0cElMa2UKQ3YwZnQzdUxZOTZ0dWRTMnE2NUZQVENsUVpNRkdEMlRNR1BQZVhvd042WkxtY1JqY2V2cm1GS0Jhd3ZUczM4eQppNDNla1dZUkd3dlkvejBraGN4UHpINTlXb1I5NGJvckc5QXlLSmdNcGErM1dvWE9ORGYzSHFhTko3QjBGT0IxCk03VWtLZTlVU2UvL1l1Q2RJSk0ybWRZb3hodkJSV0U1alhqRjY3NUJXMkZjNlB5b2ZGd1I4dEM5UkV5dkNua1EKckxGdkt3SURBUUFCbzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQUFFd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZApCZ05WSFE0RUZnUVVrNU9BbWdjTXFoYXZhOHBuWEJ4MGZFRmllcjB3RFFZSktvWklodmNOQVFFTEJRQURnZ0lCCkFNL0tCWUgrcXVJVWFzeEt3Umk5aWphYnU3OWlUNkgwRDh2TUQ3VVU0QnQ2Ukk2UFJBM1hITXM4dmQ5SzFXeFkKNkJybVNwQk9ONmV4dnowVTEvME1jS1pYQmNtbUxoWTN4TkJZK05ZaVkvVzVaKzgxaUhhdFhOTHRpUHg3eFdWbAp2MU95SGJXMDV0REhiM3VGbTBPaEpBZHFrK3RMNXcwRndiRVltK3ZMdzFqZEJ2ZkYvQ3RGTkhPK2xiSFFFVVNxCjhnM3RNNFdQRGgyUGVzWGNpNTROZ2NvT3BMOWpleXJqc0x3dWxOUDltdjV5NFJ1NFRwSVlrQWRxQ1RRQ3lKT3MKaWpYcjNNZ1Z6TDVMQmxFVi9YYVlrTVlBdEMwd05JUThvREVPYmsxYytXbWY5QmRFMXZoMXZSTFI4dlEwYmtlcwpSQnBCK3FnTmVab25BMU9acmYrTkpzb1JuUzBpWkl0SlcrRnlkc0Rkd2J3UkJPWms2WkVtVTd5bk5CTzhFQWdRCmpnSmh5TWROeUdsbkxSMy9yZ0RhWEtUNG9pQmN5UEw3WGZJL1l3cFAwaWJUaS9ib0JuNStOMVcvUG8vbzVpU0MKNUlOMFVUNEVNTVROWmtpUDRtUGxBY29ZcDJ6UVRuYTZJVkp1WnVEcEZ4d0ZXNjR1R3Y2VHJ3aVlLczJHR0pLbApOK3BSY1VrZ0NuZ1B6OU9ob2phQUg4eEFqTTVPbkpmZ3l0cFVMV3IvQUdzSEFFVERuOExudjlOWHVqVHZ5MXU4Ck9sa1NsRUdJVTczRFZEU2ZEK1Mvd252ZlRCV2d1ZTlReFhxZDRwTFBaVVRNeWx3OU12aHFldGpNVWJBSXREQ1kKTFhKZkNQOVBKVmNhRlFmL2VXTUQzZ1JVNkFsWUFNMlF5QWJGa3U3MFBQL3YKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= + tls.key: >- + ZSQS9lcWFVOEpkSTBIN2pTMHMwQTM3d2tjOG5ieC83b1l1CkNFcEJNVVo5bnUycndEMmxzM09uNHN2R2x1Rmw2NlZKbzhOck1IeThCcDVRbmJIYU9HQ3U0NCswSmNnLzNLNDkKdGFWaWR3c1RZdWFUbldYbWtvUjhVcGhpWDk1UWlVM0MyM0xMdTRvMkpON3lwQUtPelJqVHUwUmxIVUt2b2ppWQpDQ1cxQnpCWmp4bDhFd0tDQVFFQTlOT1BIT2FOYzFkS0NkcjZDM28vZFZIUUtER2dvYTZiTmZvRkUxZzZJRmhEClNUenZDdnVDcGJEMzF2K2xDbnNad3JaWXR6cHRmelZKaVhMcmRrendWQXE5N0Nva1FnU1lkdm9KV1Rya05SRSsKUU40VDN2VTZOS2RNVnBLR0ZZd0dKNjk5VjZSQ1FSeFBWOVNQY0pTR0NMZ3h0aUVONmZueTFUai83YXJCTXg1NQpLR3dsbHZQNE55RmthZDZjOWJ2WmRVekZwcmt1UzZOSUhzcnRyMmh6aE5KWUdDblcra1FkSm1UQUJyVVMzQ1pHCnUycU9uajNnQm1waDVhZEtxZlVYbGlMcEFIK1d0UkxMREZ5MUkrSTQ1cGE0STdMbys4ZEo0VHFlUmxCU1ZVSEEKODdzUXM2TzNvM01nbGlQaHpvYWNYalhQVkVLNlpkRVlnalp5VkpqemlRS0NBUUVBMnIwNDN6UXBMYjV5WGl4OApwUkljRG9TRkJOUHFkckJJODRTZVJwbldvcDVMaTlvNzVQRHRNY0NwUjJWajVGT0dYQ1ZpR1ZmbEdmNDFaeVM3ClJUZTJFblBnbmZSOW13N3dONWtDZ3pqdkpJYjM3cjJjTDdmanFDOFdQNmxERXBMQko5SFBOUjloRHhnTVNZdkEKSXZTcERmYjQ1aE5CQnpTZklieEdlSGJ6dmwyY3FoamM5cGszQ2hOM2ZHeURlWWhOWjdpN2oyRlhFSGVJdFFFUwp4Q2NSYlA4YWNVbG96WGlNRHZiQVRWM0gyOGZKRGZVVmZHSlNLcmFZbzhFRTIxb0F6SzluQXovckY0OVpoZVViCm1aM1k1T0greEl5Z0JmMGp5TE11aCtZT3BqZUtDRUxsNzByWnF1eVJuU1c1N3cyR1ZlQU1Vakd3TXFRNG91N0EKUEEyOVB3S0NBUUI4cWZrMmt5TTF0eDNwTk1xYjY0ekNsWDB6NmtsTDZ0ZjN2UzYyY2Zkdkh1SnNPWTNTL3N6QQp5QUw3UkVOcXVkSWROcktuNGlWOVg4bnBKazVGZDluc1FXZ0NDRmRjRW5EOExFZDBXeXQyNWlmWDZmMGVTNnB1Cnd6MTQyN1ZRNVhNQTVEZ2oxMjB4TUZRcWVmN3NLWVN5amZBcU9GeVlab0RERi9vaHNCQWVrb2JKRVlCMmhCWkIKSkV5NEovV3VudytVemhuYTBuS0RhMG8rKzcvWjBJcjUrQTJKaUV5Q05Rck8wUUNDcWROSHJHblo1dUZtTEVXVgpucmZvczYydUt6SHViaXBNNmFyNDJ1L3ZoSWxzRXpZOEhFVDVVSkdZR3h0QWg1T3VaQm40ZGJubG9ieFliS1lHCm9ZblhTY0FpWktMY3lmT2ZpVGJXdjRrR1RPa2NzS0ZaQW9JQkFRRHlzUmt4VVZpZVpvdDRWS0pJUGJpS0twRkEKQUtMNHpHRFAvYkVRRDVtSXUybzdxNEF0MU9aZkdmQWVzZCtvQ2I5SytzNTJ2TURDeVpORmVsL2pOaG10TFNqTwpBUUxHZGZpMHpaOFBFZFNPSG1LMG1McXNmSFlONVEzbW1MMEpJYkZUWWdXT1NVczV4Q0V6VWZ5d3RDeVlCbVNpCkQrTmY2SlNVL0t1ekt2NkxhUCtsKzJncnlBNlhCeHNHRnp2MTZ6enRHdUY3WXNIdms1SVFTUnRkZC9sR0dRaDAKR20wV0V1elJBMUhQajFuSmRnbEVsZGUrNDhQWVZOS0NvNzNxNDlqeFlwUVNrdDA0WUN0UUdQUHBMMWFqNkVmSwpqZ2V2TEZDaVdvbmVrbXdPd3lSVkFIL1Q0UGtBVlFJTkFNMDZIQWRkU3BwdjlqU0IzdFJ1S0lJTUFpMXkKLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K From db4dc9c3fae2e1da5be4875b0679d1619666be5a Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 21:13:30 +0500 Subject: [PATCH 041/411] Upgraded to 0.0.505 --- apps/app-proxy/base/kustomization.yaml | 2 +- apps/events/base/kustomization.yaml | 2 +- apps/rollouts/base/kustomization.yaml | 2 +- apps/sealed-secrets/base/kustomization.yaml | 2 +- apps/workflows/base/kustomization.yaml | 2 +- bootstrap/argo-cd/kustomization.yaml | 2 +- bootstrap/aws-local-runtime.yaml | 13 ++++++------- 7 files changed, 12 insertions(+), 13 deletions(-) diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml index 7e492c4..de42143 100644 --- a/apps/app-proxy/base/kustomization.yaml +++ b/apps/app-proxy/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.504 +- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.505 diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml index 803c4af..65a8fdd 100644 --- a/apps/events/base/kustomization.yaml +++ b/apps/events/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.504 +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.505 diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml index 2efc358..16a3c0f 100644 --- a/apps/rollouts/base/kustomization.yaml +++ b/apps/rollouts/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.504 +- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.505 diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml index 368ab07..126e149 100644 --- a/apps/sealed-secrets/base/kustomization.yaml +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.504 +- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.505 diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml index 7a43abb..1c7b0b8 100644 --- a/apps/workflows/base/kustomization.yaml +++ b/apps/workflows/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.504 +- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.505 diff --git a/bootstrap/argo-cd/kustomization.yaml b/bootstrap/argo-cd/kustomization.yaml index c3e02d4..ea19192 100644 --- a/bootstrap/argo-cd/kustomization.yaml +++ b/bootstrap/argo-cd/kustomization.yaml @@ -14,4 +14,4 @@ configMapGenerator: kind: Kustomization namespace: aws-local-runtime resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.504 +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.505 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index ea00867..078845a 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -16,40 +16,39 @@ data: name: events syncWave: 0 type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.504 + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.505 wait: true - isInternal: false name: rollouts syncWave: 0 type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.504 + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.505 wait: false - isInternal: false name: workflows syncWave: 0 type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.504 + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.505 wait: false - isInternal: false name: app-proxy syncWave: 9 type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.504 + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.505 wait: false - isInternal: false name: sealed-secrets syncWave: 0 type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.504 + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.505 wait: false defVersion: 1.0.1 ingressClassName: nginx ingressController: k8s.io/ingress-nginx - # ingressHost: https://philipp.hybrid-team.cf-cd.com ingressHost: http://92.248.191.75:3017 internalIngressHost: "" repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.504 + version: 0.0.505 kind: ConfigMap metadata: creationTimestamp: null From 8c46ffef6a0268651a116bc5093d56884654d006 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 6 Sep 2022 21:17:24 +0500 Subject: [PATCH 042/411] Update ingress --- bootstrap/aws-local-runtime.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index 078845a..0dab0ac 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -45,7 +45,8 @@ data: defVersion: 1.0.1 ingressClassName: nginx ingressController: k8s.io/ingress-nginx - ingressHost: http://92.248.191.75:3017 + # ingressHost: http://92.248.191.75:3017 + ingressHost: https://philipp.hybrid-team.cf-cd.com internalIngressHost: "" repo: https://github.com/PhilippPlotnikov/aws-local-runtime version: 0.0.505 From f285f5c843bbf9a225358f4b269223a6a4c18c2d Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 7 Sep 2022 11:07:57 +0500 Subject: [PATCH 043/411] Update --- bootstrap/aws-local-runtime.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index 0dab0ac..eee5cce 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -45,8 +45,8 @@ data: defVersion: 1.0.1 ingressClassName: nginx ingressController: k8s.io/ingress-nginx - # ingressHost: http://92.248.191.75:3017 - ingressHost: https://philipp.hybrid-team.cf-cd.com + ingressHost: http://92.248.191.75:3017 + # ingressHost: https://philipp.hybrid-team.cf-cd.com internalIngressHost: "" repo: https://github.com/PhilippPlotnikov/aws-local-runtime version: 0.0.505 From 18d90db55b5b6193eed0b4be2819f9bf518ce7b0 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 7 Sep 2022 11:12:19 +0500 Subject: [PATCH 044/411] Added project 'philipp-test' --- projects/philipp-test.yaml | 97 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 projects/philipp-test.yaml diff --git a/projects/philipp-test.yaml b/projects/philipp-test.yaml new file mode 100644 index 0000000..683c6fb --- /dev/null +++ b/projects/philipp-test.yaml @@ -0,0 +1,97 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: philipp-test + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: philipp-test project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: philipp-test + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/philipp-test/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/philipp-test/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: philipp-test-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: philipp-test + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 8aef38602882f597425c676ca0730eae150ea766 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 7 Sep 2022 11:12:24 +0500 Subject: [PATCH 045/411] added cluster-resources for philipp-test --- bootstrap/cluster-resources/philipp-test.json | 4 ++++ bootstrap/cluster-resources/philipp-test/DUMMY | 0 2 files changed, 4 insertions(+) create mode 100644 bootstrap/cluster-resources/philipp-test.json create mode 100644 bootstrap/cluster-resources/philipp-test/DUMMY diff --git a/bootstrap/cluster-resources/philipp-test.json b/bootstrap/cluster-resources/philipp-test.json new file mode 100644 index 0000000..8b7a618 --- /dev/null +++ b/bootstrap/cluster-resources/philipp-test.json @@ -0,0 +1,4 @@ +{ + "name": "philipp-test", + "server": "https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com" +} \ No newline at end of file diff --git a/bootstrap/cluster-resources/philipp-test/DUMMY b/bootstrap/cluster-resources/philipp-test/DUMMY new file mode 100644 index 0000000..e69de29 From 5b5c33bf1a15dee0d936c7f24cbb69cf4985287c Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 7 Sep 2022 11:12:27 +0500 Subject: [PATCH 046/411] adding cluster 'philipp-test' to runtime 'aws-local-runtime' --- .../aws-local-runtime/philipp-test.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 shared-config/runtimes/aws-local-runtime/philipp-test.yaml diff --git a/shared-config/runtimes/aws-local-runtime/philipp-test.yaml b/shared-config/runtimes/aws-local-runtime/philipp-test.yaml new file mode 100644 index 0000000..779dcb2 --- /dev/null +++ b/shared-config/runtimes/aws-local-runtime/philipp-test.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + finalizers: + - resources-finalizer.argocd.argoproj.io + labels: + codefresh.io/entity: internal-config + codefresh.io/internal: "true" + name: philipp-test +spec: + destination: + namespace: default + server: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + project: default + source: + directory: + include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml}' + recurse: true + path: shared-config/resources + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + targetRevision: HEAD + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true + syncOptions: + - allowEmpty=true From d75b6d200bf6651427a3f9e802da5acdd8702132 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 7 Sep 2022 11:12:57 +0500 Subject: [PATCH 047/411] added rollout-reporter for philipp-test --- .../resources/philipp-test-event-source.yaml | 50 ++++++++++ .../resources/philipp-test-sensor.yaml | 92 +++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/philipp-test-event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/philipp-test-sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-event-source.yaml new file mode 100644 index 0000000..b7520ab --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: philipp-test-rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + resource: analysisruns + version: v1alpha1 + cluster: philipp-test + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + resource: replicasets + version: v1 + cluster: philipp-test + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + resource: rollouts + version: v1alpha1 + cluster: philipp-test + template: + container: + name: '' + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-sensor.yaml new file mode 100644 index 0000000..ab4dc64 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: philipp-test-rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: philipp-test-rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: philipp-test-rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: philipp-test-rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: '' + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: http://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: http://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: http://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From 8c6c3e122f7d6f0ee709bf49258e3828b7fcd0cd Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 7 Sep 2022 11:13:02 +0500 Subject: [PATCH 048/411] installed app 'rollouts' on project 'philipp-test' installation-path: '/' --- apps/rollouts/overlays/philipp-test/config.json | 14 ++++++++++++++ .../overlays/philipp-test/kustomization.yaml | 5 +++++ .../philipp-test/argo-rollouts-ns.yaml | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 apps/rollouts/overlays/philipp-test/config.json create mode 100644 apps/rollouts/overlays/philipp-test/kustomization.yaml create mode 100644 bootstrap/cluster-resources/philipp-test/argo-rollouts-ns.yaml diff --git a/apps/rollouts/overlays/philipp-test/config.json b/apps/rollouts/overlays/philipp-test/config.json new file mode 100644 index 0000000..11eff15 --- /dev/null +++ b/apps/rollouts/overlays/philipp-test/config.json @@ -0,0 +1,14 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "argo-rollouts", + "destServer": "https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com", + "srcPath": "apps/rollouts/overlays/philipp-test", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "false" + }, + "annotations": null +} \ No newline at end of file diff --git a/apps/rollouts/overlays/philipp-test/kustomization.yaml b/apps/rollouts/overlays/philipp-test/kustomization.yaml new file mode 100644 index 0000000..5c9cb76 --- /dev/null +++ b/apps/rollouts/overlays/philipp-test/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: argo-rollouts +resources: +- ../../base diff --git a/bootstrap/cluster-resources/philipp-test/argo-rollouts-ns.yaml b/bootstrap/cluster-resources/philipp-test/argo-rollouts-ns.yaml new file mode 100644 index 0000000..c11b5aa --- /dev/null +++ b/bootstrap/cluster-resources/philipp-test/argo-rollouts-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: argo-rollouts +spec: {} +status: {} From e41bdc92a833dfb944b32782281563d5d2394dbd Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 7 Sep 2022 11:24:11 +0500 Subject: [PATCH 049/411] removed runtime 'aws-local-runtime' from isc repo --- .../aws-local-runtime/in-cluster.yaml | 28 ------------------- .../aws-local-runtime/philipp-test.yaml | 28 ------------------- 2 files changed, 56 deletions(-) delete mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml delete mode 100644 shared-config/runtimes/aws-local-runtime/philipp-test.yaml diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml deleted file mode 100644 index 0581bc1..0000000 --- a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: "true" - name: in-cluster -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - project: default - source: - directory: - include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true diff --git a/shared-config/runtimes/aws-local-runtime/philipp-test.yaml b/shared-config/runtimes/aws-local-runtime/philipp-test.yaml deleted file mode 100644 index 779dcb2..0000000 --- a/shared-config/runtimes/aws-local-runtime/philipp-test.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: "true" - name: philipp-test -spec: - destination: - namespace: default - server: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - project: default - source: - directory: - include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml}' - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true From 1c666bb4abe33c0903bc9998c5b58d95dd448e50 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 7 Sep 2022 11:24:15 +0500 Subject: [PATCH 050/411] Autopilot Uninstall --- apps/README.md | 27 ----- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 18 ---- .../aws-local-runtime/kustomization.yaml | 14 --- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 23 ---- .../aws-local-runtime/resources/sensor.yaml | 42 -------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/isc/aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 50 --------- .../resources/philipp-test-event-source.yaml | 50 --------- .../resources/philipp-test-sensor.yaml | 92 ---------------- .../aws-local-runtime/resources/rbac.yaml | 35 ------ .../aws-local-runtime/resources/sensor.yaml | 92 ---------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../overlays/philipp-test/config.json | 14 --- .../overlays/philipp-test/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 28 ----- .../aws-local-runtime/resources/rbac.yaml | 37 ------- .../aws-local-runtime/resources/sensor.yaml | 42 -------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/ingress-patch.json | 12 --- .../overlays/aws-local-runtime/ingress.yaml | 23 ---- .../aws-local-runtime/kustomization.yaml | 13 --- .../philipp-test => }/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------- bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 60 ----------- bootstrap/cluster-resources.yaml | 48 --------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/cluster-resources/philipp-test.json | 4 - .../philipp-test/argo-rollouts-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------- projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 102 ------------------ projects/philipp-test.yaml | 97 ----------------- 51 files changed, 1292 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/philipp-test-event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/philipp-test-sensor.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/rollouts/overlays/philipp-test/config.json delete mode 100644 apps/rollouts/overlays/philipp-test/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml rename bootstrap/{cluster-resources/philipp-test => }/DUMMY (100%) delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/cluster-resources/philipp-test.json delete mode 100644 bootstrap/cluster-resources/philipp-test/argo-rollouts-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml delete mode 100644 projects/philipp-test.yaml 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index de42143..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.505 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index ab4f1f0..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-cap-app-proxy - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: cap-app-proxy - port: - number: 3017 - path: /app-proxy - pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 69993fa..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=http://philipp-platform.ngrok.io - - cors=http://philipp-platform.ngrok.io,http://local.codefresh.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index f1c1469..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index 65a8fdd..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.505 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 1c85d6e..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-event-source.yaml deleted file mode 100644 index b7520ab..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: philipp-test-rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - resource: analysisruns - version: v1alpha1 - cluster: philipp-test - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - resource: replicasets - version: v1 - cluster: philipp-test - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - resource: rollouts - version: v1alpha1 - cluster: philipp-test - template: - container: - name: '' - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-sensor.yaml deleted file mode 100644 index ab4dc64..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/philipp-test-sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: philipp-test-rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: philipp-test-rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: philipp-test-rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: philipp-test-rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: '' - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 86a3bd3..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index 16a3c0f..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.505 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/rollouts/overlays/philipp-test/config.json b/apps/rollouts/overlays/philipp-test/config.json deleted file mode 100644 index 11eff15..0000000 --- a/apps/rollouts/overlays/philipp-test/config.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "argo-rollouts", - "destServer": "https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com", - "srcPath": "apps/rollouts/overlays/philipp-test", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "false" - }, - "annotations": null -} \ No newline at end of file diff --git a/apps/rollouts/overlays/philipp-test/kustomization.yaml b/apps/rollouts/overlays/philipp-test/kustomization.yaml deleted file mode 100644 index 5c9cb76..0000000 --- a/apps/rollouts/overlays/philipp-test/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: argo-rollouts -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index 126e149..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.505 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 2e19a37..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: http://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index 1c7b0b8..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.505 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index 6de8554..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - ingress.kubernetes.io/protocol: https - ingress.kubernetes.io/rewrite-target: /$2 - nginx.ingress.kubernetes.io/backend-protocol: https - nginx.ingress.kubernetes.io/rewrite-target: /$2 - name: aws-local-runtime-workflows-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: argo-server - port: - number: 2746 - path: /workflows(/|$)(.*) - pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 2fb61e0..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: ingress-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base -- ingress.yaml diff --git a/bootstrap/cluster-resources/philipp-test/DUMMY b/bootstrap/DUMMY similarity index 100% rename from bootstrap/cluster-resources/philipp-test/DUMMY rename to bootstrap/DUMMY diff --git a/bootstrap/argo-cd.yaml b/bootstrap/argo-cd.yaml deleted file mode 100644 index 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 ea19192..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.505 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index eee5cce..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,60 +0,0 @@ -apiVersion: v1 -data: - base-url: http://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - isInternal: false - name: events - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.505 - wait: true - - isInternal: false - name: rollouts - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.505 - wait: false - - isInternal: false - name: workflows - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.505 - wait: false - - isInternal: false - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.505 - wait: false - - isInternal: false - name: sealed-secrets - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.505 - wait: false - defVersion: 1.0.1 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: http://92.248.191.75:3017 - # ingressHost: https://philipp.hybrid-team.cf-cd.com - internalIngressHost: "" - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.505 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/cluster-resources/philipp-test.json b/bootstrap/cluster-resources/philipp-test.json deleted file mode 100644 index 8b7a618..0000000 --- a/bootstrap/cluster-resources/philipp-test.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "philipp-test", - "server": "https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com" -} \ No newline at end of file diff --git a/bootstrap/cluster-resources/philipp-test/argo-rollouts-ns.yaml b/bootstrap/cluster-resources/philipp-test/argo-rollouts-ns.yaml deleted file mode 100644 index c11b5aa..0000000 --- a/bootstrap/cluster-resources/philipp-test/argo-rollouts-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: argo-rollouts -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 88af71b..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,102 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} diff --git a/projects/philipp-test.yaml b/projects/philipp-test.yaml deleted file mode 100644 index 683c6fb..0000000 --- a/projects/philipp-test.yaml +++ /dev/null @@ -1,97 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - name: philipp-test - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: philipp-test project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: philipp-test - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/philipp-test/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/philipp-test/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: philipp-test-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: philipp-test - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From b5bc4290baf7f4de394b20bad5502d3b7ff6344d Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 7 Sep 2022 11:28:34 +0500 Subject: [PATCH 051/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From 7528c339c39eba3f4ca9d6d868b041df1c5c71f6 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Fri, 9 Sep 2022 14:21:20 +0500 Subject: [PATCH 052/411] Delete shared-config directory --- shared-config/README.md | 44 ------------------- .../resources/all-runtimes-all-clusters/DUMMY | 0 ...eyb7n6b-aws-local-runtime.sealing-key.yaml | 15 ------- 3 files changed, 59 deletions(-) delete mode 100644 shared-config/README.md delete mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY delete mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyb7n6b-aws-local-runtime.sealing-key.yaml diff --git a/shared-config/README.md b/shared-config/README.md deleted file mode 100644 index 85ee1f9..0000000 --- a/shared-config/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# codefresh-runtime_internal-shared-config -This repository stores configuration files that can be shared between runtimes. - -Configuration definitions that will be stored in this repository: -- Argo CD managed cluster -- Git sources -- Codefresh 3rd party integrations configuration -- Ouath2 Authentications applications - -Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. - -## Repository structure -The base path of the repository will include 2 directories - resources and runtimes. -The resources directory will include the following sub-directories: -- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters -- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster -- runtimes/ - a folder for each specific runtime. - -Each manifest will be applied to all clusters in a specific runtime -both control-plane and the runtime-specific directories are optional. -The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml - - -``` -├── resources <───────────────────┐ -│ ├── all-runtimes-all-clusters │ -│ │ ├── manifest1.yaml │ -│ │ └── subfolder │ -│ │ └── manifest2.yaml │ -│ ├── control-planes │ -│ │ └── manifest3.yaml │ -│ ├── runtimes │ -│ │ ├── runtime1 │ -│ │ │ └── manifest4.yaml │ -│ │ └── runtime2 │ -│ │ └── manifest5.yaml │ -│ └── manifest6.yaml │ -└── runtimes │ - ├── runtime1 │ # references by /apps/runtime1/config_dir.json - │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - └── runtime2 │ # references by /apps/runtime2/config_dir.json - └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster -``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY deleted file mode 100644 index e69de29..0000000 diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyb7n6b-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyb7n6b-aws-local-runtime.sealing-key.yaml deleted file mode 100644 index f7dee81..0000000 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyb7n6b-aws-local-runtime.sealing-key.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - creationTimestamp: 2022-09-06T09:11:48.000Z - labels: - sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 631711191b2d46001cc80a91 - codefresh.io/sealing-key: 'true' - codefresh.io/runtime-name: aws-local-runtime - name: sealed-secrets-keyb7n6b -data: - tls.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6VENDQXJXZ0F3SUJBZ0lSQU9mc01iV0lwYkRKS000Smk2aFUzRWN3RFFZSktvWklodmNOQVFFTEJRQXcKQURBZUZ3MHlNakE1TURZd09URXhORGhhRncwek1qQTVNRE13T1RFeE5EaGFNQUF3Z2dJaU1BMEdDU3FHU0liMwpEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUUR0bDdhNkpsY2tkTjI4NFRtZVdPZ0lBMUF5TmVna0RlaTMweTNaClRPVUQzZWhMOWNxL01ma0JJQ1M1elpNRjBqaVVOeFJ0Wm9Sc2lHYU9ZVVk1Mk1lSEhGSnp6UHUzSmphdHNvQkQKa2tGb2JLYUQrZkxXakV0bU9Xc1B1eklmQ1Y0cjVkV2lFcDRWQ0p1QUkzVkEzOEVNQ3pnanFnUmk4ZDVJTWVPLwpYS3BLaUgyczRoNXlTeVBVY2NzQVh5eFd4akoxOEJYVzFxWTI0ODZDdWZ1eWxCK3VuNkthYlYrRjlEVXdYeXZ6CjBHVW1ZcldYcW1LNjRraDJNVy9iN0JtcnNpM0V0akV2L21HVGpCa3pOMmZhZ2w5RFlsOXJDemM5cDh4RFV6clUKaUU4WjcwNHBIeHJhYndKMHJCUnd6OTc5Z0hBTFZPa2RsaE52OEoxVS9qUEw3ZTNiaGYvM0Mrd0gyektxamRGWgpTN05ZSW5tVElLMzZKV0NaL3RNVVY1VUxtZDc0S25SUXB1c3V5NWhwOWQ0L05RbGJVRXZjVDdsOFRzM3M0SVg0CkpFc3RNWVN1YVhxMVJiNGIrd2tUMnFCQ25lVkFkWWo1OWZmdjJpNFA2SEZlb1JvNnNnY3RqOElYTFY0cElMa2UKQ3YwZnQzdUxZOTZ0dWRTMnE2NUZQVENsUVpNRkdEMlRNR1BQZVhvd042WkxtY1JqY2V2cm1GS0Jhd3ZUczM4eQppNDNla1dZUkd3dlkvejBraGN4UHpINTlXb1I5NGJvckc5QXlLSmdNcGErM1dvWE9ORGYzSHFhTko3QjBGT0IxCk03VWtLZTlVU2UvL1l1Q2RJSk0ybWRZb3hodkJSV0U1alhqRjY3NUJXMkZjNlB5b2ZGd1I4dEM5UkV5dkNua1EKckxGdkt3SURBUUFCbzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQUFFd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZApCZ05WSFE0RUZnUVVrNU9BbWdjTXFoYXZhOHBuWEJ4MGZFRmllcjB3RFFZSktvWklodmNOQVFFTEJRQURnZ0lCCkFNL0tCWUgrcXVJVWFzeEt3Umk5aWphYnU3OWlUNkgwRDh2TUQ3VVU0QnQ2Ukk2UFJBM1hITXM4dmQ5SzFXeFkKNkJybVNwQk9ONmV4dnowVTEvME1jS1pYQmNtbUxoWTN4TkJZK05ZaVkvVzVaKzgxaUhhdFhOTHRpUHg3eFdWbAp2MU95SGJXMDV0REhiM3VGbTBPaEpBZHFrK3RMNXcwRndiRVltK3ZMdzFqZEJ2ZkYvQ3RGTkhPK2xiSFFFVVNxCjhnM3RNNFdQRGgyUGVzWGNpNTROZ2NvT3BMOWpleXJqc0x3dWxOUDltdjV5NFJ1NFRwSVlrQWRxQ1RRQ3lKT3MKaWpYcjNNZ1Z6TDVMQmxFVi9YYVlrTVlBdEMwd05JUThvREVPYmsxYytXbWY5QmRFMXZoMXZSTFI4dlEwYmtlcwpSQnBCK3FnTmVab25BMU9acmYrTkpzb1JuUzBpWkl0SlcrRnlkc0Rkd2J3UkJPWms2WkVtVTd5bk5CTzhFQWdRCmpnSmh5TWROeUdsbkxSMy9yZ0RhWEtUNG9pQmN5UEw3WGZJL1l3cFAwaWJUaS9ib0JuNStOMVcvUG8vbzVpU0MKNUlOMFVUNEVNTVROWmtpUDRtUGxBY29ZcDJ6UVRuYTZJVkp1WnVEcEZ4d0ZXNjR1R3Y2VHJ3aVlLczJHR0pLbApOK3BSY1VrZ0NuZ1B6OU9ob2phQUg4eEFqTTVPbkpmZ3l0cFVMV3IvQUdzSEFFVERuOExudjlOWHVqVHZ5MXU4Ck9sa1NsRUdJVTczRFZEU2ZEK1Mvd252ZlRCV2d1ZTlReFhxZDRwTFBaVVRNeWx3OU12aHFldGpNVWJBSXREQ1kKTFhKZkNQOVBKVmNhRlFmL2VXTUQzZ1JVNkFsWUFNMlF5QWJGa3U3MFBQL3YKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= - tls.key: >- - ZSQS9lcWFVOEpkSTBIN2pTMHMwQTM3d2tjOG5ieC83b1l1CkNFcEJNVVo5bnUycndEMmxzM09uNHN2R2x1Rmw2NlZKbzhOck1IeThCcDVRbmJIYU9HQ3U0NCswSmNnLzNLNDkKdGFWaWR3c1RZdWFUbldYbWtvUjhVcGhpWDk1UWlVM0MyM0xMdTRvMkpON3lwQUtPelJqVHUwUmxIVUt2b2ppWQpDQ1cxQnpCWmp4bDhFd0tDQVFFQTlOT1BIT2FOYzFkS0NkcjZDM28vZFZIUUtER2dvYTZiTmZvRkUxZzZJRmhEClNUenZDdnVDcGJEMzF2K2xDbnNad3JaWXR6cHRmelZKaVhMcmRrendWQXE5N0Nva1FnU1lkdm9KV1Rya05SRSsKUU40VDN2VTZOS2RNVnBLR0ZZd0dKNjk5VjZSQ1FSeFBWOVNQY0pTR0NMZ3h0aUVONmZueTFUai83YXJCTXg1NQpLR3dsbHZQNE55RmthZDZjOWJ2WmRVekZwcmt1UzZOSUhzcnRyMmh6aE5KWUdDblcra1FkSm1UQUJyVVMzQ1pHCnUycU9uajNnQm1waDVhZEtxZlVYbGlMcEFIK1d0UkxMREZ5MUkrSTQ1cGE0STdMbys4ZEo0VHFlUmxCU1ZVSEEKODdzUXM2TzNvM01nbGlQaHpvYWNYalhQVkVLNlpkRVlnalp5VkpqemlRS0NBUUVBMnIwNDN6UXBMYjV5WGl4OApwUkljRG9TRkJOUHFkckJJODRTZVJwbldvcDVMaTlvNzVQRHRNY0NwUjJWajVGT0dYQ1ZpR1ZmbEdmNDFaeVM3ClJUZTJFblBnbmZSOW13N3dONWtDZ3pqdkpJYjM3cjJjTDdmanFDOFdQNmxERXBMQko5SFBOUjloRHhnTVNZdkEKSXZTcERmYjQ1aE5CQnpTZklieEdlSGJ6dmwyY3FoamM5cGszQ2hOM2ZHeURlWWhOWjdpN2oyRlhFSGVJdFFFUwp4Q2NSYlA4YWNVbG96WGlNRHZiQVRWM0gyOGZKRGZVVmZHSlNLcmFZbzhFRTIxb0F6SzluQXovckY0OVpoZVViCm1aM1k1T0greEl5Z0JmMGp5TE11aCtZT3BqZUtDRUxsNzByWnF1eVJuU1c1N3cyR1ZlQU1Vakd3TXFRNG91N0EKUEEyOVB3S0NBUUI4cWZrMmt5TTF0eDNwTk1xYjY0ekNsWDB6NmtsTDZ0ZjN2UzYyY2Zkdkh1SnNPWTNTL3N6QQp5QUw3UkVOcXVkSWROcktuNGlWOVg4bnBKazVGZDluc1FXZ0NDRmRjRW5EOExFZDBXeXQyNWlmWDZmMGVTNnB1Cnd6MTQyN1ZRNVhNQTVEZ2oxMjB4TUZRcWVmN3NLWVN5amZBcU9GeVlab0RERi9vaHNCQWVrb2JKRVlCMmhCWkIKSkV5NEovV3VudytVemhuYTBuS0RhMG8rKzcvWjBJcjUrQTJKaUV5Q05Rck8wUUNDcWROSHJHblo1dUZtTEVXVgpucmZvczYydUt6SHViaXBNNmFyNDJ1L3ZoSWxzRXpZOEhFVDVVSkdZR3h0QWg1T3VaQm40ZGJubG9ieFliS1lHCm9ZblhTY0FpWktMY3lmT2ZpVGJXdjRrR1RPa2NzS0ZaQW9JQkFRRHlzUmt4VVZpZVpvdDRWS0pJUGJpS0twRkEKQUtMNHpHRFAvYkVRRDVtSXUybzdxNEF0MU9aZkdmQWVzZCtvQ2I5SytzNTJ2TURDeVpORmVsL2pOaG10TFNqTwpBUUxHZGZpMHpaOFBFZFNPSG1LMG1McXNmSFlONVEzbW1MMEpJYkZUWWdXT1NVczV4Q0V6VWZ5d3RDeVlCbVNpCkQrTmY2SlNVL0t1ekt2NkxhUCtsKzJncnlBNlhCeHNHRnp2MTZ6enRHdUY3WXNIdms1SVFTUnRkZC9sR0dRaDAKR20wV0V1elJBMUhQajFuSmRnbEVsZGUrNDhQWVZOS0NvNzNxNDlqeFlwUVNrdDA0WUN0UUdQUHBMMWFqNkVmSwpqZ2V2TEZDaVdvbmVrbXdPd3lSVkFIL1Q0UGtBVlFJTkFNMDZIQWRkU3BwdjlqU0IzdFJ1S0lJTUFpMXkKLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K From 8bcafde3a4c139aecb22b5bfc198bda4c6d2b190 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:19:58 +0500 Subject: [PATCH 053/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..6a8f6d4 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.509 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From f4544e0f8c5ee918fa09e391385de95d1ceda817 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:20:09 +0500 Subject: [PATCH 054/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 9a5e2a99526231ff06ff360ae93d0e7bd0469aac Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:20:10 +0500 Subject: [PATCH 055/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 59 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 2 ++ 2 files changed, 61 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..f1aa70a --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,59 @@ +apiVersion: v1 +data: + base-url: https://philipp-platform.ngrok.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - isInternal: false + name: events + syncWave: 0 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.509 + wait: true + - isInternal: false + name: rollouts + syncWave: 0 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.509 + wait: false + - isInternal: false + name: workflows + syncWave: 0 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.509 + wait: false + - isInternal: false + name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.509 + wait: false + - isInternal: false + name: sealed-secrets + syncWave: 0 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.509 + wait: false + defVersion: 1.0.1 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + internalIngressHost: "" + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.509 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..88af71b 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: From b9bf5874583da6f715a64b5340ebf38fa7aab7bc Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:20:16 +0500 Subject: [PATCH 056/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..c7f773c --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.509 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From f2d31168ae9eb449acf900ce4ec8f035d9e09525 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:20:57 +0500 Subject: [PATCH 057/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..aabe031 --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.509 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 14df57711f6a98f81bdab89715abd881246e51f6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:20:58 +0500 Subject: [PATCH 058/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..8b6d441 --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.509 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 1a2ffb6ccc0da401af25062d925e0612ca0e0e19 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:20:59 +0500 Subject: [PATCH 059/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..7d5c5b1 --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.509 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 0bd1a2eb609c01622a97c61661081e01abe6f758 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:01 +0500 Subject: [PATCH 060/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..b8a60c1 --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.509 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 31306cd250ea9de882c8e86f80347c4784a87d01 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:03 +0500 Subject: [PATCH 061/411] Created Workflows Ingress --- .../aws-local-runtime/ingress-patch.json | 12 ++++++++++ .../overlays/aws-local-runtime/ingress.yaml | 23 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 8 +++++++ 3 files changed, 43 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..6de8554 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + ingress.kubernetes.io/protocol: https + ingress.kubernetes.io/rewrite-target: /$2 + nginx.ingress.kubernetes.io/backend-protocol: https + nginx.ingress.kubernetes.io/rewrite-target: /$2 + name: aws-local-runtime-workflows-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: argo-server + port: + number: 2746 + path: /workflows(/|$)(.*) + pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..2fb61e0 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: ingress-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base +- ingress.yaml From 5b06dda8c769d7be65d22450b4c26475d0f6d293 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:04 +0500 Subject: [PATCH 062/411] Created App-Proxy Ingress --- .../overlays/aws-local-runtime/ingress.yaml | 18 ++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..ab4f1f0 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-cap-app-proxy + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: cap-app-proxy + port: + number: 3017 + path: /app-proxy + pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..d16be78 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From 3bcb9f8ecd9c8e3bc0d570ec14a566194e026b78 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:05 +0500 Subject: [PATCH 063/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From bdc88e4fdea768de5c827add11d24e704774bf42 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:07 +0500 Subject: [PATCH 064/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..8869d6d --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: events +status: {} From d55252df8995aaf11bdc7007578c322a7dff463f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:08 +0500 Subject: [PATCH 065/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 16db437720e16e0c42cc748aa31647975060ea66 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:09 +0500 Subject: [PATCH 066/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c0618bd --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: workflows +status: {} From f57e218ea4d2c7032fbc29ebda3111704421d812 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:10 +0500 Subject: [PATCH 067/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 22299b334c5a34d45bcb2adfa39143006e3af183 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:11 +0500 Subject: [PATCH 068/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a5b4093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From c20dac26802c2e7661262d025e3bf92b887d40d3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:15 +0500 Subject: [PATCH 069/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 9df3d65cc6caa6cede1cd8295a82d7774ebb1167 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:21:17 +0500 Subject: [PATCH 070/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From 781262745a8650414af371c8a4ebca695ad32501 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Fri, 9 Sep 2022 10:22:36 +0000 Subject: [PATCH 071/411] installed app 'isc' on project 'aws-local-runtime' installation-path: '/' --- apps/isc/aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/isc/aws-local-runtime/config_dir.json diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..7fc6acc --- /dev/null +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "isc", + "userGivenName": "isc", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "runtimes/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/codefresh-runtime-internal-shared-config.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "shared-configuration", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd.argoproj.io/sync-wave": "10" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 82664c9668a76fe14e2c1bdf3e4bd6744fd99419 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 9 Sep 2022 15:28:22 +0500 Subject: [PATCH 072/411] Update host --- bootstrap/aws-local-runtime.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index f1aa70a..933a545 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -45,7 +45,8 @@ data: defVersion: 1.0.1 ingressClassName: nginx ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com + # ingressHost: https://philipp.hybrid-team.cf-cd.com + ingressHost: http://92.248.191.75:3017 internalIngressHost: "" repo: https://github.com/PhilippPlotnikov/aws-local-runtime version: 0.0.509 From 0a6c2cc4ed1d7424c92ac89daecc89321229f508 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 12 Sep 2022 12:38:30 +0500 Subject: [PATCH 073/411] Update --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- bootstrap/aws-local-runtime.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index d16be78..5f74950 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index 933a545..b0ab691 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -45,8 +45,8 @@ data: defVersion: 1.0.1 ingressClassName: nginx ingressController: k8s.io/ingress-nginx - # ingressHost: https://philipp.hybrid-team.cf-cd.com - ingressHost: http://92.248.191.75:3017 + ingressHost: https://philipp.hybrid-team.cf-cd.com + # ingressHost: http://92.248.191.75:3017 internalIngressHost: "" repo: https://github.com/PhilippPlotnikov/aws-local-runtime version: 0.0.509 From f6a7f47eb0e65860376308c8a7c0fbe44b860077 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 12 Sep 2022 16:26:48 +0500 Subject: [PATCH 074/411] Update ingress host --- bootstrap/aws-local-runtime.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index b0ab691..933a545 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -45,8 +45,8 @@ data: defVersion: 1.0.1 ingressClassName: nginx ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - # ingressHost: http://92.248.191.75:3017 + # ingressHost: https://philipp.hybrid-team.cf-cd.com + ingressHost: http://92.248.191.75:3017 internalIngressHost: "" repo: https://github.com/PhilippPlotnikov/aws-local-runtime version: 0.0.509 From f28e549e36d1abee9f3171ba7b42eb0c4793aab9 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 12 Sep 2022 18:38:51 +0500 Subject: [PATCH 075/411] Update --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 5f74950..db49d2c 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -6,6 +6,7 @@ configMapGenerator: - cfHost=https://philipp-platform.ngrok.io - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production + - graphqlPlayground=true name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime From 9344469b9da6b9da62978b41f78621a746023e5f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 12 Sep 2022 20:41:15 +0500 Subject: [PATCH 076/411] Update --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index db49d2c..454450e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -6,7 +6,7 @@ configMapGenerator: - cfHost=https://philipp-platform.ngrok.io - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production - - graphqlPlayground=true + # - graphqlPlayground=true name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime From 9c1c3cb050c7176a6c067b42c7c1027791fa1831 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 12 Sep 2022 20:43:22 +0500 Subject: [PATCH 077/411] Update --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 454450e..db49d2c 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -6,7 +6,7 @@ configMapGenerator: - cfHost=https://philipp-platform.ngrok.io - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production - # - graphqlPlayground=true + - graphqlPlayground=true name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime From c0ccdcecc6c034478617c4de06c6ac486dce25f5 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 13 Sep 2022 20:19:35 +0500 Subject: [PATCH 078/411] Update --- bootstrap/aws-local-runtime.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index 933a545..b0ab691 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -45,8 +45,8 @@ data: defVersion: 1.0.1 ingressClassName: nginx ingressController: k8s.io/ingress-nginx - # ingressHost: https://philipp.hybrid-team.cf-cd.com - ingressHost: http://92.248.191.75:3017 + ingressHost: https://philipp.hybrid-team.cf-cd.com + # ingressHost: http://92.248.191.75:3017 internalIngressHost: "" repo: https://github.com/PhilippPlotnikov/aws-local-runtime version: 0.0.509 From b83da3c341ed6b8b03bab7d8661147bfeb72b67a Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 13 Sep 2022 20:22:12 +0500 Subject: [PATCH 079/411] Autopilot Uninstall --- apps/README.md | 27 ----- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 18 ---- .../aws-local-runtime/kustomization.yaml | 15 --- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 23 ---- .../aws-local-runtime/resources/sensor.yaml | 42 -------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/isc/aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 50 --------- .../aws-local-runtime/resources/rbac.yaml | 35 ------ .../aws-local-runtime/resources/sensor.yaml | 92 ---------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 28 ----- .../aws-local-runtime/resources/rbac.yaml | 37 ------- .../aws-local-runtime/resources/sensor.yaml | 42 -------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/ingress-patch.json | 12 --- .../overlays/aws-local-runtime/ingress.yaml | 23 ---- .../aws-local-runtime/kustomization.yaml | 13 --- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------- bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 60 ----------- bootstrap/cluster-resources.yaml | 48 --------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------- projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 102 ------------------ 44 files changed, 1022 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 7d5c5b1..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.509 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index ab4f1f0..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-cap-app-proxy - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: cap-app-proxy - port: - number: 3017 - path: /app-proxy - pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index db49d2c..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - - env=production - - graphqlPlayground=true - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 8869d6d..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index c7f773c..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.509 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 7fc6acc..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/codefresh-runtime-internal-shared-config.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a5b4093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index aabe031..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.509 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index b8a60c1..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.509 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c0618bd..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index 8b6d441..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.509 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index 6de8554..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - ingress.kubernetes.io/protocol: https - ingress.kubernetes.io/rewrite-target: /$2 - nginx.ingress.kubernetes.io/backend-protocol: https - nginx.ingress.kubernetes.io/rewrite-target: /$2 - name: aws-local-runtime-workflows-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: argo-server - port: - number: 2746 - path: /workflows(/|$)(.*) - pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 2fb61e0..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: ingress-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base -- ingress.yaml 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 6a8f6d4..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.509 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index b0ab691..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,60 +0,0 @@ -apiVersion: v1 -data: - base-url: https://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - isInternal: false - name: events - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.509 - wait: true - - isInternal: false - name: rollouts - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.509 - wait: false - - isInternal: false - name: workflows - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.509 - wait: false - - isInternal: false - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.509 - wait: false - - isInternal: false - name: sealed-secrets - syncWave: 0 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.509 - wait: false - defVersion: 1.0.1 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - # ingressHost: http://92.248.191.75:3017 - internalIngressHost: "" - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.509 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 88af71b..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,102 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From c5a6e763e9fc6c26a30823bfcbf882ca8d2bbb6b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 13 Sep 2022 20:24:34 +0500 Subject: [PATCH 080/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From 690d6b01798f6496229ff870bf3e9888520c15ab Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 13 Sep 2022 20:36:16 +0500 Subject: [PATCH 081/411] Autopilot Uninstall --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY new file mode 100644 index 0000000..e69de29 From 20b9c4b7c4ba5fd4c4e97510b96766e5cae5156e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 13 Sep 2022 20:36:55 +0500 Subject: [PATCH 082/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From f584c4c05214f3bc005bf2f139c025d697c58be2 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 13 Sep 2022 20:45:13 +0500 Subject: [PATCH 083/411] Autopilot Uninstall --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY new file mode 100644 index 0000000..e69de29 From b75fad370a78d7aced729916b677968d48875568 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 13 Sep 2022 20:46:18 +0500 Subject: [PATCH 084/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From 11a70bdcc78932dc4fb4172d288cdabd1dee0a08 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:17:55 +0500 Subject: [PATCH 085/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..85ef9d4 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.511 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From 1f238af16097d81015a7d4188fccd401e7d009d8 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:03 +0500 Subject: [PATCH 086/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 732d19fa87267f4bd833d69d2d496286f449987f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:04 +0500 Subject: [PATCH 087/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 50 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 ++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..e836237 --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,50 @@ +apiVersion: v1 +data: + base-url: https://philipp-platform.ngrok.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: "" + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.511 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.511 + - name: workflows + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.511 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.511 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.511 + - feature: ingressless + name: codefresh-tunnel-client + type: helm + url: github.com/codefresh-io/codefresh-tunnel-charts/codefresh-tunnel-client?ref=sandbox + defVersion: 2.0.0 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.511 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 807ea60681481da03d95dd27a8a6d05cb62040af Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:10 +0500 Subject: [PATCH 088/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..c96019e --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.511 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 12325b3147bb8a7ddf910c82357d94195910a115 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:42 +0500 Subject: [PATCH 089/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..e0a833f --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.511 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From e9751ecc513d7b0860e09e41eb939d9327a54c85 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:43 +0500 Subject: [PATCH 090/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..906b1ac --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.511 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From c223ee5c9d76607f13e944b78fb7d4e5ce56ff15 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:45 +0500 Subject: [PATCH 091/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..762608f --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.511 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From f5d3373dd01fd2888215b2e5a01fa4aa90b38e71 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:46 +0500 Subject: [PATCH 092/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..f82a0df --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.511 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From a85789e0f77a3faec18194126d080829d064a021 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:47 +0500 Subject: [PATCH 093/411] Created Workflows Ingress --- .../aws-local-runtime/ingress-patch.json | 12 ++++++++++ .../overlays/aws-local-runtime/ingress.yaml | 23 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 8 +++++++ 3 files changed, 43 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..6de8554 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + ingress.kubernetes.io/protocol: https + ingress.kubernetes.io/rewrite-target: /$2 + nginx.ingress.kubernetes.io/backend-protocol: https + nginx.ingress.kubernetes.io/rewrite-target: /$2 + name: aws-local-runtime-workflows-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: argo-server + port: + number: 2746 + path: /workflows(/|$)(.*) + pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..2fb61e0 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: ingress-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base +- ingress.yaml From 3b6889387dad5b05c1df387b78de23ca82ad9102 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:48 +0500 Subject: [PATCH 094/411] Updated App-Proxy configuration --- .../overlays/aws-local-runtime/ingress.yaml | 18 ++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..ab4f1f0 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-cap-app-proxy + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: cap-app-proxy + port: + number: 3017 + path: /app-proxy + pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..d16be78 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From 440f0f8b18ce5bbf2cff804c760d9929a4ce733a Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:50 +0500 Subject: [PATCH 095/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 01f4bdff7a839dddf350be920786e79667df13c6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:51 +0500 Subject: [PATCH 096/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..8869d6d --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: events +status: {} From fcdabf3f6bbcf0c86ad3f182d79f122f242694ce Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:52 +0500 Subject: [PATCH 097/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 879587a70218c1791a4e75cca88e63ff7878ee7e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:53 +0500 Subject: [PATCH 098/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c0618bd --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: workflows +status: {} From 06bec7e63cd84337fc003e28d1285330f1530d15 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:55 +0500 Subject: [PATCH 099/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 99bdc0c5792ea91e04a84860225c978c0002dfe3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:56 +0500 Subject: [PATCH 100/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a5b4093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From 281dce6123a34b85a68605803be49528b46cf140 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:18:58 +0500 Subject: [PATCH 101/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 885d0cc4fc1d92666a90272520ed0860f53e7828 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 13:19:00 +0500 Subject: [PATCH 102/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From 6fb55ff73d93cfd17c2d86c868ff1bc55c1fb7d5 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Wed, 14 Sep 2022 08:20:39 +0000 Subject: [PATCH 103/411] installed app 'isc' on project 'aws-local-runtime' installation-path: '/' --- apps/isc/aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/isc/aws-local-runtime/config_dir.json diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..7fc6acc --- /dev/null +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "isc", + "userGivenName": "isc", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "runtimes/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/codefresh-runtime-internal-shared-config.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "shared-configuration", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd.argoproj.io/sync-wave": "10" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 6945c4a602a9dcbf3ebcd67e6e4e10061e37b268 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Wed, 14 Sep 2022 08:22:26 +0000 Subject: [PATCH 104/411] Added project 'noam' --- projects/noam.yaml | 97 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 projects/noam.yaml diff --git a/projects/noam.yaml b/projects/noam.yaml new file mode 100644 index 0000000..cc4abcb --- /dev/null +++ b/projects/noam.yaml @@ -0,0 +1,97 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: noam + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: noam project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: noam + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/noam/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/noam/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: noam-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: noam + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 744eedbdcdec57703a3f1a8a9aec3c1aa9738902 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Sep 2022 08:22:28 +0000 Subject: [PATCH 105/411] added cluster-resources for noam --- bootstrap/cluster-resources/noam.json | 4 ++++ bootstrap/cluster-resources/noam/DUMMY | 0 2 files changed, 4 insertions(+) create mode 100644 bootstrap/cluster-resources/noam.json create mode 100644 bootstrap/cluster-resources/noam/DUMMY diff --git a/bootstrap/cluster-resources/noam.json b/bootstrap/cluster-resources/noam.json new file mode 100644 index 0000000..e0038d2 --- /dev/null +++ b/bootstrap/cluster-resources/noam.json @@ -0,0 +1,4 @@ +{ + "name": "noam", + "server": "https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com" +} \ No newline at end of file diff --git a/bootstrap/cluster-resources/noam/DUMMY b/bootstrap/cluster-resources/noam/DUMMY new file mode 100644 index 0000000..e69de29 From f83c4b0e345a5816f999d783b99ce04ca6fbb4e3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 19 Sep 2022 19:19:29 +0500 Subject: [PATCH 106/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 18 --- .../aws-local-runtime/kustomization.yaml | 14 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 23 ---- .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/isc/aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 50 -------- .../aws-local-runtime/resources/rbac.yaml | 35 ------ .../aws-local-runtime/resources/sensor.yaml | 92 -------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 28 ----- .../aws-local-runtime/resources/rbac.yaml | 37 ------ .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/ingress-patch.json | 12 -- .../overlays/aws-local-runtime/ingress.yaml | 23 ---- .../aws-local-runtime/kustomization.yaml | 13 -- bootstrap/{cluster-resources/noam => }/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 50 -------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/cluster-resources/noam.json | 4 - bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ projects/noam.yaml | 97 -------------- 46 files changed, 1129 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml rename bootstrap/{cluster-resources/noam => }/DUMMY (100%) delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/cluster-resources/noam.json delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml delete mode 100644 projects/noam.yaml 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 762608f..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.511 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index ab4f1f0..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-cap-app-proxy - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: cap-app-proxy - port: - number: 3017 - path: /app-proxy - pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index d16be78..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 8869d6d..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index c96019e..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.511 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 7fc6acc..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/codefresh-runtime-internal-shared-config.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a5b4093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index e0a833f..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.511 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index f82a0df..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.511 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c0618bd..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index 906b1ac..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.511 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index 6de8554..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - ingress.kubernetes.io/protocol: https - ingress.kubernetes.io/rewrite-target: /$2 - nginx.ingress.kubernetes.io/backend-protocol: https - nginx.ingress.kubernetes.io/rewrite-target: /$2 - name: aws-local-runtime-workflows-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: argo-server - port: - number: 2746 - path: /workflows(/|$)(.*) - pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 2fb61e0..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: ingress-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base -- ingress.yaml diff --git a/bootstrap/cluster-resources/noam/DUMMY b/bootstrap/DUMMY similarity index 100% rename from bootstrap/cluster-resources/noam/DUMMY rename to bootstrap/DUMMY diff --git a/bootstrap/argo-cd.yaml b/bootstrap/argo-cd.yaml deleted file mode 100644 index 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 85ef9d4..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.511 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index e836237..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: v1 -data: - base-url: https://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: "" - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.511 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.511 - - name: workflows - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.511 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.511 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.511 - - feature: ingressless - name: codefresh-tunnel-client - type: helm - url: github.com/codefresh-io/codefresh-tunnel-charts/codefresh-tunnel-client?ref=sandbox - defVersion: 2.0.0 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.511 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/cluster-resources/noam.json b/bootstrap/cluster-resources/noam.json deleted file mode 100644 index e0038d2..0000000 --- a/bootstrap/cluster-resources/noam.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "noam", - "server": "https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com" -} \ No newline at end of file diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} diff --git a/projects/noam.yaml b/projects/noam.yaml deleted file mode 100644 index cc4abcb..0000000 --- a/projects/noam.yaml +++ /dev/null @@ -1,97 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - name: noam - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: noam project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: noam - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/noam/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/noam/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: noam-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: noam - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 1a9f5a11f9aff1ff351a112ea3ea7394807757c6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 19 Sep 2022 19:22:28 +0500 Subject: [PATCH 107/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From c5191a4ba4a8afbb982d0089eb13b0c39dec4008 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 12:57:31 +0500 Subject: [PATCH 108/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..4961224 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.522 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From ac2caf74fc89b8e5cefc0ef7361cd66b717de935 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 12:57:38 +0500 Subject: [PATCH 109/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From e53546ecaf343fc06f7a81c170945df91f36c035 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 12:57:39 +0500 Subject: [PATCH 110/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 46 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 +++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..6559d83 --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,46 @@ +apiVersion: v1 +data: + base-url: https://g.codefresh.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 + - name: workflows + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 + defVersion: 2.0.0 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.522 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 9601ba3cc58eaa16e7e1937b378cee82e519568a Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 12:57:45 +0500 Subject: [PATCH 111/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..53c8cac --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From cbdbfd2111ff1459f455692ccff2720ff6a31b52 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:05:55 +0500 Subject: [PATCH 112/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 46 ------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ 15 files changed, 397 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index 53c8cac..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 4961224..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.522 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 6559d83..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: v1 -data: - base-url: https://g.codefresh.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 - - name: workflows - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 - defVersion: 2.0.0 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.522 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 83ce93f433c273860bd41e240a60ab2aafbf4d74 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:07:28 +0500 Subject: [PATCH 113/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From b031187244635f4cb3b3dc0477e7d1b9c7a1f831 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:11:24 +0500 Subject: [PATCH 114/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..4961224 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.522 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From df4cf28bffa1c7711b53ec439ccea478aa09e19f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:11:30 +0500 Subject: [PATCH 115/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From b66260ee14247ed0a729ef65c4b3423fa261730b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:11:32 +0500 Subject: [PATCH 116/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 46 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 +++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..6559d83 --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,46 @@ +apiVersion: v1 +data: + base-url: https://g.codefresh.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 + - name: workflows + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 + defVersion: 2.0.0 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.522 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 531f71e61fcacfdc4965ae325a8b6898220b45a6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:11:37 +0500 Subject: [PATCH 117/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..53c8cac --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 26dba98e119afeda3266f1adb320104244c76de8 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:19:48 +0500 Subject: [PATCH 118/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 46 ------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ 15 files changed, 397 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index 53c8cac..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 4961224..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.522 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 6559d83..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: v1 -data: - base-url: https://g.codefresh.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 - - name: workflows - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 - defVersion: 2.0.0 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.522 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 0d8c0a7199eb43cb4b7e132d70caf9b4058ad115 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Wed, 21 Sep 2022 13:21:27 +0500 Subject: [PATCH 119/411] Delete bootstrap directory --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From b1eb083a2b8f2d41c761f9596e6f7d8dce98044b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:26:50 +0500 Subject: [PATCH 120/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..4961224 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.522 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From d8c71bdb4b167c210540e3ac2ec72e2c8d7d080e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:26:56 +0500 Subject: [PATCH 121/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 88cd80d1c661d27abc4336a74b414d428b1958dc Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:26:58 +0500 Subject: [PATCH 122/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 46 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 +++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..6559d83 --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,46 @@ +apiVersion: v1 +data: + base-url: https://g.codefresh.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 + - name: workflows + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 + defVersion: 2.0.0 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.522 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 77b99045f28ac76c408b345d9486b32371d0aad1 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:27:03 +0500 Subject: [PATCH 123/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..53c8cac --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 0387196c6083cc3b6798fdea694de9b76c077ec0 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:35:17 +0500 Subject: [PATCH 124/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 46 ------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ 15 files changed, 397 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index 53c8cac..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 4961224..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.522 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 6559d83..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: v1 -data: - base-url: https://g.codefresh.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 - - name: workflows - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 - defVersion: 2.0.0 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.522 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 3da8b7085c668a099d8e6e01ad71ec7eb9252b8f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:37:07 +0500 Subject: [PATCH 125/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From 4b89bf2792658fdf82eaa5a3b9905fdbeb462a0e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:43:44 +0500 Subject: [PATCH 126/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..4961224 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.522 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From 5474852ae3a755aa8930a2c1e8bd00a27c705d98 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:43:51 +0500 Subject: [PATCH 127/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 195fb8b5a9bf8ae2c4cb9659bc7db6e2806c399f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:43:52 +0500 Subject: [PATCH 128/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 46 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 +++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..6559d83 --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,46 @@ +apiVersion: v1 +data: + base-url: https://g.codefresh.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 + - name: workflows + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 + defVersion: 2.0.0 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.522 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From c88ccb36f1abe796d491f60fb92545bea6561e68 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:43:57 +0500 Subject: [PATCH 129/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..53c8cac --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From c45e6a77f77d477367280aa60dd094e65683fb6d Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:52:07 +0500 Subject: [PATCH 130/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 46 ------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ 15 files changed, 397 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index 53c8cac..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 4961224..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.522 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 6559d83..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: v1 -data: - base-url: https://g.codefresh.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 - - name: workflows - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 - defVersion: 2.0.0 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.522 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 7584ba5c130200424403f0f9abe4678eb2737b1d Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 13:53:47 +0500 Subject: [PATCH 131/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From 1aacaac7fc3abeb898e8a06cbe338b989dc44d2c Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:53:18 +0500 Subject: [PATCH 132/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..4961224 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.522 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From 8edd296183affc3a770739e26b842d4b564cd5d0 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:53:24 +0500 Subject: [PATCH 133/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 1450d04549ac5ad06c76446153c996c888511fb5 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:53:26 +0500 Subject: [PATCH 134/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 46 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 +++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..6559d83 --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,46 @@ +apiVersion: v1 +data: + base-url: https://g.codefresh.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 + - name: workflows + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 + defVersion: 2.0.0 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.522 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 27a7aad3923a6401fd071f837d6b6ee6b3522253 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:53:31 +0500 Subject: [PATCH 135/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..53c8cac --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From a1a56306b28d5735ab6bee179050db1fd5494611 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:04 +0500 Subject: [PATCH 136/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..e92bdde --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 7889413453955e46b98b3a812be1789b8e47c550 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:05 +0500 Subject: [PATCH 137/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..5296775 --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From a6780f72e3f35d0d63901ec56f54ce1c057da2d4 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:06 +0500 Subject: [PATCH 138/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..3af410c --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 05ca8b5643f9d64b21c961837235ab670d98c999 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:08 +0500 Subject: [PATCH 139/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..0d597ce --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From da22e043f1e6b3dc45938bec3b0517e648321e3d Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:09 +0500 Subject: [PATCH 140/411] Created Workflows Ingress --- .../aws-local-runtime/ingress-patch.json | 12 ++++++++++ .../overlays/aws-local-runtime/ingress.yaml | 23 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 8 +++++++ 3 files changed, 43 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..6de8554 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + ingress.kubernetes.io/protocol: https + ingress.kubernetes.io/rewrite-target: /$2 + nginx.ingress.kubernetes.io/backend-protocol: https + nginx.ingress.kubernetes.io/rewrite-target: /$2 + name: aws-local-runtime-workflows-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: argo-server + port: + number: 2746 + path: /workflows(/|$)(.*) + pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..2fb61e0 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: ingress-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base +- ingress.yaml From 8dc583aaa9d3023619df2df982bcc8d5f9f4dcea Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:10 +0500 Subject: [PATCH 141/411] Updated App-Proxy configuration --- .../overlays/aws-local-runtime/ingress.yaml | 18 ++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..ab4f1f0 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-cap-app-proxy + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: cap-app-proxy + port: + number: 3017 + path: /app-proxy + pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..5bfde71 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://g.codefresh.io + - cors=https://g.codefresh.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From c606674dc828a4e05b7dae1af744361415ab4e22 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:12 +0500 Subject: [PATCH 142/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From b077baea5c1c06a4e728e17f80bb3e978b2757c2 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:13 +0500 Subject: [PATCH 143/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c8ac001 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://g.codefresh.io/2.0/api/events + name: events +status: {} From 7d7a76a04dc0101df89e2f88850cd84d62a9848e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:14 +0500 Subject: [PATCH 144/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 6fe7973316a7bae2fefe441ae0fe69861c14b5d8 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:15 +0500 Subject: [PATCH 145/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a816455 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://g.codefresh.io/2.0/api/events + name: workflows +status: {} From 5ca8116bfd05a07abbb1b3a1cd30159da67e4bcd Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:17 +0500 Subject: [PATCH 146/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 45b764e6b9ab44aaa76690c6b8d280c3a845cc65 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:18 +0500 Subject: [PATCH 147/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..812e093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://g.codefresh.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://g.codefresh.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://g.codefresh.io/2.0/api/events + name: analysisruns +status: {} From 3c40f77888a1f17f637732f180328fb50d3dc947 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:20 +0500 Subject: [PATCH 148/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 264efb12acf8621e34ebf6699e670f71f0dc9a54 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 21 Sep 2022 14:54:23 +0500 Subject: [PATCH 149/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From e002ea6754e092f4877c0faf4687204a73acd8d2 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Wed, 21 Sep 2022 09:55:40 +0000 Subject: [PATCH 150/411] installed app 'isc' on project 'aws-local-runtime' installation-path: '/' --- apps/isc/aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/isc/aws-local-runtime/config_dir.json diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..7fc6acc --- /dev/null +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "isc", + "userGivenName": "isc", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "runtimes/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/codefresh-runtime-internal-shared-config.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "shared-configuration", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd.argoproj.io/sync-wave": "10" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From d0f2d45edb488cb67d2cdf05e3eba9ce164621a1 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:21:56 +0500 Subject: [PATCH 151/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 18 --- .../aws-local-runtime/kustomization.yaml | 14 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 23 ---- .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/isc/aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 50 -------- .../aws-local-runtime/resources/rbac.yaml | 35 ------ .../aws-local-runtime/resources/sensor.yaml | 92 -------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 28 ----- .../aws-local-runtime/resources/rbac.yaml | 37 ------ .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/ingress-patch.json | 12 -- .../overlays/aws-local-runtime/ingress.yaml | 23 ---- .../aws-local-runtime/kustomization.yaml | 13 -- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 46 ------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ 44 files changed, 1024 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 3af410c..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index ab4f1f0..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-cap-app-proxy - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: cap-app-proxy - port: - number: 3017 - path: /app-proxy - pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 5bfde71..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://g.codefresh.io - - cors=https://g.codefresh.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c8ac001..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://g.codefresh.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index 53c8cac..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 7fc6acc..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/codefresh-runtime-internal-shared-config.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 812e093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://g.codefresh.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://g.codefresh.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://g.codefresh.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index e92bdde..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index 0d597ce..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a816455..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://g.codefresh.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index 5296775..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index 6de8554..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - ingress.kubernetes.io/protocol: https - ingress.kubernetes.io/rewrite-target: /$2 - nginx.ingress.kubernetes.io/backend-protocol: https - nginx.ingress.kubernetes.io/rewrite-target: /$2 - name: aws-local-runtime-workflows-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: argo-server - port: - number: 2746 - path: /workflows(/|$)(.*) - pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 2fb61e0..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: ingress-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base -- ingress.yaml 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 4961224..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.522 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 6559d83..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: v1 -data: - base-url: https://g.codefresh.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.522 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.522 - - name: workflows - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.522 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.522 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.522 - defVersion: 2.0.0 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.522 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From a9214356dd0b5a9deacbb7819da3626595d38d41 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:24:57 +0500 Subject: [PATCH 152/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From b467d1a2ce85f217c4540edfe3594ff88d43ca5a Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:29:49 +0500 Subject: [PATCH 153/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..cf9b0e1 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.524 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From e8d2fee835bc9b7142b2d21171a44c6d3e187512 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:29:55 +0500 Subject: [PATCH 154/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 7a450e72f5f469209ef7efd2e303c7982c91a0af Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:29:57 +0500 Subject: [PATCH 155/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 46 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 +++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..55affea --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,46 @@ +apiVersion: v1 +data: + base-url: https://philipp-platform.ngrok.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.524 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.524 + - name: workflows + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.524 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.524 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.524 + defVersion: 2.0.0 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.524 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 1324fe0fc1352eacec7e1bf46593924e404a7034 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:02 +0500 Subject: [PATCH 156/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..97b9ccf --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.524 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 98561cf1187b6a8a5f3472aee0fe9bf5ab2fb681 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:41 +0500 Subject: [PATCH 157/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..cce2352 --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.524 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 7d68019c0e6b009e2ae9d3c8d7af175dc391ae24 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:43 +0500 Subject: [PATCH 158/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..85c84af --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.524 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 4abf20842ebe595c1e79f142dd04692bf56b22af Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:44 +0500 Subject: [PATCH 159/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..4b81371 --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.524 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From a86424e6cece8a3cff8bed9f499cb5f71f4b50e7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:45 +0500 Subject: [PATCH 160/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..b6c0236 --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.524 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From c4ddfb519b656c44d41e6ba6310c0eeab9b93813 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:46 +0500 Subject: [PATCH 161/411] Created Workflows Ingress --- .../aws-local-runtime/ingress-patch.json | 12 ++++++++++ .../overlays/aws-local-runtime/ingress.yaml | 23 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 8 +++++++ 3 files changed, 43 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..6de8554 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + ingress.kubernetes.io/protocol: https + ingress.kubernetes.io/rewrite-target: /$2 + nginx.ingress.kubernetes.io/backend-protocol: https + nginx.ingress.kubernetes.io/rewrite-target: /$2 + name: aws-local-runtime-workflows-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: argo-server + port: + number: 2746 + path: /workflows(/|$)(.*) + pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..2fb61e0 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: ingress-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base +- ingress.yaml From d60af7a1fa3e27beebedc6db25c5fd310c3f252a Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:48 +0500 Subject: [PATCH 162/411] Updated App-Proxy configuration --- .../overlays/aws-local-runtime/ingress.yaml | 18 ++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..ab4f1f0 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-cap-app-proxy + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: cap-app-proxy + port: + number: 3017 + path: /app-proxy + pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..d16be78 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From 9093b7a9b80a01155f4477b926f3574d82be6928 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:49 +0500 Subject: [PATCH 163/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From d04f61b467495f62254c55041915691fa1388b36 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:50 +0500 Subject: [PATCH 164/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..8869d6d --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: events +status: {} From c8e725a3b2c6127d03897f4cc6cd0c2e0d7b6c12 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:51 +0500 Subject: [PATCH 165/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From aa427edc5298d70d670dd3c2df5b82f97091e097 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:53 +0500 Subject: [PATCH 166/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c0618bd --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: workflows +status: {} From 04dd2164ae8574bb0aaf461e10ec3be6b28382a0 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:54 +0500 Subject: [PATCH 167/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 2da9ec28406a4d21992eac75e6bf181f544e180f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:55 +0500 Subject: [PATCH 168/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a5b4093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From b28432d656cd8938a73903c5e227944ba52739a6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:57 +0500 Subject: [PATCH 169/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From c1bfd52c60e46aa8b328b6483935aaceeffa4593 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:30:59 +0500 Subject: [PATCH 170/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From b32780afbb8a0f5c9227ec8f333c3422cdaf0c12 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 22 Sep 2022 10:39:31 +0000 Subject: [PATCH 171/411] installed app 'isc' on project 'aws-local-runtime' installation-path: '/' --- apps/isc/aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/isc/aws-local-runtime/config_dir.json diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..7fc6acc --- /dev/null +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "isc", + "userGivenName": "isc", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "runtimes/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/codefresh-runtime-internal-shared-config.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "shared-configuration", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd.argoproj.io/sync-wave": "10" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From d9e1890c7aab0b875b55a4bcee32cde1455dbe4b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 22 Sep 2022 15:42:33 +0500 Subject: [PATCH 172/411] Update --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index d16be78..5f74950 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From a085caf1ca3c1c865372cc861cdb23c61fbdd83b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 12:55:30 +0500 Subject: [PATCH 173/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 18 --- .../aws-local-runtime/kustomization.yaml | 14 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 23 ---- .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/isc/aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 50 -------- .../aws-local-runtime/resources/rbac.yaml | 35 ------ .../aws-local-runtime/resources/sensor.yaml | 92 -------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 28 ----- .../aws-local-runtime/resources/rbac.yaml | 37 ------ .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/ingress-patch.json | 12 -- .../overlays/aws-local-runtime/ingress.yaml | 23 ---- .../aws-local-runtime/kustomization.yaml | 13 -- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 46 ------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ 44 files changed, 1024 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 4b81371..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.524 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index ab4f1f0..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-cap-app-proxy - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: cap-app-proxy - port: - number: 3017 - path: /app-proxy - pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 5f74950..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 8869d6d..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index 97b9ccf..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.524 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 7fc6acc..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/codefresh-runtime-internal-shared-config.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a5b4093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index cce2352..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.524 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index b6c0236..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.524 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c0618bd..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index 85c84af..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.524 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index 6de8554..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - ingress.kubernetes.io/protocol: https - ingress.kubernetes.io/rewrite-target: /$2 - nginx.ingress.kubernetes.io/backend-protocol: https - nginx.ingress.kubernetes.io/rewrite-target: /$2 - name: aws-local-runtime-workflows-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: argo-server - port: - number: 2746 - path: /workflows(/|$)(.*) - pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 2fb61e0..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: ingress-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base -- ingress.yaml 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 cf9b0e1..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.524 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 55affea..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: v1 -data: - base-url: https://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.524 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.524 - - name: workflows - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.524 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.524 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.524 - defVersion: 2.0.0 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.524 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From eea796bf42ba1e343f424580b57f7a3dec1dfd96 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 12:55:39 +0500 Subject: [PATCH 174/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From a6c76c15323f28e1f754e399df4302b28dd04acc Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:51:20 +0500 Subject: [PATCH 175/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..725a95d --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.528 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From 0d55a60fb55e4aa277a2ffaad2f908ae3d1657db Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:51:26 +0500 Subject: [PATCH 176/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From efa34319654cb34073d4c07caf4ee404e8f5d9e9 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:51:28 +0500 Subject: [PATCH 177/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 46 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 +++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..e1674de --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,46 @@ +apiVersion: v1 +data: + base-url: https://philipp-platform.ngrok.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.528 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.528 + - name: workflows + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.528 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.528 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.528 + defVersion: 2.0.0 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.528 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 2804076df751123adb554c95ef9ef3270af4f2a2 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:51:33 +0500 Subject: [PATCH 178/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..ffd2e7f --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.528 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 53b33e3aca5892b66d6a9e065df4fd73ba29e3bc Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:08 +0500 Subject: [PATCH 179/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..e603388 --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.528 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From b3f51135b22470a49262454f5becbda2543680ba Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:10 +0500 Subject: [PATCH 180/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..e6f59d7 --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.528 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 98b9c25dfe48f296e65ae5f3b618df4f67d9799e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:11 +0500 Subject: [PATCH 181/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..921aa85 --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.528 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 128662826ad55580b36d1863f96659bccb2fd4a9 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:12 +0500 Subject: [PATCH 182/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..94e0708 --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.528 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From a83c8f09da1d1473cdeafc950fd23e0316dcb526 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:13 +0500 Subject: [PATCH 183/411] Created Workflows Ingress --- .../aws-local-runtime/ingress-patch.json | 12 ++++++++++ .../overlays/aws-local-runtime/ingress.yaml | 23 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 8 +++++++ 3 files changed, 43 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..6de8554 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + ingress.kubernetes.io/protocol: https + ingress.kubernetes.io/rewrite-target: /$2 + nginx.ingress.kubernetes.io/backend-protocol: https + nginx.ingress.kubernetes.io/rewrite-target: /$2 + name: aws-local-runtime-workflows-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: argo-server + port: + number: 2746 + path: /workflows(/|$)(.*) + pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..2fb61e0 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: ingress-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base +- ingress.yaml From ce79611fbc85b9a2171ed51cb5bc7fbd7890b3c3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:15 +0500 Subject: [PATCH 184/411] Updated App-Proxy configuration --- .../overlays/aws-local-runtime/ingress.yaml | 18 ++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..ab4f1f0 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-cap-app-proxy + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: cap-app-proxy + port: + number: 3017 + path: /app-proxy + pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..d16be78 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From 042c5f876395df1e846749cfa1a3ba09edfc32c9 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:16 +0500 Subject: [PATCH 185/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 12dd32db1deac8a59dfcc4bd8592077a8a8d4fd5 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:17 +0500 Subject: [PATCH 186/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..8869d6d --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: events +status: {} From e398653fa71637101b9866e4c2abce595a6b2dc6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:18 +0500 Subject: [PATCH 187/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 96d27b7ca90f32f7a00319d98fd7d4920d0f8bde Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:19 +0500 Subject: [PATCH 188/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c0618bd --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: workflows +status: {} From 864570f0045759648249a9cc21763013088bda61 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:21 +0500 Subject: [PATCH 189/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 2fd8f5c77dfcd9c00220eb09380c1b48f3b508eb Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:22 +0500 Subject: [PATCH 190/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a5b4093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From 2533a562fd9f317a3c6f48e40ef4bbb4331ce184 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:24 +0500 Subject: [PATCH 191/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 1b051f03b9abd76494cba4dc1789c25d3a9b788e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 16:52:26 +0500 Subject: [PATCH 192/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From 9197d4ac3591b428f671dde2e84700b8bdcbfaee Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Wed, 28 Sep 2022 11:57:09 +0000 Subject: [PATCH 193/411] installed app 'isc' on project 'aws-local-runtime' installation-path: '/' --- apps/isc/aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/isc/aws-local-runtime/config_dir.json diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..7fc6acc --- /dev/null +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "isc", + "userGivenName": "isc", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "runtimes/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/codefresh-runtime-internal-shared-config.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "shared-configuration", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd.argoproj.io/sync-wave": "10" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 9f10f1433f801a7341e55ab80996fb600a18e0e1 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 17:00:42 +0500 Subject: [PATCH 194/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 18 --- .../aws-local-runtime/kustomization.yaml | 14 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 23 ---- .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/isc/aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 50 -------- .../aws-local-runtime/resources/rbac.yaml | 35 ------ .../aws-local-runtime/resources/sensor.yaml | 92 -------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 28 ----- .../aws-local-runtime/resources/rbac.yaml | 37 ------ .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/ingress-patch.json | 12 -- .../overlays/aws-local-runtime/ingress.yaml | 23 ---- .../aws-local-runtime/kustomization.yaml | 13 -- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 46 ------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ 44 files changed, 1024 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 921aa85..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.528 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index ab4f1f0..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-cap-app-proxy - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: cap-app-proxy - port: - number: 3017 - path: /app-proxy - pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index d16be78..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 8869d6d..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index ffd2e7f..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.528 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 7fc6acc..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/codefresh-runtime-internal-shared-config.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a5b4093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index e603388..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.528 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index 94e0708..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.528 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c0618bd..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index e6f59d7..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.528 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index 6de8554..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - ingress.kubernetes.io/protocol: https - ingress.kubernetes.io/rewrite-target: /$2 - nginx.ingress.kubernetes.io/backend-protocol: https - nginx.ingress.kubernetes.io/rewrite-target: /$2 - name: aws-local-runtime-workflows-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: argo-server - port: - number: 2746 - path: /workflows(/|$)(.*) - pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 2fb61e0..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: ingress-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base -- ingress.yaml 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 725a95d..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.528 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index e1674de..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: v1 -data: - base-url: https://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.528 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.528 - - name: workflows - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.528 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.528 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.528 - defVersion: 2.0.0 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.528 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 28f1df34b7d914fcead166c183a505f699a6c516 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 28 Sep 2022 17:03:11 +0500 Subject: [PATCH 195/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From 6fbbcbe364cc73ea8692d06fc35d659124574ca1 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:31:16 +0400 Subject: [PATCH 196/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..1f8da16 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.536 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From f923e8069055ae08a6e9ca723fd38a8aa3eaf6eb Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:31:23 +0400 Subject: [PATCH 197/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 74ad1ba9eed66bfd8947c9e92f4cbbdb65fcabc4 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:31:24 +0400 Subject: [PATCH 198/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 46 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 +++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..1686185 --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,46 @@ +apiVersion: v1 +data: + base-url: https://philipp-platform.ngrok.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.536 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.536 + - name: workflows + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.536 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.536 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.536 + defVersion: 2.0.0 + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + version: 0.0.536 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From e842f29059277239d5348aab1c20e75c4b69f10f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:31:30 +0400 Subject: [PATCH 199/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..080a997 --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.536 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From a0614002bf4f9ad0ab94e2cb390ea4e8f28ad426 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:03 +0400 Subject: [PATCH 200/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..eabde61 --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.536 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 7f4d074fe66070a4f657ade6628bb73b6e4436d6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:04 +0400 Subject: [PATCH 201/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..c089f45 --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.536 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 63935da082cc5f9fa5706111a44254bcd05b135c Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:06 +0400 Subject: [PATCH 202/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..7808b6a --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.536 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 334cc21cfa89089c03a47a6b06cf063c810dcda8 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:07 +0400 Subject: [PATCH 203/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..d5c94bb --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.536 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 6664e981b75a0181eb19e9e2cc87dbf4e5f60e73 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:09 +0400 Subject: [PATCH 204/411] Created Workflows Ingress --- .../aws-local-runtime/ingress-patch.json | 12 ++++++++++ .../overlays/aws-local-runtime/ingress.yaml | 23 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 8 +++++++ 3 files changed, 43 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json create mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..6de8554 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + ingress.kubernetes.io/protocol: https + ingress.kubernetes.io/rewrite-target: /$2 + nginx.ingress.kubernetes.io/backend-protocol: https + nginx.ingress.kubernetes.io/rewrite-target: /$2 + name: aws-local-runtime-workflows-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: argo-server + port: + number: 2746 + path: /workflows(/|$)(.*) + pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..2fb61e0 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: ingress-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base +- ingress.yaml From df74bbb767bdf41176a5c2e27f4331ac7d3500b8 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:10 +0400 Subject: [PATCH 205/411] Updated App-Proxy configuration --- .../overlays/aws-local-runtime/ingress.yaml | 18 ++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..ab4f1f0 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-cap-app-proxy + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: cap-app-proxy + port: + number: 3017 + path: /app-proxy + pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..d16be78 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From 74df0250a8eecc9e82b86173fc26c5c75a5c3fa3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:11 +0400 Subject: [PATCH 206/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 27cce05f40a83056a2540017867723f41f3d7f0e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:13 +0400 Subject: [PATCH 207/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..8869d6d --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: events +status: {} From aa601dc864e98ddb4db57f6846271ac6a4454c48 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:14 +0400 Subject: [PATCH 208/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 1e2d106b597d7bc4c3f633276e67485ec6d0816e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:15 +0400 Subject: [PATCH 209/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c0618bd --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: workflows +status: {} From 6cf45fda0179725076bb86bcd3ef7d8837cf650e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:17 +0400 Subject: [PATCH 210/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 1102e9f533ffd6a0c062936c462675c1fb3cc798 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:18 +0400 Subject: [PATCH 211/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a5b4093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From 695608c07769a3bfa208464691901d2a5c02c68f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:20 +0400 Subject: [PATCH 212/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 8de313b5aae3dbd3e8e46b719fdd7c210fd09f7f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:32:23 +0400 Subject: [PATCH 213/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From 5532d2f84f513ad69cada2d4e5b89466f785d80f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 16:34:04 +0000 Subject: [PATCH 214/411] commiting isc app 'in-cluster' to 'aws-local-runtime' adding 'resources' dir to shared-config repo commiting isc readme file --- shared-config/README.md | 44 +++++++++++++++++++ .../resources/all-runtimes-all-clusters/DUMMY | 0 .../aws-local-runtime/in-cluster.yaml | 28 ++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 shared-config/README.md create mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY create mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml diff --git a/shared-config/README.md b/shared-config/README.md new file mode 100644 index 0000000..85ee1f9 --- /dev/null +++ b/shared-config/README.md @@ -0,0 +1,44 @@ +# codefresh-runtime_internal-shared-config +This repository stores configuration files that can be shared between runtimes. + +Configuration definitions that will be stored in this repository: +- Argo CD managed cluster +- Git sources +- Codefresh 3rd party integrations configuration +- Ouath2 Authentications applications + +Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. + +## Repository structure +The base path of the repository will include 2 directories - resources and runtimes. +The resources directory will include the following sub-directories: +- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters +- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster +- runtimes/ - a folder for each specific runtime. + +Each manifest will be applied to all clusters in a specific runtime +both control-plane and the runtime-specific directories are optional. +The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml + + +``` +├── resources <───────────────────┐ +│ ├── all-runtimes-all-clusters │ +│ │ ├── manifest1.yaml │ +│ │ └── subfolder │ +│ │ └── manifest2.yaml │ +│ ├── control-planes │ +│ │ └── manifest3.yaml │ +│ ├── runtimes │ +│ │ ├── runtime1 │ +│ │ │ └── manifest4.yaml │ +│ │ └── runtime2 │ +│ │ └── manifest5.yaml │ +│ └── manifest6.yaml │ +└── runtimes │ + ├── runtime1 │ # references by /apps/runtime1/config_dir.json + │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster + │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster + └── runtime2 │ # references by /apps/runtime2/config_dir.json + └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster +``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY new file mode 100644 index 0000000..e69de29 diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml new file mode 100644 index 0000000..0581bc1 --- /dev/null +++ b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + finalizers: + - resources-finalizer.argocd.argoproj.io + labels: + codefresh.io/entity: internal-config + codefresh.io/internal: "true" + name: in-cluster +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + project: default + source: + directory: + include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' + recurse: true + path: shared-config/resources + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + targetRevision: HEAD + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true + syncOptions: + - allowEmpty=true From 3ddf349fcbaa7439399c10d679c29c4c8ff32491 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 11 Oct 2022 16:34:06 +0000 Subject: [PATCH 215/411] installed app 'isc' on project 'aws-local-runtime' installation-path: '/' --- apps/isc/aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/isc/aws-local-runtime/config_dir.json diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..1c85d6e --- /dev/null +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "isc", + "userGivenName": "isc", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "shared-config/runtimes/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "shared-configuration", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd.argoproj.io/sync-wave": "10" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 6b4cc431deb395e87a7dbbc8908bc4c3e5e7c2e3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 16:34:21 +0000 Subject: [PATCH 216/411] ISC Commit --- ...ts-keyhhmcm-aws-local-runtime.sealing-key.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyhhmcm-aws-local-runtime.sealing-key.yaml diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyhhmcm-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyhhmcm-aws-local-runtime.sealing-key.yaml new file mode 100644 index 0000000..e714b2a --- /dev/null +++ b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyhhmcm-aws-local-runtime.sealing-key.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + creationTimestamp: 2022-10-11T16:32:23.000Z + labels: + sealedsecrets.bitnami.com/sealed-secrets-key: active + codefresh.io/sealing-key-id: 63459b0af04e560030af4516 + codefresh.io/sealing-key: 'true' + codefresh.io/runtime-name: aws-local-runtime + name: sealed-secrets-keyhhmcm +data: + tls.crt: >- + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6VENDQXJXZ0F3SUJBZ0lSQUtKWDVycUdHdTFHelFGV1Z3MndpR2d3RFFZSktvWklodmNOQVFFTEJRQXcKQURBZUZ3MHlNakV3TVRFeE5qTXlNak5hRncwek1qRXdNRGd4TmpNeU1qTmFNQUF3Z2dJaU1BMEdDU3FHU0liMwpEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUUN5b0hSUjZKQkdrbzRib2RHL29keUttSnlRSXZ6elZIR0t2eUIxCk5kb1M3ZlExeFBjS3NGTlVKSURpemw0SWxIczFsdTFsYTRJZDRjOVVFT0JDYjhDdVBOMmRJZkpGMHFGOTRIekYKUTBHOHptNEJKUW5RMzhXNmk0aEFBNTkweUdrNTlrY1JiemJLazgzYWJrVVVkN0duQnJLUlpDVjVqTStPRlVkagowK1VTQm1PVGd4ZDh3eXB3KzBQNUM1L3lDeGhmL21FNURGUUo4OGJnYjdweUdMRUVqZzlmMVlsQ0Z1Qmd0LzV2ClI5NUplN2FrL1VEc0JXYUNPTnZzL1ZKNy92YmE5blNxYlh0RXJuWW1URk0vZWNTSGtWcHNyWE5meCtza1JrbTMKZGU1NnVIa1FaOXhQbUxVUW1Bc0JTNHIrcHRkR3VKRFYzRzlKVko4dzB4SWVUcTBuVytHRS9nVnFLeHU1UlZ6eQpFRzFkMnk1VEZldzU1OXZsWWdJL2U0N3BYbnFLcWEzeHFXUjkvMWdoeWZaL1BoT2UwSE5lbU1idVBRZWo4SDB2CnhjVC9SZWM0OWVoRWtqdENlTVJQa3hRSVVUdEt0OWQzMHlNUCsrTFNFdDkyY1pVaFUrZnNBanY4cHZmcGZuNHoKZEtvdGxiaks2N2Y4NjkwWmFaK0duRFQzQ3VhQ3JDWExkVXBCK2xJZWd4bUdNQm9JejE3aGVKekJpOWV4MHJCZgpVanptUnhoQ1NhR2VqSWQyRjZ5ME1ReC9GQW5HOVluNWM0TjE4QW96elQxWGRIUm1MSDVFeUNiMWxvL0VuSGRJCnZIN1J5a1Nvd2w3SlI0MVRBcGpOZW1XeUFtY245VFRObk9GQTRQOXZ4ZDdORlppZTB3SExtbjBsa1ZBb1R1ZG0KZVNoWlBRSURBUUFCbzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQUFFd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZApCZ05WSFE0RUZnUVU2YllFMlBPL3I5K3dyWGVZWmd3TjBLTXduOTB3RFFZSktvWklodmNOQVFFTEJRQURnZ0lCCkFBdjF5MkRQOGdxdVp1dTlnN08zTUhVazUvNzVtUXgyVkNGRW45Z0RORDU5a1NUTUdUTTMyamg1V2diM2VHK0UKWEk2bm0wZERkeWt1cWhjMVhWd1dBZTgwdGlETDB1ZnNWS3B5Q29lZXNsV0FlVnQ3cFp2azFxMG52Y3JVR0FVOQo4N25LbW9RL2xDR1o1TjR5eGNmNjFtN1loV3hUWU0xZXoxQXZMNVZ6RmYvaytNVWZ4d1A3NWpFdU5QOUhVOThMCnVhNTRuaC91bkswSUswWVFab3h2ZVRlZkpmQmNPUll0Y3N1WSs2RVdDa2JBVWloZGF2MUUyNjRDcGJ5Z0t1elQKdHBGNzRJN2dBTndLT0MyZ2JvSU9oeDFmQTJlTXNxY0FTM1dMVElTSzgxV1BtZTdFMHlBVDdnUkJaM21aS09ZTgpldUcyYWlhLzhXRklHL2h1dEdTaFBzYmxoSTREVHhTbk1tOWdZU2dhRmlRbVVhdDhoZzY2SEl1VEJYc0trUkZlCmpDTFpCV1dCZnp2VWsxV1RvQlVxbDErRE9qYmFvSUMzaGt1SDRhOHRKekNUNUsyMEN3VlA2NDJTRk9YaVRvWisKaGNTTnc1eFNIeG5nblVYVUQyTEJlcXA2KzlMK09Vc2ZKQXJDR1BobS9XS2dpRUhnN1EwZVVpUUdPdHZXaVg0OApVRU1hWXNIV3Jxc1lwcG1xNFpHNEU4UndJK1MxejI4aTlTM09lMzJFK3h5WmFUZGxUbXB5bzJ4L3RrN0d6NlJrCkZVNnhxRXNZOG83ditJZFJQaXB1N0E2TU1IcGN0QXFBYkxPRkthRERlczlKQ25nTDkwSk9DUVVmY0xoV0VlV2kKTDFPa2xLOFNLVGVCeVJBdWlIeXRRcnFpeVVuTGg0Z21hemV1RkhWSVFnd0QKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= + tls.key: >- + NVaWNNa0pJMVBJamQzd2MxSThHMnRoYnFXemZ6TEI2WFNJCm9lWTFSWHVDeU5lREVYSGVPU1AvakozQWJRbEc1dnJ3M3R4VTg4MzJFLytpTlFOVWg0aGh3QklrN2E3R3FSUlUKTXVvRDUrc0JtUEFLdExtZ1FHZUFURXJ2WW0vOXNEb09NVDM4dnh3NXVzNFZ0T1Q0SE5nOFZXeWxybHpqSmd0MwpoOTI4MXNLRE9SZGJiQ0VDZ2dFQkFNdzM1Mk52UEsrTldzNWRWMjhoMlg4TFdRbElBamJXcFFoNldlNVpYUmRaCno3VTF1TEdOVXYwa01NbEFxZGdhMW8xSndaNitycHM1bmN2Z0orUUVVcG9aMzQ3M2FYQ2ppVGtuTzlJRUVHVncKWUN2SkFQUTkyMzRzWDZQMEZPcjZGcFFEb3NYYzdlWEdST3JPRDZRMDNlem9ZWnppM2JMZ2w2b0s4dTkrN0VucApmd0R4RFNUM2MyRHlXVEFQRVdnS0ZuQituT2pzZkR4YU0vT254WVg0czd4RWFFSVNTajRVaklmZk5LU0Noc3N5CkZDKzFSKzBTdjY5TWFtTkVOODA0K0JUWi9DTUY3VTExMEJhbnJhdTVtb3JZbG9ZL0lsRlZ4WEZINUJTL1VRL0YKZ1B2d1BqOEdGc2VQeVhUZEh4Qk5CSmc1TitZVTNiaGdLVWkvdGhNTjZaMENnZ0VBZVdlMlg2WnkyRzV2MWpSRQpiUmpwa1pNSzhWY05TMDZxQmZOc2E1Q2RIc0dtc1BUSUNJMWlZRmFMb2ZIcXdqWGtMQStiWGRFc3QvNkI4dVFyClIwU0R2YXRrN2FVSUpsTVNKNTZWTUZNNGVlSVpNWUFVcjRWSFJaTzVrL0FrTzJ2SDluODNtZ1F5MnAycTNRb1cKNXp4bENlY0wvRTdJZWZ5SXliM05vU0xNUGVPcmVNaTdTb01OTTZBTlNjbzQ0TFNTbWFXVGV6QjlmMENRM0tlTApWM1hqNW5ZVFN4WktXbG16aEowaHJSc2Q2aDVSVmZFKzVKSkE1ZjVWd2JjbUdYQldRalhLQkpDbVRrVXg0RFFzCmhMRjVUVSs2dTZOUE9pM1NsRi9heFk5ZVdYcUk3N2ZKTmVXRS84UWFkNDgyemNLQzZDL3NON2xtTys0Z0RyUngKSnQzVm9RS0NBUUFjdjduNVM0MlZnU2JKYW1hR3BKTkR5VXN0ZlUraWZMRWE4bTU2bVdYN2hZOHlDWEFJdnNaeQpFSWcxckw2OFIzcnd4UE5XNzYwUStSbDN2QVNobXVJdUEzcHZXL0VpQkVPckloVFB5ZmFzOFJiNDB3RXBZUlBuClBVUHhoc2p6RTJYZVRHeTd3aEJUaW9mbExrRVJjc2ZUTkJ1WnhHNUZZa3kzaVhjTnRDWjdlVDJCMm0xcFNOU2IKVDBLeSswd09BMjJKUkttK09KeDh1bzRadlFLWGk1MXg0WWR6MWJOUjdmNmltZytGSVVMc2xBNDNjU1BCQWlTdAovdW56TTRWUGhMZVg1K0FRNWlLMEJ1UFdiS0NNVGtLdFRUUlRqY3U4KzRBaUpHYTliUGx5YVBGeGhpNmRITFJVClA2K3luZlpqaXhRY2dlR1dxRlZXUVdOT2RINmpUQkFaQW9JQkFRQ3BkcTZ6ZEhPd1lPMEh5UElDSW5oV3RiaXAKbFRjeDJnNXNzS3BocEw3NGpOenBwSTZweGNtc2tTbGZXRnFDU3JsNWVDWVVzN01DeHplcDNSakh4YmtFd1BEeQo2RFNEcDFKcVFVNGV5RnpsNzFrZDY1anhWV1lVeTNVZmplWjFIMm52WUpwQ2ppWVFRbTU0aW1TYWdzK0hkcnlMCkw0VWJkbFkwQ1ZMSkx1bFZlNHQ3Q0dIZTlmaVBVTmh3c0dRdlZEUW4xSUtzZ0JzNDM0Y1RwcU1EYkkzOXFBTjgKMXpQaXNwRng4NGR5UGRoeVZZcytYVWt2ZkMraVRmU1VnVmZTM01TOGZENk12OE80Zm13aUJhYURtb0lDSGVkRQpaaXE4T1RKM1hZVFU5T3lqa3VjY0htQlp4ZzhaenRJS1R4YVY5STQ0Q3NYcmZ0WlRaM3Ywa2pDYk1sOU8KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K From 07cbd650a2467875b164da705bcf01347ae1f2af Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 11 Oct 2022 20:42:13 +0400 Subject: [PATCH 217/411] Update cors --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index d16be78..5f74950 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From 6578d71584b24d89df3df930ce8167a1212cdc33 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 13 Oct 2022 12:13:16 +0000 Subject: [PATCH 218/411] Added project 'noam' --- projects/noam.yaml | 97 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 projects/noam.yaml diff --git a/projects/noam.yaml b/projects/noam.yaml new file mode 100644 index 0000000..cc4abcb --- /dev/null +++ b/projects/noam.yaml @@ -0,0 +1,97 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: noam + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: noam project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: noam + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/noam/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/noam/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: noam-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: noam + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 6e56ab631afd759ef8f27c71468b54ce6c8c6e77 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 12:13:37 +0000 Subject: [PATCH 219/411] adding cluster 'noam' to runtime 'aws-local-runtime' --- .../runtimes/aws-local-runtime/noam.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 shared-config/runtimes/aws-local-runtime/noam.yaml diff --git a/shared-config/runtimes/aws-local-runtime/noam.yaml b/shared-config/runtimes/aws-local-runtime/noam.yaml new file mode 100644 index 0000000..7f0dc6b --- /dev/null +++ b/shared-config/runtimes/aws-local-runtime/noam.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + finalizers: + - resources-finalizer.argocd.argoproj.io + labels: + codefresh.io/entity: internal-config + codefresh.io/internal: "true" + name: noam +spec: + destination: + namespace: default + server: https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com + project: default + source: + directory: + include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml}' + recurse: true + path: shared-config/resources + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + targetRevision: HEAD + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true + syncOptions: + - allowEmpty=true From 38e215f82deae58adadafa049971979747362bd6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 12:14:25 +0000 Subject: [PATCH 220/411] added rollout-reporter for noam --- .../resources/noam-event-source.yaml | 50 ++++++++++ .../resources/noam-sensor.yaml | 92 +++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml new file mode 100644 index 0000000..e1cac65 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: noam-rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + resource: analysisruns + version: v1alpha1 + cluster: noam + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + resource: replicasets + version: v1 + cluster: noam + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + resource: rollouts + version: v1alpha1 + cluster: noam + template: + container: + name: '' + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml new file mode 100644 index 0000000..fb25c1e --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: noam-rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: noam-rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: noam-rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: noam-rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: '' + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From 790c90a3b9a25216b99f15ec383402e3aef1dae6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 18:12:05 +0400 Subject: [PATCH 221/411] Make error --- apps/app-proxy/overlays/aws-local-runtime/ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml index ab4f1f0..3b52054 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -4,7 +4,7 @@ metadata: name: aws-local-runtime-cap-app-proxy namespace: aws-local-runtime spec: - ingressClassName: nginx + ingressClassName nginx rules: - host: philipp.hybrid-team.cf-cd.com http: From 21e8b32dd7d0c5ce5267375a5f6f924e6517b860 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 18:13:44 +0400 Subject: [PATCH 222/411] Back --- apps/app-proxy/overlays/aws-local-runtime/ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml index 3b52054..ab4f1f0 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -4,7 +4,7 @@ metadata: name: aws-local-runtime-cap-app-proxy namespace: aws-local-runtime spec: - ingressClassName nginx + ingressClassName: nginx rules: - host: philipp.hybrid-team.cf-cd.com http: From c2b1c2f0a18471114f3d467ee88c93f438ded924 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 18:14:55 +0400 Subject: [PATCH 223/411] Make error for isc --- apps/isc/aws-local-runtime/config_dir.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json index 1c85d6e..8a81f57 100644 --- a/apps/isc/aws-local-runtime/config_dir.json +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -4,7 +4,7 @@ "destNamespace": "aws-local-runtime", "destServer": "https://kubernetes.default.svc", "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcRepoURL": "https://github.com/PhilippPlotnikov/dsfsfsdf/aws-local-runtime.git", "srcTargetRevision": "", "labels": { "codefresh_io_entity": "shared-configuration", @@ -15,4 +15,4 @@ }, "exclude": "", "include": "" -} \ No newline at end of file +} From 28aa66c431a73d10294c2e8f5cd8f4c03aec3d4b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 20:05:52 +0400 Subject: [PATCH 224/411] Back --- apps/isc/aws-local-runtime/config_dir.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json index 8a81f57..2be7ae0 100644 --- a/apps/isc/aws-local-runtime/config_dir.json +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -4,7 +4,7 @@ "destNamespace": "aws-local-runtime", "destServer": "https://kubernetes.default.svc", "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/dsfsfsdf/aws-local-runtime.git", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", "srcTargetRevision": "", "labels": { "codefresh_io_entity": "shared-configuration", From 71a5f49912ceaa16e3d44ec802bf0ea0e60793eb Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 20:06:30 +0400 Subject: [PATCH 225/411] Make error for isc --- apps/isc/aws-local-runtime/config_dir.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json index 2be7ae0..facf439 100644 --- a/apps/isc/aws-local-runtime/config_dir.json +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -4,7 +4,7 @@ "destNamespace": "aws-local-runtime", "destServer": "https://kubernetes.default.svc", "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcRepoURL": "https://github.com/PhilippPlotnikov/sdhjfgskfa/aws-local-runtime.git", "srcTargetRevision": "", "labels": { "codefresh_io_entity": "shared-configuration", From 7af2e5f1e79831812d3b959c423dfa6d00c445a4 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 20:38:08 +0400 Subject: [PATCH 226/411] Make error for proxy --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 5f74950..37443d4 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -8,7 +8,7 @@ configMapGenerator: - env=production name: cap-app-proxy-cm kind: Kustomization -namespace: aws-local-runtime +namespace aws-local-runtime resources: - ../../base - ingress.yaml From 3ade853d488881055049333baea4f89d9297aaf6 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 20:39:36 +0400 Subject: [PATCH 227/411] Make error for proxy --- apps/app-proxy/overlays/aws-local-runtime/ingress.yaml | 2 +- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- apps/isc/aws-local-runtime/config_dir.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml index ab4f1f0..3b52054 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -4,7 +4,7 @@ metadata: name: aws-local-runtime-cap-app-proxy namespace: aws-local-runtime spec: - ingressClassName: nginx + ingressClassName nginx rules: - host: philipp.hybrid-team.cf-cd.com http: diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 37443d4..5f74950 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -8,7 +8,7 @@ configMapGenerator: - env=production name: cap-app-proxy-cm kind: Kustomization -namespace aws-local-runtime +namespace: aws-local-runtime resources: - ../../base - ingress.yaml diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json index facf439..2be7ae0 100644 --- a/apps/isc/aws-local-runtime/config_dir.json +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -4,7 +4,7 @@ "destNamespace": "aws-local-runtime", "destServer": "https://kubernetes.default.svc", "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/sdhjfgskfa/aws-local-runtime.git", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", "srcTargetRevision": "", "labels": { "codefresh_io_entity": "shared-configuration", From 71cd39441def898b411d1ea4e8912e8792616971 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 20:41:11 +0400 Subject: [PATCH 228/411] Make error for proxy --- apps/app-proxy/overlays/aws-local-runtime/ingress.yaml | 2 +- bootstrap/argo-cd.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml index 3b52054..ab4f1f0 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml @@ -4,7 +4,7 @@ metadata: name: aws-local-runtime-cap-app-proxy namespace: aws-local-runtime spec: - ingressClassName nginx + ingressClassName: nginx rules: - host: philipp.hybrid-team.cf-cd.com http: diff --git a/bootstrap/argo-cd.yaml b/bootstrap/argo-cd.yaml index 18cabf3..fdefcd0 100644 --- a/bootstrap/argo-cd.yaml +++ b/bootstrap/argo-cd.yaml @@ -21,7 +21,7 @@ spec: project: default source: path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + repoURL: https://github.com/PhilippPlotnikov/dsfsdfsd/faws-local-runtime.git syncPolicy: automated: allowEmpty: true From b354b28ce23c384357974148df2cda4f4542ee50 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 20:43:37 +0400 Subject: [PATCH 229/411] Make error for proxy --- bootstrap/argo-cd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/argo-cd.yaml b/bootstrap/argo-cd.yaml index fdefcd0..8ec8957 100644 --- a/bootstrap/argo-cd.yaml +++ b/bootstrap/argo-cd.yaml @@ -20,8 +20,8 @@ spec: kind: Application project: default source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/dsfsdfsd/faws-local-runtime.git + path bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git syncPolicy: automated: allowEmpty: true From e3f890cd83816c2638614352b5f90a77005d8012 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 21:01:30 +0400 Subject: [PATCH 230/411] Make error for proxy --- apps/default-git-source/aws-local-runtime/config_dir.json | 4 ++-- bootstrap/argo-cd.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json index 5684137..129c088 100644 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -4,7 +4,7 @@ "destNamespace": "aws-local-runtime", "destServer": "https://kubernetes.default.svc", "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcRepoURL": "https://github.com/PhilippPlotnikov/dfsdfdsf/aws-local-runtime_git-source.git", "srcTargetRevision": "", "labels": { "codefresh_io_entity": "git-source", @@ -15,4 +15,4 @@ }, "exclude": "", "include": "" -} \ No newline at end of file +} diff --git a/bootstrap/argo-cd.yaml b/bootstrap/argo-cd.yaml index 8ec8957..18cabf3 100644 --- a/bootstrap/argo-cd.yaml +++ b/bootstrap/argo-cd.yaml @@ -20,7 +20,7 @@ spec: kind: Application project: default source: - path bootstrap/argo-cd + path: bootstrap/argo-cd repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git syncPolicy: automated: From e315713245eb2093595fb1e59daa9650de172ecf Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 13 Oct 2022 21:02:33 +0400 Subject: [PATCH 231/411] Make error for proxy --- apps/default-git-source/aws-local-runtime/config_dir.json | 2 +- apps/isc/aws-local-runtime/config_dir.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json index 129c088..e9dad65 100644 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -4,7 +4,7 @@ "destNamespace": "aws-local-runtime", "destServer": "https://kubernetes.default.svc", "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/dfsdfdsf/aws-local-runtime_git-source.git", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", "srcTargetRevision": "", "labels": { "codefresh_io_entity": "git-source", diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json index 2be7ae0..fb074e5 100644 --- a/apps/isc/aws-local-runtime/config_dir.json +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -4,7 +4,7 @@ "destNamespace": "aws-local-runtime", "destServer": "https://kubernetes.default.svc", "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcRepoURL": "https://github.com/PhilippPlotnikov/dsfsdfsd/aws-local-runtime.git", "srcTargetRevision": "", "labels": { "codefresh_io_entity": "shared-configuration", From 718f1d270a685a9f8416dc5df9e38a93177fd7c1 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 14 Oct 2022 13:30:03 +0400 Subject: [PATCH 232/411] Back --- apps/isc/aws-local-runtime/config_dir.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json index fb074e5..2be7ae0 100644 --- a/apps/isc/aws-local-runtime/config_dir.json +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -4,7 +4,7 @@ "destNamespace": "aws-local-runtime", "destServer": "https://kubernetes.default.svc", "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/dsfsdfsd/aws-local-runtime.git", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", "srcTargetRevision": "", "labels": { "codefresh_io_entity": "shared-configuration", From dd2cfcb1a3e3c50621afcec8e8be5d31f3e50e8a Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 14 Oct 2022 13:44:27 +0400 Subject: [PATCH 233/411] Error --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 5f74950..37443d4 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -8,7 +8,7 @@ configMapGenerator: - env=production name: cap-app-proxy-cm kind: Kustomization -namespace: aws-local-runtime +namespace aws-local-runtime resources: - ../../base - ingress.yaml From 288417af19131d87e894ffe00fe1ae72b8d84e54 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 14 Oct 2022 13:58:18 +0400 Subject: [PATCH 234/411] Error --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 37443d4..5f74950 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -8,7 +8,7 @@ configMapGenerator: - env=production name: cap-app-proxy-cm kind: Kustomization -namespace aws-local-runtime +namespace: aws-local-runtime resources: - ../../base - ingress.yaml From 9eedc5d2f495521fecc5628eeff4a44547e57cc9 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 14 Oct 2022 17:01:14 +0400 Subject: [PATCH 235/411] Update --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 5f74950..d16be78 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io - env=production name: cap-app-proxy-cm kind: Kustomization From c280286c1327b5e454b0a6a9e50d1f92335cbc95 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 14 Oct 2022 17:04:38 +0400 Subject: [PATCH 236/411] Update --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index d16be78..5f74950 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From f601e2933cb5ee24791d63d8ac2dfbf09013dc3c Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 17 Oct 2022 15:17:02 +0400 Subject: [PATCH 237/411] Upgraded to 0.0.543 --- apps/app-proxy/base/kustomization.yaml | 2 +- apps/events/base/kustomization.yaml | 2 +- apps/rollouts/base/kustomization.yaml | 2 +- apps/sealed-secrets/base/kustomization.yaml | 2 +- apps/workflows/base/kustomization.yaml | 2 +- bootstrap/argo-cd/kustomization.yaml | 2 +- bootstrap/aws-local-runtime.yaml | 18 +++++++++++------- 7 files changed, 17 insertions(+), 13 deletions(-) diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml index 7808b6a..1012cee 100644 --- a/apps/app-proxy/base/kustomization.yaml +++ b/apps/app-proxy/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.536 +- github.com/codefresh-io/cli-v2/manifests/app-proxy diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml index 080a997..5dcac01 100644 --- a/apps/events/base/kustomization.yaml +++ b/apps/events/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.536 +- github.com/codefresh-io/cli-v2/manifests/argo-events diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml index eabde61..d386091 100644 --- a/apps/rollouts/base/kustomization.yaml +++ b/apps/rollouts/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.536 +- github.com/codefresh-io/cli-v2/manifests/argo-rollouts diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml index d5c94bb..44624a4 100644 --- a/apps/sealed-secrets/base/kustomization.yaml +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.536 +- github.com/codefresh-io/cli-v2/manifests/sealed-secrets diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml index c089f45..95dd355 100644 --- a/apps/workflows/base/kustomization.yaml +++ b/apps/workflows/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.536 +- github.com/codefresh-io/cli-v2/manifests/argo-workflows diff --git a/bootstrap/argo-cd/kustomization.yaml b/bootstrap/argo-cd/kustomization.yaml index 1f8da16..e2fa1e8 100644 --- a/bootstrap/argo-cd/kustomization.yaml +++ b/bootstrap/argo-cd/kustomization.yaml @@ -14,4 +14,4 @@ configMapGenerator: kind: Kustomization namespace: aws-local-runtime resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd?ref=v0.0.536 +- github.com/codefresh-io/cli-v2/manifests/argo-cd diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index 1686185..ae566de 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -15,27 +15,31 @@ data: components: - name: events type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events?ref=v0.0.536 + url: github.com/codefresh-io/cli-v2/manifests/argo-events wait: true - name: rollouts type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts?ref=v0.0.536 + url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts - name: workflows type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows?ref=v0.0.536 + url: github.com/codefresh-io/cli-v2/manifests/argo-workflows - name: app-proxy syncWave: 9 type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy?ref=v0.0.536 + url: github.com/codefresh-io/cli-v2/manifests/app-proxy + - name: internal-router + syncWave: 10 + type: kustomize + url: github.com/codefresh-io/cli-v2/manifests/internal-router - name: sealed-secrets type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets?ref=v0.0.536 - defVersion: 2.0.0 + url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets + defVersion: 2.1.0 ingressClassName: nginx ingressController: k8s.io/ingress-nginx ingressHost: https://philipp.hybrid-team.cf-cd.com repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.536 + version: 0.0.543 kind: ConfigMap metadata: creationTimestamp: null From 349aa9cea2a18d9cb913fa324f6dbd2a91bca3d7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 17 Oct 2022 15:17:03 +0400 Subject: [PATCH 238/411] installed app 'internal-router' on project 'aws-local-runtime' installation-path: '/' --- apps/internal-router/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/internal-router/base/kustomization.yaml create mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json create mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml new file mode 100644 index 0000000..973cb1a --- /dev/null +++ b/apps/internal-router/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/cli-v2/manifests/internal-router diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..67b3a37 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "internal-router", + "userGivenName": "internal-router", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/internal-router/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "10" + } +} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From affe8ec42c4902bb8f049a86b6eeb7d679094f34 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Mon, 17 Oct 2022 15:17:06 +0400 Subject: [PATCH 239/411] Created Internal Router Ingresses --- .../overlays/aws-local-runtime/ingress.yaml | 32 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 1 + 2 files changed, 33 insertions(+) create mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..c45f381 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,32 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-internal-router-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: internal-router + port: + number: 80 + path: /webhooks + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /workflows + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /app-proxy + pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml index a6191ea..f01b430 100644 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -3,3 +3,4 @@ kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From c8ac75153e7d5dac02620f4e8c39390f917be3a9 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 20 Oct 2022 20:25:36 +0400 Subject: [PATCH 240/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 18 --- .../aws-local-runtime/kustomization.yaml | 14 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 23 ---- .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/internal-router/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 32 ----- .../aws-local-runtime/kustomization.yaml | 6 - apps/isc/aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 50 -------- .../resources/noam-event-source.yaml | 50 -------- .../resources/noam-sensor.yaml | 92 -------------- .../aws-local-runtime/resources/rbac.yaml | 35 ------ .../aws-local-runtime/resources/sensor.yaml | 92 -------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 28 ----- .../aws-local-runtime/resources/rbac.yaml | 37 ------ .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/ingress-patch.json | 12 -- .../overlays/aws-local-runtime/ingress.yaml | 23 ---- .../aws-local-runtime/kustomization.yaml | 13 -- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 50 -------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ projects/noam.yaml | 97 -------------- 51 files changed, 1325 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/internal-router/base/kustomization.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json delete mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress-patch.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml delete mode 100644 projects/noam.yaml 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 1012cee..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/app-proxy diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml b/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index ab4f1f0..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-cap-app-proxy - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: cap-app-proxy - port: - number: 3017 - path: /app-proxy - pathType: Prefix diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 5f74950..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index e9dad65..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 8869d6d..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index 5dcac01..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-events diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml deleted file mode 100644 index 973cb1a..0000000 --- a/apps/internal-router/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/internal-router diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json deleted file mode 100644 index 67b3a37..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "internal-router", - "userGivenName": "internal-router", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/internal-router/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "10" - } -} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index c45f381..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-internal-router-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: internal-router - port: - number: 80 - path: /webhooks - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /workflows - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /app-proxy - pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index f01b430..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 2be7ae0..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml deleted file mode 100644 index e1cac65..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: noam-rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - resource: analysisruns - version: v1alpha1 - cluster: noam - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - resource: replicasets - version: v1 - cluster: noam - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - resource: rollouts - version: v1alpha1 - cluster: noam - template: - container: - name: '' - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml deleted file mode 100644 index fb25c1e..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: noam-rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: noam-rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: noam-rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: noam-rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: '' - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a5b4093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index d386091..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-rollouts diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index 44624a4..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/sealed-secrets diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c0618bd..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index 95dd355..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-workflows diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json b/apps/workflows/overlays/aws-local-runtime/ingress-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] diff --git a/apps/workflows/overlays/aws-local-runtime/ingress.yaml b/apps/workflows/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index 6de8554..0000000 --- a/apps/workflows/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - ingress.kubernetes.io/protocol: https - ingress.kubernetes.io/rewrite-target: /$2 - nginx.ingress.kubernetes.io/backend-protocol: https - nginx.ingress.kubernetes.io/rewrite-target: /$2 - name: aws-local-runtime-workflows-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: argo-server - port: - number: 2746 - path: /workflows(/|$)(.*) - pathType: ImplementationSpecific diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 2fb61e0..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: ingress-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base -- ingress.yaml 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 e2fa1e8..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/cli-v2/manifests/argo-cd diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index ae566de..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: v1 -data: - base-url: https://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-events - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-rollouts - - name: workflows - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/argo-workflows - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/app-proxy - - name: internal-router - syncWave: 10 - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/internal-router - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/cli-v2/manifests/sealed-secrets - defVersion: 2.1.0 - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - version: 0.0.543 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} diff --git a/projects/noam.yaml b/projects/noam.yaml deleted file mode 100644 index cc4abcb..0000000 --- a/projects/noam.yaml +++ /dev/null @@ -1,97 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - name: noam - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: noam project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: noam - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/noam/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/noam/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: noam-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: noam - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 583d3064b10105d64f80ae9bd4a3a31d67543b47 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 20 Oct 2022 20:26:42 +0400 Subject: [PATCH 241/411] Autopilot Uninstall From 4e00def6992ae3c5b2036b3af8092d8695011292 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 20 Oct 2022 20:28:20 +0400 Subject: [PATCH 242/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From 23c4c9c5b0d5f3c5fb008ea722dec7c83c3cd4f6 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 20 Oct 2022 20:30:18 +0400 Subject: [PATCH 243/411] Delete shared-config directory --- shared-config/README.md | 44 ------------------- .../resources/all-runtimes-all-clusters/DUMMY | 0 ...eyhhmcm-aws-local-runtime.sealing-key.yaml | 15 ------- .../aws-local-runtime/in-cluster.yaml | 28 ------------ .../runtimes/aws-local-runtime/noam.yaml | 28 ------------ 5 files changed, 115 deletions(-) delete mode 100644 shared-config/README.md delete mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY delete mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyhhmcm-aws-local-runtime.sealing-key.yaml delete mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml delete mode 100644 shared-config/runtimes/aws-local-runtime/noam.yaml diff --git a/shared-config/README.md b/shared-config/README.md deleted file mode 100644 index 85ee1f9..0000000 --- a/shared-config/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# codefresh-runtime_internal-shared-config -This repository stores configuration files that can be shared between runtimes. - -Configuration definitions that will be stored in this repository: -- Argo CD managed cluster -- Git sources -- Codefresh 3rd party integrations configuration -- Ouath2 Authentications applications - -Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. - -## Repository structure -The base path of the repository will include 2 directories - resources and runtimes. -The resources directory will include the following sub-directories: -- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters -- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster -- runtimes/ - a folder for each specific runtime. - -Each manifest will be applied to all clusters in a specific runtime -both control-plane and the runtime-specific directories are optional. -The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml - - -``` -├── resources <───────────────────┐ -│ ├── all-runtimes-all-clusters │ -│ │ ├── manifest1.yaml │ -│ │ └── subfolder │ -│ │ └── manifest2.yaml │ -│ ├── control-planes │ -│ │ └── manifest3.yaml │ -│ ├── runtimes │ -│ │ ├── runtime1 │ -│ │ │ └── manifest4.yaml │ -│ │ └── runtime2 │ -│ │ └── manifest5.yaml │ -│ └── manifest6.yaml │ -└── runtimes │ - ├── runtime1 │ # references by /apps/runtime1/config_dir.json - │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - └── runtime2 │ # references by /apps/runtime2/config_dir.json - └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster -``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY deleted file mode 100644 index e69de29..0000000 diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyhhmcm-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyhhmcm-aws-local-runtime.sealing-key.yaml deleted file mode 100644 index e714b2a..0000000 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyhhmcm-aws-local-runtime.sealing-key.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - creationTimestamp: 2022-10-11T16:32:23.000Z - labels: - sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 63459b0af04e560030af4516 - codefresh.io/sealing-key: 'true' - codefresh.io/runtime-name: aws-local-runtime - name: sealed-secrets-keyhhmcm -data: - tls.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6VENDQXJXZ0F3SUJBZ0lSQUtKWDVycUdHdTFHelFGV1Z3MndpR2d3RFFZSktvWklodmNOQVFFTEJRQXcKQURBZUZ3MHlNakV3TVRFeE5qTXlNak5hRncwek1qRXdNRGd4TmpNeU1qTmFNQUF3Z2dJaU1BMEdDU3FHU0liMwpEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUUN5b0hSUjZKQkdrbzRib2RHL29keUttSnlRSXZ6elZIR0t2eUIxCk5kb1M3ZlExeFBjS3NGTlVKSURpemw0SWxIczFsdTFsYTRJZDRjOVVFT0JDYjhDdVBOMmRJZkpGMHFGOTRIekYKUTBHOHptNEJKUW5RMzhXNmk0aEFBNTkweUdrNTlrY1JiemJLazgzYWJrVVVkN0duQnJLUlpDVjVqTStPRlVkagowK1VTQm1PVGd4ZDh3eXB3KzBQNUM1L3lDeGhmL21FNURGUUo4OGJnYjdweUdMRUVqZzlmMVlsQ0Z1Qmd0LzV2ClI5NUplN2FrL1VEc0JXYUNPTnZzL1ZKNy92YmE5blNxYlh0RXJuWW1URk0vZWNTSGtWcHNyWE5meCtza1JrbTMKZGU1NnVIa1FaOXhQbUxVUW1Bc0JTNHIrcHRkR3VKRFYzRzlKVko4dzB4SWVUcTBuVytHRS9nVnFLeHU1UlZ6eQpFRzFkMnk1VEZldzU1OXZsWWdJL2U0N3BYbnFLcWEzeHFXUjkvMWdoeWZaL1BoT2UwSE5lbU1idVBRZWo4SDB2CnhjVC9SZWM0OWVoRWtqdENlTVJQa3hRSVVUdEt0OWQzMHlNUCsrTFNFdDkyY1pVaFUrZnNBanY4cHZmcGZuNHoKZEtvdGxiaks2N2Y4NjkwWmFaK0duRFQzQ3VhQ3JDWExkVXBCK2xJZWd4bUdNQm9JejE3aGVKekJpOWV4MHJCZgpVanptUnhoQ1NhR2VqSWQyRjZ5ME1ReC9GQW5HOVluNWM0TjE4QW96elQxWGRIUm1MSDVFeUNiMWxvL0VuSGRJCnZIN1J5a1Nvd2w3SlI0MVRBcGpOZW1XeUFtY245VFRObk9GQTRQOXZ4ZDdORlppZTB3SExtbjBsa1ZBb1R1ZG0KZVNoWlBRSURBUUFCbzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQUFFd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZApCZ05WSFE0RUZnUVU2YllFMlBPL3I5K3dyWGVZWmd3TjBLTXduOTB3RFFZSktvWklodmNOQVFFTEJRQURnZ0lCCkFBdjF5MkRQOGdxdVp1dTlnN08zTUhVazUvNzVtUXgyVkNGRW45Z0RORDU5a1NUTUdUTTMyamg1V2diM2VHK0UKWEk2bm0wZERkeWt1cWhjMVhWd1dBZTgwdGlETDB1ZnNWS3B5Q29lZXNsV0FlVnQ3cFp2azFxMG52Y3JVR0FVOQo4N25LbW9RL2xDR1o1TjR5eGNmNjFtN1loV3hUWU0xZXoxQXZMNVZ6RmYvaytNVWZ4d1A3NWpFdU5QOUhVOThMCnVhNTRuaC91bkswSUswWVFab3h2ZVRlZkpmQmNPUll0Y3N1WSs2RVdDa2JBVWloZGF2MUUyNjRDcGJ5Z0t1elQKdHBGNzRJN2dBTndLT0MyZ2JvSU9oeDFmQTJlTXNxY0FTM1dMVElTSzgxV1BtZTdFMHlBVDdnUkJaM21aS09ZTgpldUcyYWlhLzhXRklHL2h1dEdTaFBzYmxoSTREVHhTbk1tOWdZU2dhRmlRbVVhdDhoZzY2SEl1VEJYc0trUkZlCmpDTFpCV1dCZnp2VWsxV1RvQlVxbDErRE9qYmFvSUMzaGt1SDRhOHRKekNUNUsyMEN3VlA2NDJTRk9YaVRvWisKaGNTTnc1eFNIeG5nblVYVUQyTEJlcXA2KzlMK09Vc2ZKQXJDR1BobS9XS2dpRUhnN1EwZVVpUUdPdHZXaVg0OApVRU1hWXNIV3Jxc1lwcG1xNFpHNEU4UndJK1MxejI4aTlTM09lMzJFK3h5WmFUZGxUbXB5bzJ4L3RrN0d6NlJrCkZVNnhxRXNZOG83ditJZFJQaXB1N0E2TU1IcGN0QXFBYkxPRkthRERlczlKQ25nTDkwSk9DUVVmY0xoV0VlV2kKTDFPa2xLOFNLVGVCeVJBdWlIeXRRcnFpeVVuTGg0Z21hemV1RkhWSVFnd0QKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= - tls.key: >- - NVaWNNa0pJMVBJamQzd2MxSThHMnRoYnFXemZ6TEI2WFNJCm9lWTFSWHVDeU5lREVYSGVPU1AvakozQWJRbEc1dnJ3M3R4VTg4MzJFLytpTlFOVWg0aGh3QklrN2E3R3FSUlUKTXVvRDUrc0JtUEFLdExtZ1FHZUFURXJ2WW0vOXNEb09NVDM4dnh3NXVzNFZ0T1Q0SE5nOFZXeWxybHpqSmd0MwpoOTI4MXNLRE9SZGJiQ0VDZ2dFQkFNdzM1Mk52UEsrTldzNWRWMjhoMlg4TFdRbElBamJXcFFoNldlNVpYUmRaCno3VTF1TEdOVXYwa01NbEFxZGdhMW8xSndaNitycHM1bmN2Z0orUUVVcG9aMzQ3M2FYQ2ppVGtuTzlJRUVHVncKWUN2SkFQUTkyMzRzWDZQMEZPcjZGcFFEb3NYYzdlWEdST3JPRDZRMDNlem9ZWnppM2JMZ2w2b0s4dTkrN0VucApmd0R4RFNUM2MyRHlXVEFQRVdnS0ZuQituT2pzZkR4YU0vT254WVg0czd4RWFFSVNTajRVaklmZk5LU0Noc3N5CkZDKzFSKzBTdjY5TWFtTkVOODA0K0JUWi9DTUY3VTExMEJhbnJhdTVtb3JZbG9ZL0lsRlZ4WEZINUJTL1VRL0YKZ1B2d1BqOEdGc2VQeVhUZEh4Qk5CSmc1TitZVTNiaGdLVWkvdGhNTjZaMENnZ0VBZVdlMlg2WnkyRzV2MWpSRQpiUmpwa1pNSzhWY05TMDZxQmZOc2E1Q2RIc0dtc1BUSUNJMWlZRmFMb2ZIcXdqWGtMQStiWGRFc3QvNkI4dVFyClIwU0R2YXRrN2FVSUpsTVNKNTZWTUZNNGVlSVpNWUFVcjRWSFJaTzVrL0FrTzJ2SDluODNtZ1F5MnAycTNRb1cKNXp4bENlY0wvRTdJZWZ5SXliM05vU0xNUGVPcmVNaTdTb01OTTZBTlNjbzQ0TFNTbWFXVGV6QjlmMENRM0tlTApWM1hqNW5ZVFN4WktXbG16aEowaHJSc2Q2aDVSVmZFKzVKSkE1ZjVWd2JjbUdYQldRalhLQkpDbVRrVXg0RFFzCmhMRjVUVSs2dTZOUE9pM1NsRi9heFk5ZVdYcUk3N2ZKTmVXRS84UWFkNDgyemNLQzZDL3NON2xtTys0Z0RyUngKSnQzVm9RS0NBUUFjdjduNVM0MlZnU2JKYW1hR3BKTkR5VXN0ZlUraWZMRWE4bTU2bVdYN2hZOHlDWEFJdnNaeQpFSWcxckw2OFIzcnd4UE5XNzYwUStSbDN2QVNobXVJdUEzcHZXL0VpQkVPckloVFB5ZmFzOFJiNDB3RXBZUlBuClBVUHhoc2p6RTJYZVRHeTd3aEJUaW9mbExrRVJjc2ZUTkJ1WnhHNUZZa3kzaVhjTnRDWjdlVDJCMm0xcFNOU2IKVDBLeSswd09BMjJKUkttK09KeDh1bzRadlFLWGk1MXg0WWR6MWJOUjdmNmltZytGSVVMc2xBNDNjU1BCQWlTdAovdW56TTRWUGhMZVg1K0FRNWlLMEJ1UFdiS0NNVGtLdFRUUlRqY3U4KzRBaUpHYTliUGx5YVBGeGhpNmRITFJVClA2K3luZlpqaXhRY2dlR1dxRlZXUVdOT2RINmpUQkFaQW9JQkFRQ3BkcTZ6ZEhPd1lPMEh5UElDSW5oV3RiaXAKbFRjeDJnNXNzS3BocEw3NGpOenBwSTZweGNtc2tTbGZXRnFDU3JsNWVDWVVzN01DeHplcDNSakh4YmtFd1BEeQo2RFNEcDFKcVFVNGV5RnpsNzFrZDY1anhWV1lVeTNVZmplWjFIMm52WUpwQ2ppWVFRbTU0aW1TYWdzK0hkcnlMCkw0VWJkbFkwQ1ZMSkx1bFZlNHQ3Q0dIZTlmaVBVTmh3c0dRdlZEUW4xSUtzZ0JzNDM0Y1RwcU1EYkkzOXFBTjgKMXpQaXNwRng4NGR5UGRoeVZZcytYVWt2ZkMraVRmU1VnVmZTM01TOGZENk12OE80Zm13aUJhYURtb0lDSGVkRQpaaXE4T1RKM1hZVFU5T3lqa3VjY0htQlp4ZzhaenRJS1R4YVY5STQ0Q3NYcmZ0WlRaM3Ywa2pDYk1sOU8KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml deleted file mode 100644 index 0581bc1..0000000 --- a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: "true" - name: in-cluster -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - project: default - source: - directory: - include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true diff --git a/shared-config/runtimes/aws-local-runtime/noam.yaml b/shared-config/runtimes/aws-local-runtime/noam.yaml deleted file mode 100644 index 7f0dc6b..0000000 --- a/shared-config/runtimes/aws-local-runtime/noam.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: "true" - name: noam -spec: - destination: - namespace: default - server: https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com - project: default - source: - directory: - include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml}' - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true From 69f4c1bb779b1d301441cf7aaa6841645046f89c Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:13:47 +0400 Subject: [PATCH 244/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..a541e7d --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.13 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From d1d1902eb69bdcaa3bc000b0bae584c8bdf5b6ca Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:13:55 +0400 Subject: [PATCH 245/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From c1eb9de3f3d5112dac02d4157d354741823b5b9f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:13:56 +0400 Subject: [PATCH 246/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 51 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 ++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..b3967ba --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,51 @@ +apiVersion: v1 +data: + base-url: https://philipp-platform.ngrok.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.13 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.13 + - name: workflows + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.13 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.13 + - name: internal-router + syncWave: 10 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.13 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.13 + defVersion: null + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + requiredCLIVersion: ^0.1.0 + version: 0.1.13 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 7b95876af66c55f125337b57fc6e0b7b39782926 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:14:02 +0400 Subject: [PATCH 247/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..e7341c0 --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.13 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 15db43280a79f2af1197b2bea7ed37a95a0d7ed0 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:14:50 +0400 Subject: [PATCH 248/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..19ae0c4 --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.13 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 520ef83702e5df1025ccd4fc05ecb8239bbfd427 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:14:51 +0400 Subject: [PATCH 249/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..19f710f --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.13 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 2fabe0351b3c4aef18998913454d0d619bc102a7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:14:53 +0400 Subject: [PATCH 250/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..0ae8850 --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.13 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 8822c5176707d6f80a468fa12031e0b940bc3672 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:14:54 +0400 Subject: [PATCH 251/411] installed app 'internal-router' on project 'aws-local-runtime' installation-path: '/' --- apps/internal-router/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/internal-router/base/kustomization.yaml create mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json create mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml new file mode 100644 index 0000000..b244aee --- /dev/null +++ b/apps/internal-router/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.13 diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..67b3a37 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "internal-router", + "userGivenName": "internal-router", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/internal-router/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "10" + } +} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From d9890791ed89220bb8f74833b4c6e63242e0d17d Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:14:56 +0400 Subject: [PATCH 252/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..c8774f3 --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.13 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From fab5da7d0c8dec4e71196495a7e5a1984d9f830f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:14:57 +0400 Subject: [PATCH 253/411] Created Internal Router Ingresses --- .../overlays/aws-local-runtime/ingress.yaml | 32 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 1 + 2 files changed, 33 insertions(+) create mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..c45f381 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,32 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-internal-router-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: internal-router + port: + number: 80 + path: /webhooks + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /workflows + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /app-proxy + pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml index a6191ea..f01b430 100644 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -3,3 +3,4 @@ kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From 951cd630a0495a3eef2480fb36ec4fe3e780674f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:14:59 +0400 Subject: [PATCH 254/411] Configured Argo Workflows --- .../overlays/aws-local-runtime/kustomization.yaml | 7 +++++++ .../overlays/aws-local-runtime/route-patch.json | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/route-patch.json diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..9c44d03 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: route-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base diff --git a/apps/workflows/overlays/aws-local-runtime/route-patch.json b/apps/workflows/overlays/aws-local-runtime/route-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/route-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] From 84778801c0a3e986290426f8c4edc9edbaf6a962 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:15:01 +0400 Subject: [PATCH 255/411] Updated App-Proxy configuration --- .../overlays/aws-local-runtime/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..4ca8c02 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,4 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: From 0ec696bd9b82d75ea87b4dc1b975cc0e19cc7923 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:15:04 +0400 Subject: [PATCH 256/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 73bd27215c16948cfe188b7e72bb843df3fe4789 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:15:05 +0400 Subject: [PATCH 257/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..8869d6d --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: events +status: {} From 8275ac00a6d75c526a6e7947c1b891bf11e7f6ed Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:15:07 +0400 Subject: [PATCH 258/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From a6ebbce6b2e9d17d4c6e6e5a84be9321632c427b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:15:09 +0400 Subject: [PATCH 259/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c0618bd --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: workflows +status: {} From 9f0a4d396467fed8a7a800f1fb39350b9c230cbd Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:15:11 +0400 Subject: [PATCH 260/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From ad8244a4929d06be0ec6094ae5b116b3fa5b212f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:15:12 +0400 Subject: [PATCH 261/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a5b4093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From e99ed853efeac97474b4d215df69478a409cb6a1 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:15:14 +0400 Subject: [PATCH 262/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From fc089e10d2fa96f5b2434830262f281cd4c99886 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 21:15:17 +0400 Subject: [PATCH 263/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From 77f99a39f49997a0e8c20cf3d2c0792581587ef2 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 17:16:03 +0000 Subject: [PATCH 264/411] commiting isc app 'in-cluster' to 'aws-local-runtime' adding 'resources' dir to shared-config repo commiting isc readme file --- shared-config/README.md | 44 +++++++++++++++++++ .../resources/all-runtimes-all-clusters/DUMMY | 0 .../aws-local-runtime/in-cluster.yaml | 28 ++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 shared-config/README.md create mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY create mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml diff --git a/shared-config/README.md b/shared-config/README.md new file mode 100644 index 0000000..85ee1f9 --- /dev/null +++ b/shared-config/README.md @@ -0,0 +1,44 @@ +# codefresh-runtime_internal-shared-config +This repository stores configuration files that can be shared between runtimes. + +Configuration definitions that will be stored in this repository: +- Argo CD managed cluster +- Git sources +- Codefresh 3rd party integrations configuration +- Ouath2 Authentications applications + +Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. + +## Repository structure +The base path of the repository will include 2 directories - resources and runtimes. +The resources directory will include the following sub-directories: +- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters +- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster +- runtimes/ - a folder for each specific runtime. + +Each manifest will be applied to all clusters in a specific runtime +both control-plane and the runtime-specific directories are optional. +The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml + + +``` +├── resources <───────────────────┐ +│ ├── all-runtimes-all-clusters │ +│ │ ├── manifest1.yaml │ +│ │ └── subfolder │ +│ │ └── manifest2.yaml │ +│ ├── control-planes │ +│ │ └── manifest3.yaml │ +│ ├── runtimes │ +│ │ ├── runtime1 │ +│ │ │ └── manifest4.yaml │ +│ │ └── runtime2 │ +│ │ └── manifest5.yaml │ +│ └── manifest6.yaml │ +└── runtimes │ + ├── runtime1 │ # references by /apps/runtime1/config_dir.json + │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster + │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster + └── runtime2 │ # references by /apps/runtime2/config_dir.json + └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster +``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY new file mode 100644 index 0000000..e69de29 diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml new file mode 100644 index 0000000..0581bc1 --- /dev/null +++ b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + finalizers: + - resources-finalizer.argocd.argoproj.io + labels: + codefresh.io/entity: internal-config + codefresh.io/internal: "true" + name: in-cluster +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + project: default + source: + directory: + include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' + recurse: true + path: shared-config/resources + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + targetRevision: HEAD + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true + syncOptions: + - allowEmpty=true From e6393ed77d77900ecd708d559734dcd749bed5ab Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 15 Nov 2022 17:16:04 +0000 Subject: [PATCH 265/411] installed app 'isc' on project 'aws-local-runtime' installation-path: '/' --- apps/isc/aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/isc/aws-local-runtime/config_dir.json diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..1c85d6e --- /dev/null +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "isc", + "userGivenName": "isc", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "shared-config/runtimes/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "shared-configuration", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd.argoproj.io/sync-wave": "10" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 39f36ca3db9f26f46f8f6a367ab8f8473143f881 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 15 Nov 2022 17:16:20 +0000 Subject: [PATCH 266/411] ISC Commit --- ...ts-key4m62l-aws-local-runtime.sealing-key.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key4m62l-aws-local-runtime.sealing-key.yaml diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key4m62l-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key4m62l-aws-local-runtime.sealing-key.yaml new file mode 100644 index 0000000..994ecfb --- /dev/null +++ b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key4m62l-aws-local-runtime.sealing-key.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + creationTimestamp: 2022-11-15T17:15:12.000Z + labels: + sealedsecrets.bitnami.com/sealed-secrets-key: active + codefresh.io/sealing-key-id: 6373c9601d34d30030cfbbbc + codefresh.io/sealing-key: 'true' + codefresh.io/runtime-name: aws-local-runtime + name: sealed-secrets-key4m62l +data: + tls.crt: >- + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6VENDQXJXZ0F3SUJBZ0lSQU1ic1JZZ0hOb3kwMmF1SEpLSkQxUnd3RFFZSktvWklodmNOQVFFTEJRQXcKQURBZUZ3MHlNakV4TVRVeE56RTFNVEphRncwek1qRXhNVEl4TnpFMU1USmFNQUF3Z2dJaU1BMEdDU3FHU0liMwpEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUUNtYmJiSEdRUWhVQ2JHb2ovUmMxSEhlbzdZaWdJdHAvQWttYnhjClFBbitiVmJVaFFmYlNRdEF3Qzd4NjNHQ0NDeDNtSWlmQ2NtaEpHZFhaNzZSTVQzakdFajhKSUJPYUNyL2hZdzgKdXMzbHZvdXcvOFJQc2NHLys5WDE4dnZKUkQ2bDRFcWZWaXNXZ0JCSTNWZm1PeVdGUlpVVHhUdjBDd2tSZ3JNeQp1VGMzSTNWMTdpODM3bXFaTm5sQjg4alZENjYvTTYxSGFOb29yVzcyQ0ZnOG4zVWVEK0EwYW9kUEVnTGY1SHRoCk1JcHQyN3JvaFlWeEZqSE9zNzFFV0J3MXdKRlZnTnNWcDBnUTNQZEtHckhBN21ZU1k5N0wza2w3Ykl2QTB6VjIKeEVraFFqZEhEU2hZWUFCWkFrRWRGQmprTExqckRqMktwN2xSajI2cDA4RW1vWi9RYjlOSTFKTHA3aTdoK1Y1eQpmSC8xZHJ0KzIzdkxrbUdsZ0J1MEZIMllVeVNubngrSFNPWnRQYVpXaldSUjliNEhTblZBeFFYWW9ralVCTlpsClZkT2VzaDlwZ2pnYzdHa01XSDU0MXFHS2JDbTA4cUpyUGhUY2d3SlVxWHdMYkZBRU9yNFVta2puSXhtT2J5U1gKSS9aT0VWTm5scjRtck5BaWJNRkZzbjZlYndtSGQrMktGQzlLSFlZT3dYUlNxOXV5WmZuSUJ5ckZ1ZG13a3BOZwphSTJYZFdES3E5b3BXVEplakg1YVMrTTNUTHI0a3Qrd3pkWkQvNDNDUU9wWnFyMGFCdndZdGhPVWd1M2pQR3UyCng4OWdZRlB6bG5laGsrWmFETFFjbDQrelR6a0lkUzJGdkkyQTU0SlI0ZGtVbE96Y0tYd2hqUVdLT0I0V2M0UEwKYW5oU2RRSURBUUFCbzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQUFFd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZApCZ05WSFE0RUZnUVVMK25JZWgwYjliTnBGUEpQckxNUFlhRGNaSEV3RFFZSktvWklodmNOQVFFTEJRQURnZ0lCCkFJVEc4N2t2ZVRyQWtlTEhtTndQeGMvWGVTL2x6L215c21TWnlzRDV2cGRZbHd5elhXT25meWRvanhXbW5PMEsKRnJQNXk2TVNabVZYcDdLOWdXUjZOUmp5ZmJQVjFtOW1JOVl5enBYNVJXbjdoMzRlMmdoYWVVUnRRRVlPYzZwUApFbHJXbDRkRnM1VjBab01hMkxMU2lOM2J2ZDFvRXY5L1BKQSt0TVBPRTFVdFpBWmpXT2UvMFhtRzZMSWN4aFlyCnVuTVVZQlZiemJTblRhdExTL2YyNnlQMEpkREwzM2xTMnhpKzJuT2VKaGFVa2N5aWVaZWZ0RS9OcjZGYWY3ZXcKODdUQ1RQTzBlQ3lKVUR6UVloK2lqY283V2ZOa1gyWmYzcFR6WW5XME1xOTkyL0VVcXJvYi96amhsTHhZQmtlegpISXJaMzVmMjkxem8xVy9lMUJTNk5rbzNhRlZmbEd4Rlh3dzNBTHNYUllQbmltZEgzMG90Ujd1K2htZU1BQ1dxCkN0dXZJNHYxTXBSNlR4N1pIM0QyMmFYTXpZMUptV24yMzRKMm56VzB6UVdRT3hQN0ZrcHNHcXRaT256STlsamcKVC9vU2xpYUYzREVUME9vRFBpZExBdlE2emk0UWFScm5xb1U5Nm1TanMyTkxnZmJZRlk2ZWxEekNJVEp0VjdVegpVNjBuNTVmMWFXV1Z4eHZqMkE2VmZSUm9PU1YzR01jd0VjZklVbGtSTjROSmswOEV1YWV3QTh2ZkIwZVBtdTFtCnJKaDhVcHNRK3o4a1FNdWdnNjRqSExNVklyQ2tKcFZQT01odERNaHJaeldhNS8rK2VyTklLejh0ZEprR2VGM2gKdGE3QVFNaHRjVlZCWEFqeVZ6aVVGc25mbGpINE1DNVArdU9QazU4Slcwb3EKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= + tls.key: >- + VsK3pMOWl2VCs0UWJ2NFJJck1nZzV2djJ2TXAxa1dsVjRrClNnOElzdzlTWXgxejM1WDJJRGVhVkZocmdtUnpnY2F2cG5PbHJTRFhEZWVPM3NkdXN1NkFIMnNiMm9EZUpxS2oKUm9GYjJqTnM5d2txVlBPYlBEbjRWd1lqWC9WcGlJazY4MlRMV2dTZ2V3N3NuWjJkVGhFYWVnQ3JnblcrbTdZMwpjNkNhMm5mRDBBT2tZUUtDQVFFQXpzTjREMWhFbWpva0twVkx2WWJmd04raDJPMm15V2h4a1k3S3k1TE1ITk16CnowdGdFanJOdDJySXkxMk1tRFFKVThqV3FsN0dVUTcxai94NEUvWURxYzdFYzRFMENCYUVQb1BuUm9IZERkOWwKeWNiTlhnaWpZMVJPVklTbzdBSExOa0JoUkVHeWZ1aGUvOXdYRVJVWmlnZVRwV0NKdldkL1A3a0JMMGd1aEM1WgpFbk5pS1YyY0xPSFFoTjZ2THNmZmJUQTU5MytKejYyY1lxNjJBbUIyeDJFZlVpYVV1ZWwxUmRLdkw1aGY1TDM4Cm1nOEN4Q2Z2QWVhVnJMZVVDbU85ZHJncnRYUk96SER2NkdvWWpldlNBWWk2N3dZL0FLUzZ0bDF6NXZ0TktxaHgKbTE1dGRKMnVKcW00MFZQcHc0eUJ5STBQTmllVzF1YUkxbS82RXJ0bWxRS0NBUUVBdUJ0LzdRLzQyWkpYT01XRApSaXN0aGVkS3VMc2NCVm9KZ2hzWEJJSEdXYmpiTTdvaTJqN25vMzZTT0prSmMrYnA4SE00Nkw5RWkwejdDNWlyCmtyVS9MSzlUWFZYdUwzQnBXRFJjMUVwMitMcnZmRmIzS3B6SlhWL0RQcDVObWNJdlQybi9GVGduZ3lwMVdzbUYKT1IrNHV2NVBSTUhoMENBOEJYbitLSUN3L1VrR2RLYUkvNXB0MFBmZWoxbE11TkFkTTJ4aXhDUXY4a2VLYzBuKwpSM1phUUd1aFU5bTZOeUFsTm9SL3UzVUZIWWg0Zjc0MngwS2NJU281R3dBRFU0OEVmTzdsRGNvRWJndElRU1h2CmRxMG11RzVMeGJ6WnlROC83ZzI4TS9UQXloVEZwL0U0WFpyUkNHWjUxUFZ0SFpLWnF0OSs1V3NpRWxwdDRVSmUKbnUyU0lRS0NBUUFDSTVlTVlSZGttUkZpdDJTdk0wUUJWTTd4MVpPU0pkaDI3d2srRGVpNnE1eXZtbElHSGtHZQpraVk5cEZ3ZC92dlJ1QlF3Y3dhT05COXFPK3hxR0hOMVFFUmNCWXdxUVVGZy9EQmFWR0diRVNLV2NjNFNHUGpICndFbUhLbEF0RU4rdlVmOHZtNVpqSmJoRjRWc0R2RG9sYVdxbm5WWVBkWkNsY2g2SEJMSW1mK3cvK3AyYlcvS1AKckU1aDhZUFNjaExucUVZUlAycUhrWDQ2cnlBRzZrU1FUM3JwZUtpMU82c1E2OXNRSFAxdytsNHdvZE1mZ0dKQwpuTVlUb1ZxUXVQTnUxUHp1eGFORERqQU5NWHZMakJNQ0hRNENCd2lEMHpCelRvZ3liWXNnMDlsSkNETU5yOHZyCmJub1JBRk04eUtsWEQ4NkdldVplbHNmM24vVHdXS3Y1QW9JQkFRRE5jRFk3TmtmdERaQjA4Q1FJck1qOGxEOHkKMEJtTjArTzBLeVJkMUZsVm5MUnJBU0pFRDJybEljVWZna1FzRGNrQ3lCRUxIRmRYTUQvVTdjK0doTXdmVm1ZTwpVbUoyS09SWmJmNnBCcUtLQUtUMGw3L0VGdW5pUzducWNVc0RLOC9mbW12N0F1QzdJMkltTll2bEcrR2xSaGwrCm9WWktlNFEvNllVTVdEbis5dzRPa2lhUVRNSWx4ZGNmTkhvc1drTWxlcUxic0o1blRUR2JjNkpqUHFucnB1Nm8KbGlLSXFUeldPOWlBMHF6WE9Ja3NkK1EreG9mV0JrSGxvN0haTXprV01nWUwrTVd2UkdDODJ3ZWNiM2dTTGdWRApIQ2JCaXNCWlRKUy9mdTlRNUtzTjNhTHlwZ21xWGY2YzlxQUMrQlRJWWM4K2ZwNjV5VVBScjVEbzVxaXUKLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K From 7b043fad4fceb3e4e84cc82639cc6dc48bb6320d Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 15 Nov 2022 21:17:22 +0400 Subject: [PATCH 267/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 4ca8c02..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From fd5202535b4af0a6027bd868e6222413d6bb9c52 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 18 Nov 2022 16:56:46 +0000 Subject: [PATCH 268/411] removed runtime 'aws-local-runtime' from isc repo --- .../aws-local-runtime/in-cluster.yaml | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml deleted file mode 100644 index 0581bc1..0000000 --- a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: "true" - name: in-cluster -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - project: default - source: - directory: - include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true From 8ce5cb02cbdf0fa3ae236bc6c5ae01b944264dc3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 18 Nov 2022 20:56:49 +0400 Subject: [PATCH 269/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 13 -- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 23 ---- .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/internal-router/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 32 ----- .../aws-local-runtime/kustomization.yaml | 6 - apps/isc/aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 50 -------- .../aws-local-runtime/resources/rbac.yaml | 35 ------ .../aws-local-runtime/resources/sensor.yaml | 92 -------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 28 ----- .../aws-local-runtime/resources/rbac.yaml | 37 ------ .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 12 -- .../aws-local-runtime/route-patch.json | 12 -- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 51 -------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ 46 files changed, 1044 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/internal-router/base/kustomization.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json delete mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/route-patch.json create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 0ae8850..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.13 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 01ece4e..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 8869d6d..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index e7341c0..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.13 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml deleted file mode 100644 index b244aee..0000000 --- a/apps/internal-router/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.13 diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json deleted file mode 100644 index 67b3a37..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "internal-router", - "userGivenName": "internal-router", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/internal-router/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "10" - } -} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index c45f381..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-internal-router-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: internal-router - port: - number: 80 - path: /webhooks - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /workflows - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /app-proxy - pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index f01b430..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 1c85d6e..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a5b4093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index 19ae0c4..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.13 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index c8774f3..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.13 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c0618bd..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index 19f710f..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.13 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 9c44d03..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: route-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base diff --git a/apps/workflows/overlays/aws-local-runtime/route-patch.json b/apps/workflows/overlays/aws-local-runtime/route-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/route-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 a541e7d..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.13 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index b3967ba..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,51 +0,0 @@ -apiVersion: v1 -data: - base-url: https://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.13 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.13 - - name: workflows - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.13 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.13 - - name: internal-router - syncWave: 10 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.13 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.13 - defVersion: null - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - requiredCLIVersion: ^0.1.0 - version: 0.1.13 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From d779b7f89ca1494abe6db0655d55555818846340 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 18 Nov 2022 21:01:53 +0400 Subject: [PATCH 270/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From fa855fa9b27510b2c9500ab644b5693d4b700797 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 22 Nov 2022 13:13:47 +0400 Subject: [PATCH 271/411] Delete shared-config directory --- shared-config/README.md | 44 ------------------- .../resources/all-runtimes-all-clusters/DUMMY | 0 ...ey4m62l-aws-local-runtime.sealing-key.yaml | 15 ------- 3 files changed, 59 deletions(-) delete mode 100644 shared-config/README.md delete mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY delete mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key4m62l-aws-local-runtime.sealing-key.yaml diff --git a/shared-config/README.md b/shared-config/README.md deleted file mode 100644 index 85ee1f9..0000000 --- a/shared-config/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# codefresh-runtime_internal-shared-config -This repository stores configuration files that can be shared between runtimes. - -Configuration definitions that will be stored in this repository: -- Argo CD managed cluster -- Git sources -- Codefresh 3rd party integrations configuration -- Ouath2 Authentications applications - -Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. - -## Repository structure -The base path of the repository will include 2 directories - resources and runtimes. -The resources directory will include the following sub-directories: -- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters -- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster -- runtimes/ - a folder for each specific runtime. - -Each manifest will be applied to all clusters in a specific runtime -both control-plane and the runtime-specific directories are optional. -The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml - - -``` -├── resources <───────────────────┐ -│ ├── all-runtimes-all-clusters │ -│ │ ├── manifest1.yaml │ -│ │ └── subfolder │ -│ │ └── manifest2.yaml │ -│ ├── control-planes │ -│ │ └── manifest3.yaml │ -│ ├── runtimes │ -│ │ ├── runtime1 │ -│ │ │ └── manifest4.yaml │ -│ │ └── runtime2 │ -│ │ └── manifest5.yaml │ -│ └── manifest6.yaml │ -└── runtimes │ - ├── runtime1 │ # references by /apps/runtime1/config_dir.json - │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - └── runtime2 │ # references by /apps/runtime2/config_dir.json - └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster -``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY deleted file mode 100644 index e69de29..0000000 diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key4m62l-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key4m62l-aws-local-runtime.sealing-key.yaml deleted file mode 100644 index 994ecfb..0000000 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-key4m62l-aws-local-runtime.sealing-key.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - creationTimestamp: 2022-11-15T17:15:12.000Z - labels: - sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 6373c9601d34d30030cfbbbc - codefresh.io/sealing-key: 'true' - codefresh.io/runtime-name: aws-local-runtime - name: sealed-secrets-key4m62l -data: - tls.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6VENDQXJXZ0F3SUJBZ0lSQU1ic1JZZ0hOb3kwMmF1SEpLSkQxUnd3RFFZSktvWklodmNOQVFFTEJRQXcKQURBZUZ3MHlNakV4TVRVeE56RTFNVEphRncwek1qRXhNVEl4TnpFMU1USmFNQUF3Z2dJaU1BMEdDU3FHU0liMwpEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUUNtYmJiSEdRUWhVQ2JHb2ovUmMxSEhlbzdZaWdJdHAvQWttYnhjClFBbitiVmJVaFFmYlNRdEF3Qzd4NjNHQ0NDeDNtSWlmQ2NtaEpHZFhaNzZSTVQzakdFajhKSUJPYUNyL2hZdzgKdXMzbHZvdXcvOFJQc2NHLys5WDE4dnZKUkQ2bDRFcWZWaXNXZ0JCSTNWZm1PeVdGUlpVVHhUdjBDd2tSZ3JNeQp1VGMzSTNWMTdpODM3bXFaTm5sQjg4alZENjYvTTYxSGFOb29yVzcyQ0ZnOG4zVWVEK0EwYW9kUEVnTGY1SHRoCk1JcHQyN3JvaFlWeEZqSE9zNzFFV0J3MXdKRlZnTnNWcDBnUTNQZEtHckhBN21ZU1k5N0wza2w3Ykl2QTB6VjIKeEVraFFqZEhEU2hZWUFCWkFrRWRGQmprTExqckRqMktwN2xSajI2cDA4RW1vWi9RYjlOSTFKTHA3aTdoK1Y1eQpmSC8xZHJ0KzIzdkxrbUdsZ0J1MEZIMllVeVNubngrSFNPWnRQYVpXaldSUjliNEhTblZBeFFYWW9ralVCTlpsClZkT2VzaDlwZ2pnYzdHa01XSDU0MXFHS2JDbTA4cUpyUGhUY2d3SlVxWHdMYkZBRU9yNFVta2puSXhtT2J5U1gKSS9aT0VWTm5scjRtck5BaWJNRkZzbjZlYndtSGQrMktGQzlLSFlZT3dYUlNxOXV5WmZuSUJ5ckZ1ZG13a3BOZwphSTJYZFdES3E5b3BXVEplakg1YVMrTTNUTHI0a3Qrd3pkWkQvNDNDUU9wWnFyMGFCdndZdGhPVWd1M2pQR3UyCng4OWdZRlB6bG5laGsrWmFETFFjbDQrelR6a0lkUzJGdkkyQTU0SlI0ZGtVbE96Y0tYd2hqUVdLT0I0V2M0UEwKYW5oU2RRSURBUUFCbzBJd1FEQU9CZ05WSFE4QkFmOEVCQU1DQUFFd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZApCZ05WSFE0RUZnUVVMK25JZWgwYjliTnBGUEpQckxNUFlhRGNaSEV3RFFZSktvWklodmNOQVFFTEJRQURnZ0lCCkFJVEc4N2t2ZVRyQWtlTEhtTndQeGMvWGVTL2x6L215c21TWnlzRDV2cGRZbHd5elhXT25meWRvanhXbW5PMEsKRnJQNXk2TVNabVZYcDdLOWdXUjZOUmp5ZmJQVjFtOW1JOVl5enBYNVJXbjdoMzRlMmdoYWVVUnRRRVlPYzZwUApFbHJXbDRkRnM1VjBab01hMkxMU2lOM2J2ZDFvRXY5L1BKQSt0TVBPRTFVdFpBWmpXT2UvMFhtRzZMSWN4aFlyCnVuTVVZQlZiemJTblRhdExTL2YyNnlQMEpkREwzM2xTMnhpKzJuT2VKaGFVa2N5aWVaZWZ0RS9OcjZGYWY3ZXcKODdUQ1RQTzBlQ3lKVUR6UVloK2lqY283V2ZOa1gyWmYzcFR6WW5XME1xOTkyL0VVcXJvYi96amhsTHhZQmtlegpISXJaMzVmMjkxem8xVy9lMUJTNk5rbzNhRlZmbEd4Rlh3dzNBTHNYUllQbmltZEgzMG90Ujd1K2htZU1BQ1dxCkN0dXZJNHYxTXBSNlR4N1pIM0QyMmFYTXpZMUptV24yMzRKMm56VzB6UVdRT3hQN0ZrcHNHcXRaT256STlsamcKVC9vU2xpYUYzREVUME9vRFBpZExBdlE2emk0UWFScm5xb1U5Nm1TanMyTkxnZmJZRlk2ZWxEekNJVEp0VjdVegpVNjBuNTVmMWFXV1Z4eHZqMkE2VmZSUm9PU1YzR01jd0VjZklVbGtSTjROSmswOEV1YWV3QTh2ZkIwZVBtdTFtCnJKaDhVcHNRK3o4a1FNdWdnNjRqSExNVklyQ2tKcFZQT01odERNaHJaeldhNS8rK2VyTklLejh0ZEprR2VGM2gKdGE3QVFNaHRjVlZCWEFqeVZ6aVVGc25mbGpINE1DNVArdU9QazU4Slcwb3EKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= - tls.key: >- - VsK3pMOWl2VCs0UWJ2NFJJck1nZzV2djJ2TXAxa1dsVjRrClNnOElzdzlTWXgxejM1WDJJRGVhVkZocmdtUnpnY2F2cG5PbHJTRFhEZWVPM3NkdXN1NkFIMnNiMm9EZUpxS2oKUm9GYjJqTnM5d2txVlBPYlBEbjRWd1lqWC9WcGlJazY4MlRMV2dTZ2V3N3NuWjJkVGhFYWVnQ3JnblcrbTdZMwpjNkNhMm5mRDBBT2tZUUtDQVFFQXpzTjREMWhFbWpva0twVkx2WWJmd04raDJPMm15V2h4a1k3S3k1TE1ITk16CnowdGdFanJOdDJySXkxMk1tRFFKVThqV3FsN0dVUTcxai94NEUvWURxYzdFYzRFMENCYUVQb1BuUm9IZERkOWwKeWNiTlhnaWpZMVJPVklTbzdBSExOa0JoUkVHeWZ1aGUvOXdYRVJVWmlnZVRwV0NKdldkL1A3a0JMMGd1aEM1WgpFbk5pS1YyY0xPSFFoTjZ2THNmZmJUQTU5MytKejYyY1lxNjJBbUIyeDJFZlVpYVV1ZWwxUmRLdkw1aGY1TDM4Cm1nOEN4Q2Z2QWVhVnJMZVVDbU85ZHJncnRYUk96SER2NkdvWWpldlNBWWk2N3dZL0FLUzZ0bDF6NXZ0TktxaHgKbTE1dGRKMnVKcW00MFZQcHc0eUJ5STBQTmllVzF1YUkxbS82RXJ0bWxRS0NBUUVBdUJ0LzdRLzQyWkpYT01XRApSaXN0aGVkS3VMc2NCVm9KZ2hzWEJJSEdXYmpiTTdvaTJqN25vMzZTT0prSmMrYnA4SE00Nkw5RWkwejdDNWlyCmtyVS9MSzlUWFZYdUwzQnBXRFJjMUVwMitMcnZmRmIzS3B6SlhWL0RQcDVObWNJdlQybi9GVGduZ3lwMVdzbUYKT1IrNHV2NVBSTUhoMENBOEJYbitLSUN3L1VrR2RLYUkvNXB0MFBmZWoxbE11TkFkTTJ4aXhDUXY4a2VLYzBuKwpSM1phUUd1aFU5bTZOeUFsTm9SL3UzVUZIWWg0Zjc0MngwS2NJU281R3dBRFU0OEVmTzdsRGNvRWJndElRU1h2CmRxMG11RzVMeGJ6WnlROC83ZzI4TS9UQXloVEZwL0U0WFpyUkNHWjUxUFZ0SFpLWnF0OSs1V3NpRWxwdDRVSmUKbnUyU0lRS0NBUUFDSTVlTVlSZGttUkZpdDJTdk0wUUJWTTd4MVpPU0pkaDI3d2srRGVpNnE1eXZtbElHSGtHZQpraVk5cEZ3ZC92dlJ1QlF3Y3dhT05COXFPK3hxR0hOMVFFUmNCWXdxUVVGZy9EQmFWR0diRVNLV2NjNFNHUGpICndFbUhLbEF0RU4rdlVmOHZtNVpqSmJoRjRWc0R2RG9sYVdxbm5WWVBkWkNsY2g2SEJMSW1mK3cvK3AyYlcvS1AKckU1aDhZUFNjaExucUVZUlAycUhrWDQ2cnlBRzZrU1FUM3JwZUtpMU82c1E2OXNRSFAxdytsNHdvZE1mZ0dKQwpuTVlUb1ZxUXVQTnUxUHp1eGFORERqQU5NWHZMakJNQ0hRNENCd2lEMHpCelRvZ3liWXNnMDlsSkNETU5yOHZyCmJub1JBRk04eUtsWEQ4NkdldVplbHNmM24vVHdXS3Y1QW9JQkFRRE5jRFk3TmtmdERaQjA4Q1FJck1qOGxEOHkKMEJtTjArTzBLeVJkMUZsVm5MUnJBU0pFRDJybEljVWZna1FzRGNrQ3lCRUxIRmRYTUQvVTdjK0doTXdmVm1ZTwpVbUoyS09SWmJmNnBCcUtLQUtUMGw3L0VGdW5pUzducWNVc0RLOC9mbW12N0F1QzdJMkltTll2bEcrR2xSaGwrCm9WWktlNFEvNllVTVdEbis5dzRPa2lhUVRNSWx4ZGNmTkhvc1drTWxlcUxic0o1blRUR2JjNkpqUHFucnB1Nm8KbGlLSXFUeldPOWlBMHF6WE9Ja3NkK1EreG9mV0JrSGxvN0haTXprV01nWUwrTVd2UkdDODJ3ZWNiM2dTTGdWRApIQ2JCaXNCWlRKUy9mdTlRNUtzTjNhTHlwZ21xWGY2YzlxQUMrQlRJWWM4K2ZwNjV5VVBScjVEbzVxaXUKLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K From 9c3f62ea7f9940e81c320c6654e05df77bc799a1 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:15:28 +0400 Subject: [PATCH 272/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..707864f --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.14 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From 2eebebaac8a605ecaa6f1b488b42c21da0fddd47 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:15:35 +0400 Subject: [PATCH 273/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 0a7d0c09a46908b0b90d6e8d2fb35f71c1db7e97 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:15:37 +0400 Subject: [PATCH 274/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 52 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 ++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..9cdd019 --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,52 @@ +apiVersion: v1 +data: + base-url: https://philipp-platform.ngrok.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.14 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.14 + - name: workflows + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.14 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.14 + - name: internal-router + syncWave: 10 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.14 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.14 + defVersion: null + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: http://philipp.hybrid-team.cf-cd.com + ref: "" + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + requiredCLIVersion: ^0.1.0 + version: 0.1.14 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From e7e06fe8b1963c4db8a721f582e5b3fbe5d9b16b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:15:43 +0400 Subject: [PATCH 275/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..dd5287a --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.14 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From d09ad1eccc631910eb2389f1a6de8058d27a3b5d Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:16 +0400 Subject: [PATCH 276/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..d8b0e27 --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.14 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 0c19f92c0c27d3542c8712e1739df6e7288fa868 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:17 +0400 Subject: [PATCH 277/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..341784d --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.14 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 2a904bc7aaaa964e3e5b602492100ef986e298a9 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:18 +0400 Subject: [PATCH 278/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..204852e --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.14 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From ebee9a2bc1b77fc8b3ec946ee17e7ed9afb0f00b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:20 +0400 Subject: [PATCH 279/411] installed app 'internal-router' on project 'aws-local-runtime' installation-path: '/' --- apps/internal-router/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/internal-router/base/kustomization.yaml create mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json create mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml new file mode 100644 index 0000000..2b8507e --- /dev/null +++ b/apps/internal-router/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.14 diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..67b3a37 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "internal-router", + "userGivenName": "internal-router", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/internal-router/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "10" + } +} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From b83bd851dcf01dc1e26efd6c41dbe1024918b61a Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:21 +0400 Subject: [PATCH 280/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..13bf318 --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.14 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 16354a293a817214b085cc4dc51e01c5a4bfdb3f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:23 +0400 Subject: [PATCH 281/411] Created Internal Router Ingresses --- .../overlays/aws-local-runtime/ingress.yaml | 32 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 1 + 2 files changed, 33 insertions(+) create mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..c45f381 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,32 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-internal-router-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: internal-router + port: + number: 80 + path: /webhooks + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /workflows + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /app-proxy + pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml index a6191ea..f01b430 100644 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -3,3 +3,4 @@ kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From 262000a8c2fd9a0d956bae978b36a372692d6727 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:24 +0400 Subject: [PATCH 282/411] Configured Argo Workflows --- .../overlays/aws-local-runtime/kustomization.yaml | 7 +++++++ .../overlays/aws-local-runtime/route-patch.json | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/route-patch.json diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..9c44d03 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: route-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base diff --git a/apps/workflows/overlays/aws-local-runtime/route-patch.json b/apps/workflows/overlays/aws-local-runtime/route-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/route-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] From 59ff62629c43f3b2f13db981d06d24c176a758c3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:25 +0400 Subject: [PATCH 283/411] Updated App-Proxy configuration --- .../overlays/aws-local-runtime/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..4ca8c02 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,4 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: From ef78490df247df7eab0d0569245cfa53212fabe7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:27 +0400 Subject: [PATCH 284/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 842c2a61904df9fdbf5926b384c78e26d0a0aa6d Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:28 +0400 Subject: [PATCH 285/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..8869d6d --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: events +status: {} From d81293fad9443c32154861fa1705476a08c1123b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:29 +0400 Subject: [PATCH 286/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 2c6c26055e099288701ef3d577c6ffc36a6814a7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:31 +0400 Subject: [PATCH 287/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c0618bd --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: workflows +status: {} From 1008597a3a3e5756944ac7124531456c8995fba3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:32 +0400 Subject: [PATCH 288/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From bd9aa94bf53914a26f693c24c319a510627bc9c3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:33 +0400 Subject: [PATCH 289/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a5b4093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From bde2f37daaa1a59bf9be9605e83865808692546f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:35 +0400 Subject: [PATCH 290/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 49c05dcacf0870a814bf371096fef6856f2b58ac Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 13:16:38 +0400 Subject: [PATCH 291/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From 0734dddec82a35668decaf58b060082256923eeb Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 22 Nov 2022 14:35:26 +0400 Subject: [PATCH 292/411] Delete apps directory --- apps/README.md | 27 ------ apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 13 --- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 23 ----- .../aws-local-runtime/resources/sensor.yaml | 42 --------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 5 - apps/internal-router/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../overlays/aws-local-runtime/ingress.yaml | 32 ------- .../aws-local-runtime/kustomization.yaml | 6 -- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 50 ---------- .../aws-local-runtime/resources/rbac.yaml | 35 ------- .../aws-local-runtime/resources/sensor.yaml | 92 ------------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 28 ------ .../aws-local-runtime/resources/rbac.yaml | 37 -------- .../aws-local-runtime/resources/sensor.yaml | 42 --------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 12 --- .../aws-local-runtime/route-patch.json | 12 --- 34 files changed, 676 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/internal-router/base/kustomization.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json delete mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/route-patch.json 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 204852e..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.14 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 4ca8c02..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 8869d6d..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index dd5287a..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.14 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml deleted file mode 100644 index 2b8507e..0000000 --- a/apps/internal-router/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.14 diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json deleted file mode 100644 index 67b3a37..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "internal-router", - "userGivenName": "internal-router", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/internal-router/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "10" - } -} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index c45f381..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-internal-router-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: internal-router - port: - number: 80 - path: /webhooks - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /workflows - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /app-proxy - pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index f01b430..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a5b4093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index d8b0e27..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.14 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index 13bf318..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.14 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c0618bd..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index 341784d..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.14 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 9c44d03..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: route-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base diff --git a/apps/workflows/overlays/aws-local-runtime/route-patch.json b/apps/workflows/overlays/aws-local-runtime/route-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/route-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] From 87d3ffe48c28080a499d2c356611e8ef9ff05963 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 22 Nov 2022 14:35:33 +0400 Subject: [PATCH 293/411] Delete bootstrap directory --- bootstrap/argo-cd.yaml | 40 -------------- bootstrap/argo-cd/kustomization.yaml | 17 ------ bootstrap/aws-local-runtime.yaml | 52 ------------------- bootstrap/cluster-resources.yaml | 48 ----------------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 -- .../in-cluster/aws-local-runtime-ns.yaml | 9 ---- bootstrap/root.yaml | 41 --------------- 8 files changed, 211 deletions(-) delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml diff --git a/bootstrap/argo-cd.yaml b/bootstrap/argo-cd.yaml deleted file mode 100644 index 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 707864f..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.14 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 9cdd019..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,52 +0,0 @@ -apiVersion: v1 -data: - base-url: https://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.14 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.14 - - name: workflows - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.14 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.14 - - name: internal-router - syncWave: 10 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.14 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.14 - defVersion: null - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: http://philipp.hybrid-team.cf-cd.com - ref: "" - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - requiredCLIVersion: ^0.1.0 - version: 0.1.14 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true -status: - health: {} - summary: {} - sync: - comparedTo: - destination: {} - source: - repoURL: "" - status: "" From 255f7bcde6483ae00fd5253ca2a03d35d9ced2cd Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 22 Nov 2022 14:35:40 +0400 Subject: [PATCH 294/411] Delete projects directory --- projects/README.md | 21 ------ projects/aws-local-runtime.yaml | 119 -------------------------------- 2 files changed, 140 deletions(-) delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From b8d252a2bebed22ad0d8c6e2cf31803ebdbc86fd Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:38:51 +0400 Subject: [PATCH 295/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..707864f --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.14 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From 97b1670c270f5ba604e3ac6559ddb8c49c49f43e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:38:59 +0400 Subject: [PATCH 296/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 2cba0d659bdcb1d7d95417aa14d30d55d29f127d Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:01 +0400 Subject: [PATCH 297/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 52 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 ++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..00e73f8 --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,52 @@ +apiVersion: v1 +data: + base-url: https://g.codefresh.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.14 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.14 + - name: workflows + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.14 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.14 + - name: internal-router + syncWave: 10 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.14 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.14 + defVersion: null + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: http://philipp.hybrid-team.cf-cd.com + ref: "" + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + requiredCLIVersion: ^0.1.0 + version: 0.1.14 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 5a31716f3037facdf801714e636c0a933ef138a5 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:07 +0400 Subject: [PATCH 298/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..dd5287a --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.14 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From acc7f61dcd427d98335a01f23ecf9451e2db6502 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:47 +0400 Subject: [PATCH 299/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..d8b0e27 --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.14 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 325861a359aeb92bfd40c481f34f63c281152087 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:48 +0400 Subject: [PATCH 300/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..341784d --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.14 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 1bbd14249fb30936be945451e3e7138a6ce60ce7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:50 +0400 Subject: [PATCH 301/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..204852e --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.14 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From fa748ba00a6babf50f25f7f7bb2a350bc986433b Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:51 +0400 Subject: [PATCH 302/411] installed app 'internal-router' on project 'aws-local-runtime' installation-path: '/' --- apps/internal-router/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/internal-router/base/kustomization.yaml create mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json create mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml new file mode 100644 index 0000000..2b8507e --- /dev/null +++ b/apps/internal-router/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.14 diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..67b3a37 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "internal-router", + "userGivenName": "internal-router", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/internal-router/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "10" + } +} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 59b2d0f63bc0905db3018bc7af582645a05ba151 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:52 +0400 Subject: [PATCH 303/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..13bf318 --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.14 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 743dc88d3f33302d0fab8e0aa018a193d2a488f4 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:54 +0400 Subject: [PATCH 304/411] Created Internal Router Ingresses --- .../overlays/aws-local-runtime/ingress.yaml | 32 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 1 + 2 files changed, 33 insertions(+) create mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..c45f381 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,32 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-internal-router-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: internal-router + port: + number: 80 + path: /webhooks + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /workflows + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /app-proxy + pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml index a6191ea..f01b430 100644 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -3,3 +3,4 @@ kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From 87650b84f5e0a9a5865da7fbd8cabb905678b548 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:55 +0400 Subject: [PATCH 305/411] Configured Argo Workflows --- .../overlays/aws-local-runtime/kustomization.yaml | 7 +++++++ .../overlays/aws-local-runtime/route-patch.json | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/route-patch.json diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..9c44d03 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: route-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base diff --git a/apps/workflows/overlays/aws-local-runtime/route-patch.json b/apps/workflows/overlays/aws-local-runtime/route-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/route-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] From 2e8cfc91370a4b4c5918b5a437485b68949117e5 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:57 +0400 Subject: [PATCH 306/411] Updated App-Proxy configuration --- .../overlays/aws-local-runtime/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..d89a92d 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,4 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://g.codefresh.io + - cors=https://g.codefresh.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: From 4e3236de00c3089f2501acb80db243039f4407fc Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:58 +0400 Subject: [PATCH 307/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 392b48af53467f92b947e7d8d2eb9f877987aa21 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:39:59 +0400 Subject: [PATCH 308/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c8ac001 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://g.codefresh.io/2.0/api/events + name: events +status: {} From b09f792b902178f77b8c8964b92d1dbda2bd1a77 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:40:02 +0400 Subject: [PATCH 309/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From d9fe83124944433add4ded36601ca30187239074 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:40:04 +0400 Subject: [PATCH 310/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a816455 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://g.codefresh.io/2.0/api/events + name: workflows +status: {} From e743840c9166c207f3aed936349acdc8d33ae1ce Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:40:06 +0400 Subject: [PATCH 311/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 0852f2a8121372073ce8312fb62409ef0b09751c Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:40:07 +0400 Subject: [PATCH 312/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..812e093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://g.codefresh.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://g.codefresh.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://g.codefresh.io/2.0/api/events + name: analysisruns +status: {} From dd7225e6380a407770f2c82863902854d8aae344 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:40:09 +0400 Subject: [PATCH 313/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From d8e07d345453b08516c0ba158c44a62dccec1e8c Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 22 Nov 2022 14:40:14 +0400 Subject: [PATCH 314/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From 589bc43797bb3cac33855ad8b3eb96043e6ed635 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 16:28:57 +0400 Subject: [PATCH 315/411] Delete apps directory --- apps/README.md | 27 ------ apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 13 --- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 23 ----- .../aws-local-runtime/resources/sensor.yaml | 42 --------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 5 - apps/internal-router/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../overlays/aws-local-runtime/ingress.yaml | 32 ------- .../aws-local-runtime/kustomization.yaml | 6 -- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 50 ---------- .../aws-local-runtime/resources/rbac.yaml | 35 ------- .../aws-local-runtime/resources/sensor.yaml | 92 ------------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 28 ------ .../aws-local-runtime/resources/rbac.yaml | 37 -------- .../aws-local-runtime/resources/sensor.yaml | 42 --------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 12 --- .../aws-local-runtime/route-patch.json | 12 --- 34 files changed, 676 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/internal-router/base/kustomization.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json delete mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/route-patch.json 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 204852e..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.14 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index d89a92d..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://g.codefresh.io - - cors=https://g.codefresh.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c8ac001..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://g.codefresh.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index dd5287a..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.14 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml deleted file mode 100644 index 2b8507e..0000000 --- a/apps/internal-router/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.14 diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json deleted file mode 100644 index 67b3a37..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "internal-router", - "userGivenName": "internal-router", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/internal-router/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "10" - } -} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index c45f381..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-internal-router-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: internal-router - port: - number: 80 - path: /webhooks - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /workflows - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /app-proxy - pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index f01b430..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 812e093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://g.codefresh.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://g.codefresh.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://g.codefresh.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index d8b0e27..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.14 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index 13bf318..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.14 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a816455..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://g.codefresh.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index 341784d..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.14 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 9c44d03..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: route-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base diff --git a/apps/workflows/overlays/aws-local-runtime/route-patch.json b/apps/workflows/overlays/aws-local-runtime/route-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/route-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] From d290513cb282faffdd17e5ed61c192e51dda43c3 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 16:29:07 +0400 Subject: [PATCH 316/411] Delete bootstrap directory --- bootstrap/argo-cd.yaml | 40 -------------- bootstrap/argo-cd/kustomization.yaml | 17 ------ bootstrap/aws-local-runtime.yaml | 52 ------------------- bootstrap/cluster-resources.yaml | 48 ----------------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 -- .../in-cluster/aws-local-runtime-ns.yaml | 9 ---- bootstrap/root.yaml | 41 --------------- 8 files changed, 211 deletions(-) delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml diff --git a/bootstrap/argo-cd.yaml b/bootstrap/argo-cd.yaml deleted file mode 100644 index 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 707864f..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.14 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 00e73f8..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,52 +0,0 @@ -apiVersion: v1 -data: - base-url: https://g.codefresh.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.14 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.14 - - name: workflows - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.14 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.14 - - name: internal-router - syncWave: 10 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.14 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.14 - defVersion: null - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: http://philipp.hybrid-team.cf-cd.com - ref: "" - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - requiredCLIVersion: ^0.1.0 - version: 0.1.14 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true -status: - health: {} - summary: {} - sync: - comparedTo: - destination: {} - source: - repoURL: "" - status: "" From d9f36e7b217dcc85cab8a8576afb0122341bb8e7 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 16:29:15 +0400 Subject: [PATCH 317/411] Delete projects directory --- projects/README.md | 21 ------ projects/aws-local-runtime.yaml | 119 -------------------------------- 2 files changed, 140 deletions(-) delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From cd8b4ed9a7dc5cdaa9b37ed2cbf183231a98a5e2 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:40:52 +0400 Subject: [PATCH 318/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..c5754a2 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.15 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From 7da2255c179869d86462f4572e10fdccb2532d76 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:40:59 +0400 Subject: [PATCH 319/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From da5ff99ff7bee84ae367bbb84ce75326418f22dd Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:00 +0400 Subject: [PATCH 320/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 52 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 ++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..004978c --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,52 @@ +apiVersion: v1 +data: + base-url: https://philipp-platform.ngrok.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.15 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.15 + - name: workflows + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.15 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.15 + - name: internal-router + syncWave: 10 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.15 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.15 + defVersion: null + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + ref: "" + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + requiredCLIVersion: ^0.1.0 + version: 0.1.15 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From ef12516e93179bcfe64f397cf1dd7fe2bb3a6c10 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:06 +0400 Subject: [PATCH 321/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..0adca39 --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.15 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From a257ba4661c11aa9abb3417ed218288930ec0cce Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:48 +0400 Subject: [PATCH 322/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..e10a479 --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.15 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From b00c4c85c0a7f6e4402f88509650b150f1372cc8 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:49 +0400 Subject: [PATCH 323/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..eb50fa5 --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.15 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 2b093a77c1afe26fbc1c5b4ade6382683248e2f2 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:50 +0400 Subject: [PATCH 324/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..fc78fcb --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.15 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From ca912cc540c5a8f7a383ad503ff499ce20903589 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:52 +0400 Subject: [PATCH 325/411] installed app 'internal-router' on project 'aws-local-runtime' installation-path: '/' --- apps/internal-router/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/internal-router/base/kustomization.yaml create mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json create mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml new file mode 100644 index 0000000..1465e1a --- /dev/null +++ b/apps/internal-router/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.15 diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..67b3a37 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "internal-router", + "userGivenName": "internal-router", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/internal-router/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "10" + } +} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From cab9542faa6b1fc1b9e9e26085ee953003c4ca64 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:53 +0400 Subject: [PATCH 326/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..24c0f7c --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.15 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 45fd896aece208758d141ff220329d7a1d31c4b3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:54 +0400 Subject: [PATCH 327/411] Created Internal Router Ingresses --- .../overlays/aws-local-runtime/ingress.yaml | 32 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 1 + 2 files changed, 33 insertions(+) create mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..c45f381 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,32 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-internal-router-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: internal-router + port: + number: 80 + path: /webhooks + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /workflows + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /app-proxy + pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml index a6191ea..f01b430 100644 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -3,3 +3,4 @@ kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From 6d972d5b4a24536667b929722aac2ed533991d50 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:56 +0400 Subject: [PATCH 328/411] Configured Argo Workflows --- .../overlays/aws-local-runtime/kustomization.yaml | 7 +++++++ .../overlays/aws-local-runtime/route-patch.json | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/route-patch.json diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..9c44d03 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: route-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base diff --git a/apps/workflows/overlays/aws-local-runtime/route-patch.json b/apps/workflows/overlays/aws-local-runtime/route-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/route-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] From fdfbdb425bdad260e4a42a6925005e59c8e5fa0f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:57 +0400 Subject: [PATCH 329/411] Updated App-Proxy configuration --- .../overlays/aws-local-runtime/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..4ca8c02 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,4 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: From 69fa48a5613766627fac7d406de33083467c5c7f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:41:58 +0400 Subject: [PATCH 330/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 88fe29d328bb9d0afc741a5c716e35b41f813dc7 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:42:00 +0400 Subject: [PATCH 331/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..8869d6d --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: events +status: {} From 0225fec0ea34c9186daea82b48f5010762973041 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:42:01 +0400 Subject: [PATCH 332/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From fd94f3e5e4b78d2fbfd78e2625d1a15488855cad Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:42:02 +0400 Subject: [PATCH 333/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c0618bd --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: workflows +status: {} From e0114efcdc0be7b85659eb826a6458593f1577a2 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:42:04 +0400 Subject: [PATCH 334/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 10d1a6504b688a9130a62db76ec874acd68da9f3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:42:05 +0400 Subject: [PATCH 335/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a5b4093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From ec3c7e443eeedca8a63000ae8815bc92d0723890 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:42:07 +0400 Subject: [PATCH 336/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From f832ff1a1c184bcf03f34b036f6ed23de244b3b8 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 16:42:10 +0400 Subject: [PATCH 337/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From 26722df536d26f112f141b7a0172d268e9a544ef Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 12:42:50 +0000 Subject: [PATCH 338/411] commiting isc app 'in-cluster' to 'aws-local-runtime' adding 'resources' dir to shared-config repo commiting isc readme file --- shared-config/README.md | 44 +++++++++++++++++++ .../resources/all-runtimes-all-clusters/DUMMY | 0 .../aws-local-runtime/in-cluster.yaml | 28 ++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 shared-config/README.md create mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY create mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml diff --git a/shared-config/README.md b/shared-config/README.md new file mode 100644 index 0000000..85ee1f9 --- /dev/null +++ b/shared-config/README.md @@ -0,0 +1,44 @@ +# codefresh-runtime_internal-shared-config +This repository stores configuration files that can be shared between runtimes. + +Configuration definitions that will be stored in this repository: +- Argo CD managed cluster +- Git sources +- Codefresh 3rd party integrations configuration +- Ouath2 Authentications applications + +Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. + +## Repository structure +The base path of the repository will include 2 directories - resources and runtimes. +The resources directory will include the following sub-directories: +- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters +- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster +- runtimes/ - a folder for each specific runtime. + +Each manifest will be applied to all clusters in a specific runtime +both control-plane and the runtime-specific directories are optional. +The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml + + +``` +├── resources <───────────────────┐ +│ ├── all-runtimes-all-clusters │ +│ │ ├── manifest1.yaml │ +│ │ └── subfolder │ +│ │ └── manifest2.yaml │ +│ ├── control-planes │ +│ │ └── manifest3.yaml │ +│ ├── runtimes │ +│ │ ├── runtime1 │ +│ │ │ └── manifest4.yaml │ +│ │ └── runtime2 │ +│ │ └── manifest5.yaml │ +│ └── manifest6.yaml │ +└── runtimes │ + ├── runtime1 │ # references by /apps/runtime1/config_dir.json + │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster + │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster + └── runtime2 │ # references by /apps/runtime2/config_dir.json + └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster +``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY new file mode 100644 index 0000000..e69de29 diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml new file mode 100644 index 0000000..0581bc1 --- /dev/null +++ b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + finalizers: + - resources-finalizer.argocd.argoproj.io + labels: + codefresh.io/entity: internal-config + codefresh.io/internal: "true" + name: in-cluster +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + project: default + source: + directory: + include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' + recurse: true + path: shared-config/resources + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + targetRevision: HEAD + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true + syncOptions: + - allowEmpty=true From c18a6fc91d60e6c58b14f2a17dd26e43d6f50f2a Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 12:42:51 +0000 Subject: [PATCH 339/411] installed app 'isc' on project 'aws-local-runtime' installation-path: '/' --- apps/isc/aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/isc/aws-local-runtime/config_dir.json diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..1c85d6e --- /dev/null +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "isc", + "userGivenName": "isc", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "shared-config/runtimes/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "shared-configuration", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd.argoproj.io/sync-wave": "10" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From eedde26c69a1aa57151112a352da91214cfb1622 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Thu, 24 Nov 2022 12:43:05 +0000 Subject: [PATCH 340/411] ISC Commit --- ...ts-keyzsg8k-aws-local-runtime.sealing-key.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyzsg8k-aws-local-runtime.sealing-key.yaml diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyzsg8k-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyzsg8k-aws-local-runtime.sealing-key.yaml new file mode 100644 index 0000000..872722e --- /dev/null +++ b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyzsg8k-aws-local-runtime.sealing-key.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + creationTimestamp: 2022-11-24T12:42:12.000Z + labels: + sealedsecrets.bitnami.com/sealed-secrets-key: active + codefresh.io/sealing-key-id: 637f66d644189400305f8157 + codefresh.io/sealing-key: 'true' + codefresh.io/runtime-name: aws-local-runtime + name: sealed-secrets-keyzsg8k +data: + tls.crt: >- + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6RENDQXJTZ0F3SUJBZ0lRYXJZK2x4K2xjM0tKL2pYWlQrUVNRREFOQmdrcWhraUc5dzBCQVFzRkFEQUEKTUI0WERUSXlNVEV5TkRFeU5ESXhNbG9YRFRNeU1URXlNVEV5TkRJeE1sb3dBRENDQWlJd0RRWUpLb1pJaHZjTgpBUUVCQlFBRGdnSVBBRENDQWdvQ2dnSUJBTFM3KzV0R3RKUTNUWVgwZ2YzeHFSTk0zbk10Q2xvcHhlQkp4azVMClp5cERnVWpGOHkrOEltRDIrWVpVUG1pSjVCZ1Q2emVjTVZIdjQwNXRrWVFUcW5UQklFdVlUUFJRSzFLTnQwVVkKcnAzbjM1MVFEMkEvWjhGdGhVM1U0RGtTVXRJY2tDQ0s5RmplaEs3M3hyaGQ1UXVvNEh2RnJLMXM2NTVxUzd2RQpKUzQ2QUJBcThlVEM1bW1veC90SVM0dzZSOVFiMlBDc05hU1lMeU03NXI5Y24wdU5INEd1UjE4ZmRhSHYyb2tICmhSZnRKM0oxQUZ3M2dFQ05kRDdTUGNzN1g4MU9nVWoxQ0tINktTMDVRTGpDM1hrd0lKekIxZktiK1ArbmRaZ2cKZTUwRHZBbGcrQS8xbTlOenBuaXhYM0llUC9mbWVTcUNOTWNsY0ZQN2loeENEdm55blVjQWd1cFI0YXZaVkhicQpxVUhkTlVzSG1BSnF4U2J2STZkcWczNE1DOXg2Z3VOWkkzUlhHZGI1QlRZQnZSeXhPU011R2dBVllWWUl1Q0pMCnBvQk1QQlczbU9yR0JIbUdqbmtaUkU2c0tTZ3l2bFNFdzEwakI3UWNQWEdiWG9PTEVIRFg1aGtsVnR3dDA3dTkKbjM2eVBXbURYV3ptVkdzTUxJNGxDVmNOd3pjU0QvUnRETjc0NXJhZGhQdDNoNVBld2ZTczVGR1gwbTlDdXkwWgpRanYrNkgzU25WOHR0RzRMaForYi9la3p5MFZ5RG5VdnpCc3hSelFWYmhpYUpsOGZ3VzBBT0F2QS92UkYwTzhEClZOZjQvUU4vOW43QTh5b09HcGdVemRjenJnSXovQWZPQ3VQWXlTTjFNakpXM0lVcHd0MFpISS91dWZsdjMrK0QKak9PckFnTUJBQUdqUWpCQU1BNEdBMVVkRHdFQi93UUVBd0lBQVRBUEJnTlZIUk1CQWY4RUJUQURBUUgvTUIwRwpBMVVkRGdRV0JCVC8vaGdIaWErczJrNVJERUpJSVBCdmtrRURDREFOQmdrcWhraUc5dzBCQVFzRkFBT0NBZ0VBCkEybisvVFlQS1p2WGtlMU1ySTR2MFJocHIwM2w1SStuYlBPRFpuM0RVRlV2YkgvVUZneXNyS0JDM3lFaTIwR1cKZSt6T016WmRBNkxXb2dVa2t3UWlOL0xkdHYrVTI4b3dwSGxYQXB0dGRqcGc2WDMrelVCZ2tIYnN2aFR0TVhGawordDhXTjZJVmx4VkUvd3FuR2lsbnp2dzlSZUprT01ISmlac1VXTTgzTmNaNWhNUlhwZW1PMTEyc3Y5QUpSTmZiCno0VmRkOUhramxWV1N3VVo1WkFrM1FqWExvanZQalZ6dEs0a2NOWE5OOUFXNTdoWmhOQTFic2hxTG5ObHB0cXIKRTFGTXU1UFl1Sk55clhYOWc5MHEzcmNQSEJqWWlCWVpTTjVUZFoxbU1BRXpWaFFnNTdtOWI1Z1ZSL2JrbzRESQp0aEN4TC8rUlhGakxod29hWmlxMEJKUlg2MzBncWl0YmJ1MjV1c09wdXRmbldCQmIzS20wa2s0cE9xZ1dla3M3CkErSDhNcjR1azNObXFrS1hhUDk5MnhONWZSTGx4RnNlS2pscERBWlFkelBoTGlXaHlhVjM2K2ViUVZnck9ZRWEKYzB5eGVnYXBMWnVZRzIreUYwWHhHWW1VTW1Gd1d4eHdrUXovS2t3bHRNeGRMUExmUjgxMmpiSk5LNm5ickpBRwp5TElTUXI2QnRNVEo1cng5VVdtUS82b25CNHVpL1g3bklCTXN5UlFEcFF0eHIvTkFDWitSMGY1d0V1QUprSyszCnJkZEFuMVFIenE4eE1lSnpXd1JvU3cxRkpQYVU0WXl3L1RKUi9DbTlydzBMYlZVeHp6UG5GemdiTE85UHM1SWcKNWFUa1B3VW9FZDZ2U1prcUNjQUNVcXRyQU1iNVQ4K0Z5Y3hiYzRGSUdkdz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= + tls.key: >- + 9pVEJVNjIrSjI0OFdZbEE3blI3cE1Xd0FycExpUzBrVS9XCjdVWnpXdC9vM3hqOEZTSGMyNmZOSWJrdmFpUUl4L2wwODN6WkxsdkNtblF0bmM1VDk3dW5mTVpvQVRZdUhidmsKMlE3dXRVVjY1MDR6a2d1bjZXUlFUbE1yaVQvS1MrWTY0ZGxMRkFvcjBFamt5UXVYNWpMWEhVOFduR281WkRjZgpISzh6VDdrUlBJUks3d0tDQVFFQXo3WVhsQy9Rc3B3V25ZeVY1K2wzWTE2T1ZkN2FZdmdrbGwwUUJ4SkVSdUZtCjZscFZKUGFvLzhmaktHSFNlby9tZlhMeG5Mek5FZmU1YXhETSswTzFmbHhobWV5bXBnUEZyTFAwcTJiYkRUUUgKNG82MDJDM0JlZHlkNS9HbDlKUjFUK0RkQ1U2dWdJazhBUmlEUnpTRHB4TnBmQlpRcTgvT00yaHYyM09ZVUNWOQpCc2tpTU51RXVjTjhVM0hQVmV0cWRFOW5SdmJXUjV5Y0JlcVUxaExJdlBsOEhVaStvcVZDUFZtdVlGOVlsQ09qCnRLaC9qVllZSmJ4aXBWcUVNNjBXdW1DT1hqbGRiTEFKbzgydW5wdFhmMFI5cDFJOWN0OE5CVVNMWDlHUFIyb04KcWJQS25hUkttSXZOUnRGMmFJY1pxOXl5eWV2SDBiMFJxU1FpSjlOakJRS0NBUUFpV3hEU3hMU2xNVlZ3RG8vTwppM2FnY0xUcnZUSGJVZVUxMGhTRW44YW01c3Bla2llVmRoaGxoamc3SUs5SnZDTGlzclRSUEZ5NjUrR3FQNEJYCnlHNm5xSmFDNktxbWtvTFBWM2orZWV6TDBnTWNvN3A2eWdZakhhSFBpeUtlNVF6UUliTmhPdy85TG52MVg2bHkKUU0zMGpMSmwxcEk1eWZFbHhrQmpYeHV0NmVJV25senovb2tlOWY0SENmQ3NWZ0o0OTNoU0lUcEpCbUNzVjNTWApWRWN0Q3pnQk9QUk9pejFnNVlYbE1maHp4WUhKd0tWWEpTd1Q5c3JFbnRES1VkK2dzRGFVcDNJNGVERWhERUpVCmdwODVtMHFlbUxZNkhtSE1uV1lhSnJ4V01TbC9RY0pZTWFYM3pDMzFkMG51WDFCaGQ1QzZnRFh3T3FWeldsdnEKTlkxSkFvSUJBRU1sZUdYZE56Z21JV0Y1Q3hUWGNsTGJSR1FhRUxzaHdLSWpINFZKc0d6QmZRV1JnaWphM0RNagpxUmxxMWlIczF2UUM3bnhleEdSa2tybzd5aWdIOFdvUjd6TlZQMkkzb2ZWOGowSEJsRnFtVVU0NkY5Z3lvbk1FCmtMOWtiT091QW1aNktMcFRoekhpSzFXbldQanh6d1Y1endYZ0tPQUI0NFRXNUNJck1qZm1obzVsQXZxTVhGRzUKRWozZmNza3h1MDR5UlE2NXlQZUpkeDZxZ01iYmQ2MHZjYUg5M0RLei9iL2JkL1dMblJUMm1IdFVaVGVKZDNEcgpmM0E0M0xmZjRwTUpsN3g2Q3V1UjFPdnhGOXdLRjdUNnJTd2o5OTFrb2M3c0k2b3NFb2RoajEwbTAvODJGeTlOCk1tVU1YWnpZMzhHaExPTDlwN0R6ei91L3hKTGZVUWtDZ2dFQkFNOTc1RjJpU1BjWlJmU0Nuazh1R0VldnN2RUEKRjN4ZVIzdmJ3UG5wVmtuVThGa3QxY2k3ZVFQQWV2Z0hWbENMdS9yU1hTMUIrd0tjLzhLVXQ0UTJZR2JsTGlHaApzWFhkYXhjRzl1VUZ4dXJtMTlTQlZuVFg4dWc4U1M2MHBUTk1jQkV3Z01GL2dyaFVEbU1DZGVMVWtZRzROZmJTCklTaERGTWRRM0tONU9UekZNTS9Ydk0raTM3bjFtVzdwMFVKVUMwU1FTRWNiTEhoSk1UcUdIM1k5NUsxd2o2aVMKdE1TK0UvRk9OTW5sK2ZoeEZPQ25nN1FzbmN4VGZnLytzMmRYY25WMzA5cTJNOGhXMTlKMHVhaXdybVUrdWdPWApNL1huaUZzdVMyOGFkM0FsSkx5aG9GM3dpNkg3ckxKWHFNc2N5bC9ydmU0K1lsck0yN0tuVFNtOE4yOD0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K From 4a246759466252266f45136dc8a5c23f3dec1722 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 16:55:07 +0400 Subject: [PATCH 341/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 4ca8c02..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From a6ee949841744b5ecc1a035eba03d7a52d546bd6 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:00:58 +0400 Subject: [PATCH 342/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..3f71563 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io,http://localhost - env=production name: cap-app-proxy-cm kind: Kustomization From 82bf602b5b1683bfcf42455d76d96989b106e8f1 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:03:02 +0400 Subject: [PATCH 343/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 3f71563..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io,http://localhost + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From 3ffe01efce18378b860710295d6ec2a9777d6780 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:04:41 +0400 Subject: [PATCH 344/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..6cc72f9 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 - env=production name: cap-app-proxy-cm kind: Kustomization From d5ecca359c95d735e9b9bfa7c24e59aa0b2a51ee Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:11:31 +0400 Subject: [PATCH 345/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 6cc72f9..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From 3aafc06a097571fa2f3d8578400845a1dc5ba58f Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:12:30 +0400 Subject: [PATCH 346/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..6cc72f9 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 - env=production name: cap-app-proxy-cm kind: Kustomization From 53e6e5e2831360b6aaa1ae78641f3b1f64932a2a Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:16:06 +0400 Subject: [PATCH 347/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 6cc72f9..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From 4ff068b6e7895ac5f8a7e15eab0f3b8df5465bca Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:16:50 +0400 Subject: [PATCH 348/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..6cc72f9 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 - env=production name: cap-app-proxy-cm kind: Kustomization From f776c95787d420e181f268f7c281c76f5f3f9e83 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:19:49 +0400 Subject: [PATCH 349/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 6cc72f9..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From b2eed2c6832595e59c0e36a0773f728de1fa9093 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:21:46 +0400 Subject: [PATCH 350/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..6cc72f9 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 - env=production name: cap-app-proxy-cm kind: Kustomization From ef2984db17dcafa8ae87461ab037a976f2425ecf Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:29:56 +0400 Subject: [PATCH 351/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 6cc72f9..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From 9f24016d31b80b524c6dbcecb64db1588ce5e0b2 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 17:31:51 +0400 Subject: [PATCH 352/411] Update kustomization.yaml --- apps/app-proxy/base/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml index fc78fcb..204852e 100644 --- a/apps/app-proxy/base/kustomization.yaml +++ b/apps/app-proxy/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.15 +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.14 From 5d8d858e823eb738fffef49f8d57b1a7fc72d1be Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 18:26:50 +0400 Subject: [PATCH 353/411] Update kustomization.yaml --- apps/app-proxy/base/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml index 204852e..fc78fcb 100644 --- a/apps/app-proxy/base/kustomization.yaml +++ b/apps/app-proxy/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.14 +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.15 From 927eda78392e4dca709f8a9ebe6e7994c9808c2e Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 18:27:50 +0400 Subject: [PATCH 354/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..6cc72f9 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 - env=production name: cap-app-proxy-cm kind: Kustomization From 5a11d47ce1136c0b87e727274c4b8db912d35cf4 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Thu, 24 Nov 2022 18:31:34 +0400 Subject: [PATCH 355/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 6cc72f9..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From d07f75168ef766e27f9854a72ad8b0e0928d3754 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 29 Nov 2022 07:52:36 +0000 Subject: [PATCH 356/411] adding cluster 'noam' to runtime 'aws-local-runtime' --- .../runtimes/aws-local-runtime/noam.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 shared-config/runtimes/aws-local-runtime/noam.yaml diff --git a/shared-config/runtimes/aws-local-runtime/noam.yaml b/shared-config/runtimes/aws-local-runtime/noam.yaml new file mode 100644 index 0000000..7f0dc6b --- /dev/null +++ b/shared-config/runtimes/aws-local-runtime/noam.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + finalizers: + - resources-finalizer.argocd.argoproj.io + labels: + codefresh.io/entity: internal-config + codefresh.io/internal: "true" + name: noam +spec: + destination: + namespace: default + server: https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com + project: default + source: + directory: + include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml}' + recurse: true + path: shared-config/resources + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + targetRevision: HEAD + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true + syncOptions: + - allowEmpty=true From 55cceec497163f422287281a086f9f6e80404db6 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 07:52:37 +0000 Subject: [PATCH 357/411] Added project 'noam' --- projects/noam.yaml | 97 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 projects/noam.yaml diff --git a/projects/noam.yaml b/projects/noam.yaml new file mode 100644 index 0000000..cc4abcb --- /dev/null +++ b/projects/noam.yaml @@ -0,0 +1,97 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: noam + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: noam project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: noam + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/noam/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/noam/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: noam-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: noam + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 1f4424148fa46e0485e36c0eb7a3efc1ae24c6dc Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 29 Nov 2022 07:52:39 +0000 Subject: [PATCH 358/411] added cluster-resources for noam --- bootstrap/cluster-resources/noam.json | 4 ++++ bootstrap/cluster-resources/noam/DUMMY | 0 2 files changed, 4 insertions(+) create mode 100644 bootstrap/cluster-resources/noam.json create mode 100644 bootstrap/cluster-resources/noam/DUMMY diff --git a/bootstrap/cluster-resources/noam.json b/bootstrap/cluster-resources/noam.json new file mode 100644 index 0000000..e0038d2 --- /dev/null +++ b/bootstrap/cluster-resources/noam.json @@ -0,0 +1,4 @@ +{ + "name": "noam", + "server": "https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com" +} \ No newline at end of file diff --git a/bootstrap/cluster-resources/noam/DUMMY b/bootstrap/cluster-resources/noam/DUMMY new file mode 100644 index 0000000..e69de29 From 070652522e09690476ab2467d602ffec8fd7548c Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 12:22:53 +0400 Subject: [PATCH 359/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..6cc72f9 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 - env=production name: cap-app-proxy-cm kind: Kustomization From cc3296f30fa29a791096c7400d4d20e029d8af3b Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 12:36:25 +0400 Subject: [PATCH 360/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 6cc72f9..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From 92f735539c324e1b36f407f2d36134702fd29a64 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 12:37:46 +0400 Subject: [PATCH 361/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..6cc72f9 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 - env=production name: cap-app-proxy-cm kind: Kustomization From b7e854c3342fcd58bfc0c2c33737fd94975cf397 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 12:40:28 +0400 Subject: [PATCH 362/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 6cc72f9..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From 93963e1a595c4c5117f809f6186fe1e9bdd52b02 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 12:42:01 +0400 Subject: [PATCH 363/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..6cc72f9 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 - env=production name: cap-app-proxy-cm kind: Kustomization From 55ad472fd12638ce47942ef54f2f37d25be9492a Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 12:44:28 +0400 Subject: [PATCH 364/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 6cc72f9..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From 9a43849f5f024a660781cddf50ddebaba23d36d9 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 12:46:33 +0400 Subject: [PATCH 365/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..6cc72f9 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 - env=production name: cap-app-proxy-cm kind: Kustomization From e84b919c93b6d56474dce65d9acc0d69ea43bf0f Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 12:47:30 +0400 Subject: [PATCH 366/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 6cc72f9..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From 462f7d4c7130b6a20585ac92de3caae0e38cb74a Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Tue, 29 Nov 2022 08:52:41 +0000 Subject: [PATCH 367/411] added rollout-reporter for noam --- .../resources/noam-event-source.yaml | 50 ++++++++++ .../resources/noam-sensor.yaml | 92 +++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml new file mode 100644 index 0000000..e1cac65 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: noam-rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + resource: analysisruns + version: v1alpha1 + cluster: noam + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + resource: replicasets + version: v1 + cluster: noam + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + resource: rollouts + version: v1alpha1 + cluster: noam + template: + container: + name: '' + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml new file mode 100644 index 0000000..fb25c1e --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: noam-rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: noam-rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: noam-rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: noam-rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: '' + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From e478db21b8f446ef5624ac7cb343ace8ec4e43f7 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 08:52:44 +0000 Subject: [PATCH 368/411] installed app 'rollouts' on project 'noam' installation-path: '/' --- apps/rollouts/overlays/noam/config.json | 14 ++++++++++++++ apps/rollouts/overlays/noam/kustomization.yaml | 5 +++++ .../cluster-resources/noam/argo-rollouts-ns.yaml | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 apps/rollouts/overlays/noam/config.json create mode 100644 apps/rollouts/overlays/noam/kustomization.yaml create mode 100644 bootstrap/cluster-resources/noam/argo-rollouts-ns.yaml diff --git a/apps/rollouts/overlays/noam/config.json b/apps/rollouts/overlays/noam/config.json new file mode 100644 index 0000000..5c7a4a5 --- /dev/null +++ b/apps/rollouts/overlays/noam/config.json @@ -0,0 +1,14 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "argo-rollouts", + "destServer": "https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com", + "srcPath": "apps/rollouts/overlays/noam", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "false" + }, + "annotations": null +} \ No newline at end of file diff --git a/apps/rollouts/overlays/noam/kustomization.yaml b/apps/rollouts/overlays/noam/kustomization.yaml new file mode 100644 index 0000000..5c9cb76 --- /dev/null +++ b/apps/rollouts/overlays/noam/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: argo-rollouts +resources: +- ../../base diff --git a/bootstrap/cluster-resources/noam/argo-rollouts-ns.yaml b/bootstrap/cluster-resources/noam/argo-rollouts-ns.yaml new file mode 100644 index 0000000..c11b5aa --- /dev/null +++ b/bootstrap/cluster-resources/noam/argo-rollouts-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: argo-rollouts +spec: {} +status: {} From 91ee232cd4fad38cc6c3ffe191b0b3b70960c0df Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 13:09:42 +0400 Subject: [PATCH 369/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 01ece4e..6cc72f9 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 - env=production name: cap-app-proxy-cm kind: Kustomization From eca86737549f9c3e5b27b49cac09d5b2b089b23d Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Tue, 29 Nov 2022 13:14:35 +0400 Subject: [PATCH 370/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 6cc72f9..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io:80 + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From ba740b4777ba4bc72d1de1d695b11738db5e5d2c Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Wed, 14 Dec 2022 13:07:13 +0400 Subject: [PATCH 371/411] Delete apps directory --- apps/README.md | 27 ------ apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 13 --- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 23 ----- .../aws-local-runtime/resources/sensor.yaml | 42 --------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 5 - apps/internal-router/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../overlays/aws-local-runtime/ingress.yaml | 32 ------- .../aws-local-runtime/kustomization.yaml | 6 -- apps/isc/aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 50 ---------- .../resources/noam-event-source.yaml | 50 ---------- .../resources/noam-sensor.yaml | 92 ------------------- .../aws-local-runtime/resources/rbac.yaml | 35 ------- .../aws-local-runtime/resources/sensor.yaml | 92 ------------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 5 - apps/rollouts/overlays/noam/config.json | 14 --- .../rollouts/overlays/noam/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 ---- .../resources/event-source.yaml | 28 ------ .../aws-local-runtime/resources/rbac.yaml | 37 -------- .../aws-local-runtime/resources/sensor.yaml | 42 --------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 ---- .../aws-local-runtime/kustomization.yaml | 12 --- .../aws-local-runtime/route-patch.json | 12 --- 39 files changed, 855 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/internal-router/base/kustomization.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json delete mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/rollouts/overlays/noam/config.json delete mode 100644 apps/rollouts/overlays/noam/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/route-patch.json 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index fc78fcb..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.15 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 01ece4e..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 8869d6d..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index 0adca39..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.15 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml deleted file mode 100644 index 1465e1a..0000000 --- a/apps/internal-router/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.15 diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json deleted file mode 100644 index 67b3a37..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "internal-router", - "userGivenName": "internal-router", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/internal-router/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "10" - } -} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index c45f381..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-internal-router-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: internal-router - port: - number: 80 - path: /webhooks - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /workflows - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /app-proxy - pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index f01b430..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 1c85d6e..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml deleted file mode 100644 index e1cac65..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/noam-event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: noam-rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - resource: analysisruns - version: v1alpha1 - cluster: noam - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - resource: replicasets - version: v1 - cluster: noam - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - resource: rollouts - version: v1alpha1 - cluster: noam - template: - container: - name: '' - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml deleted file mode 100644 index fb25c1e..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/noam-sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: noam-rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: noam-rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: noam-rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: noam-rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: '' - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a5b4093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index e10a479..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.15 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/rollouts/overlays/noam/config.json b/apps/rollouts/overlays/noam/config.json deleted file mode 100644 index 5c7a4a5..0000000 --- a/apps/rollouts/overlays/noam/config.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "argo-rollouts", - "destServer": "https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com", - "srcPath": "apps/rollouts/overlays/noam", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "false" - }, - "annotations": null -} \ No newline at end of file diff --git a/apps/rollouts/overlays/noam/kustomization.yaml b/apps/rollouts/overlays/noam/kustomization.yaml deleted file mode 100644 index 5c9cb76..0000000 --- a/apps/rollouts/overlays/noam/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: argo-rollouts -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index 24c0f7c..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.15 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c0618bd..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index eb50fa5..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.15 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 9c44d03..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: route-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base diff --git a/apps/workflows/overlays/aws-local-runtime/route-patch.json b/apps/workflows/overlays/aws-local-runtime/route-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/route-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] From a6e8bbd61a6dce1c9e3ccbded12378d8a398b630 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Wed, 14 Dec 2022 13:07:22 +0400 Subject: [PATCH 372/411] Delete bootstrap directory --- bootstrap/argo-cd.yaml | 40 -------------- bootstrap/argo-cd/kustomization.yaml | 17 ------ bootstrap/aws-local-runtime.yaml | 52 ------------------- bootstrap/cluster-resources.yaml | 48 ----------------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 -- .../in-cluster/aws-local-runtime-ns.yaml | 9 ---- bootstrap/cluster-resources/noam.json | 4 -- bootstrap/cluster-resources/noam/DUMMY | 0 .../noam/argo-rollouts-ns.yaml | 9 ---- bootstrap/root.yaml | 41 --------------- 11 files changed, 224 deletions(-) delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/cluster-resources/noam.json delete mode 100644 bootstrap/cluster-resources/noam/DUMMY delete mode 100644 bootstrap/cluster-resources/noam/argo-rollouts-ns.yaml delete mode 100644 bootstrap/root.yaml diff --git a/bootstrap/argo-cd.yaml b/bootstrap/argo-cd.yaml deleted file mode 100644 index 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 c5754a2..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.15 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 004978c..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,52 +0,0 @@ -apiVersion: v1 -data: - base-url: https://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.15 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.15 - - name: workflows - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.15 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.15 - - name: internal-router - syncWave: 10 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.15 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.15 - defVersion: null - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com - ref: "" - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - requiredCLIVersion: ^0.1.0 - version: 0.1.15 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/cluster-resources/noam.json b/bootstrap/cluster-resources/noam.json deleted file mode 100644 index e0038d2..0000000 --- a/bootstrap/cluster-resources/noam.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "noam", - "server": "https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com" -} \ No newline at end of file diff --git a/bootstrap/cluster-resources/noam/DUMMY b/bootstrap/cluster-resources/noam/DUMMY deleted file mode 100644 index e69de29..0000000 diff --git a/bootstrap/cluster-resources/noam/argo-rollouts-ns.yaml b/bootstrap/cluster-resources/noam/argo-rollouts-ns.yaml deleted file mode 100644 index c11b5aa..0000000 --- a/bootstrap/cluster-resources/noam/argo-rollouts-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: argo-rollouts -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true -status: - health: {} - summary: {} - sync: - comparedTo: - destination: {} - source: - repoURL: "" - status: "" From 1754293d375d08dc2ca006e3a8d8d9a76f7dba8a Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Wed, 14 Dec 2022 13:07:29 +0400 Subject: [PATCH 373/411] Delete projects directory --- projects/README.md | 21 ------ projects/aws-local-runtime.yaml | 119 -------------------------------- projects/noam.yaml | 97 -------------------------- 3 files changed, 237 deletions(-) delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml delete mode 100644 projects/noam.yaml 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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} diff --git a/projects/noam.yaml b/projects/noam.yaml deleted file mode 100644 index cc4abcb..0000000 --- a/projects/noam.yaml +++ /dev/null @@ -1,97 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - name: noam - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: noam project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: noam - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/noam/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/noam/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: noam-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: noam - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From cea7f260b6937e4df6ca9f73b66819bf76d3c099 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Wed, 14 Dec 2022 13:07:37 +0400 Subject: [PATCH 374/411] Delete shared-config directory --- shared-config/README.md | 44 ------------------- .../resources/all-runtimes-all-clusters/DUMMY | 0 ...eyzsg8k-aws-local-runtime.sealing-key.yaml | 15 ------- .../aws-local-runtime/in-cluster.yaml | 28 ------------ .../runtimes/aws-local-runtime/noam.yaml | 28 ------------ 5 files changed, 115 deletions(-) delete mode 100644 shared-config/README.md delete mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY delete mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyzsg8k-aws-local-runtime.sealing-key.yaml delete mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml delete mode 100644 shared-config/runtimes/aws-local-runtime/noam.yaml diff --git a/shared-config/README.md b/shared-config/README.md deleted file mode 100644 index 85ee1f9..0000000 --- a/shared-config/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# codefresh-runtime_internal-shared-config -This repository stores configuration files that can be shared between runtimes. - -Configuration definitions that will be stored in this repository: -- Argo CD managed cluster -- Git sources -- Codefresh 3rd party integrations configuration -- Ouath2 Authentications applications - -Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. - -## Repository structure -The base path of the repository will include 2 directories - resources and runtimes. -The resources directory will include the following sub-directories: -- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters -- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster -- runtimes/ - a folder for each specific runtime. - -Each manifest will be applied to all clusters in a specific runtime -both control-plane and the runtime-specific directories are optional. -The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml - - -``` -├── resources <───────────────────┐ -│ ├── all-runtimes-all-clusters │ -│ │ ├── manifest1.yaml │ -│ │ └── subfolder │ -│ │ └── manifest2.yaml │ -│ ├── control-planes │ -│ │ └── manifest3.yaml │ -│ ├── runtimes │ -│ │ ├── runtime1 │ -│ │ │ └── manifest4.yaml │ -│ │ └── runtime2 │ -│ │ └── manifest5.yaml │ -│ └── manifest6.yaml │ -└── runtimes │ - ├── runtime1 │ # references by /apps/runtime1/config_dir.json - │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - └── runtime2 │ # references by /apps/runtime2/config_dir.json - └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster -``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY deleted file mode 100644 index e69de29..0000000 diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyzsg8k-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyzsg8k-aws-local-runtime.sealing-key.yaml deleted file mode 100644 index 872722e..0000000 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keyzsg8k-aws-local-runtime.sealing-key.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - creationTimestamp: 2022-11-24T12:42:12.000Z - labels: - sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 637f66d644189400305f8157 - codefresh.io/sealing-key: 'true' - codefresh.io/runtime-name: aws-local-runtime - name: sealed-secrets-keyzsg8k -data: - tls.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6RENDQXJTZ0F3SUJBZ0lRYXJZK2x4K2xjM0tKL2pYWlQrUVNRREFOQmdrcWhraUc5dzBCQVFzRkFEQUEKTUI0WERUSXlNVEV5TkRFeU5ESXhNbG9YRFRNeU1URXlNVEV5TkRJeE1sb3dBRENDQWlJd0RRWUpLb1pJaHZjTgpBUUVCQlFBRGdnSVBBRENDQWdvQ2dnSUJBTFM3KzV0R3RKUTNUWVgwZ2YzeHFSTk0zbk10Q2xvcHhlQkp4azVMClp5cERnVWpGOHkrOEltRDIrWVpVUG1pSjVCZ1Q2emVjTVZIdjQwNXRrWVFUcW5UQklFdVlUUFJRSzFLTnQwVVkKcnAzbjM1MVFEMkEvWjhGdGhVM1U0RGtTVXRJY2tDQ0s5RmplaEs3M3hyaGQ1UXVvNEh2RnJLMXM2NTVxUzd2RQpKUzQ2QUJBcThlVEM1bW1veC90SVM0dzZSOVFiMlBDc05hU1lMeU03NXI5Y24wdU5INEd1UjE4ZmRhSHYyb2tICmhSZnRKM0oxQUZ3M2dFQ05kRDdTUGNzN1g4MU9nVWoxQ0tINktTMDVRTGpDM1hrd0lKekIxZktiK1ArbmRaZ2cKZTUwRHZBbGcrQS8xbTlOenBuaXhYM0llUC9mbWVTcUNOTWNsY0ZQN2loeENEdm55blVjQWd1cFI0YXZaVkhicQpxVUhkTlVzSG1BSnF4U2J2STZkcWczNE1DOXg2Z3VOWkkzUlhHZGI1QlRZQnZSeXhPU011R2dBVllWWUl1Q0pMCnBvQk1QQlczbU9yR0JIbUdqbmtaUkU2c0tTZ3l2bFNFdzEwakI3UWNQWEdiWG9PTEVIRFg1aGtsVnR3dDA3dTkKbjM2eVBXbURYV3ptVkdzTUxJNGxDVmNOd3pjU0QvUnRETjc0NXJhZGhQdDNoNVBld2ZTczVGR1gwbTlDdXkwWgpRanYrNkgzU25WOHR0RzRMaForYi9la3p5MFZ5RG5VdnpCc3hSelFWYmhpYUpsOGZ3VzBBT0F2QS92UkYwTzhEClZOZjQvUU4vOW43QTh5b09HcGdVemRjenJnSXovQWZPQ3VQWXlTTjFNakpXM0lVcHd0MFpISS91dWZsdjMrK0QKak9PckFnTUJBQUdqUWpCQU1BNEdBMVVkRHdFQi93UUVBd0lBQVRBUEJnTlZIUk1CQWY4RUJUQURBUUgvTUIwRwpBMVVkRGdRV0JCVC8vaGdIaWErczJrNVJERUpJSVBCdmtrRURDREFOQmdrcWhraUc5dzBCQVFzRkFBT0NBZ0VBCkEybisvVFlQS1p2WGtlMU1ySTR2MFJocHIwM2w1SStuYlBPRFpuM0RVRlV2YkgvVUZneXNyS0JDM3lFaTIwR1cKZSt6T016WmRBNkxXb2dVa2t3UWlOL0xkdHYrVTI4b3dwSGxYQXB0dGRqcGc2WDMrelVCZ2tIYnN2aFR0TVhGawordDhXTjZJVmx4VkUvd3FuR2lsbnp2dzlSZUprT01ISmlac1VXTTgzTmNaNWhNUlhwZW1PMTEyc3Y5QUpSTmZiCno0VmRkOUhramxWV1N3VVo1WkFrM1FqWExvanZQalZ6dEs0a2NOWE5OOUFXNTdoWmhOQTFic2hxTG5ObHB0cXIKRTFGTXU1UFl1Sk55clhYOWc5MHEzcmNQSEJqWWlCWVpTTjVUZFoxbU1BRXpWaFFnNTdtOWI1Z1ZSL2JrbzRESQp0aEN4TC8rUlhGakxod29hWmlxMEJKUlg2MzBncWl0YmJ1MjV1c09wdXRmbldCQmIzS20wa2s0cE9xZ1dla3M3CkErSDhNcjR1azNObXFrS1hhUDk5MnhONWZSTGx4RnNlS2pscERBWlFkelBoTGlXaHlhVjM2K2ViUVZnck9ZRWEKYzB5eGVnYXBMWnVZRzIreUYwWHhHWW1VTW1Gd1d4eHdrUXovS2t3bHRNeGRMUExmUjgxMmpiSk5LNm5ickpBRwp5TElTUXI2QnRNVEo1cng5VVdtUS82b25CNHVpL1g3bklCTXN5UlFEcFF0eHIvTkFDWitSMGY1d0V1QUprSyszCnJkZEFuMVFIenE4eE1lSnpXd1JvU3cxRkpQYVU0WXl3L1RKUi9DbTlydzBMYlZVeHp6UG5GemdiTE85UHM1SWcKNWFUa1B3VW9FZDZ2U1prcUNjQUNVcXRyQU1iNVQ4K0Z5Y3hiYzRGSUdkdz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= - tls.key: >- - 9pVEJVNjIrSjI0OFdZbEE3blI3cE1Xd0FycExpUzBrVS9XCjdVWnpXdC9vM3hqOEZTSGMyNmZOSWJrdmFpUUl4L2wwODN6WkxsdkNtblF0bmM1VDk3dW5mTVpvQVRZdUhidmsKMlE3dXRVVjY1MDR6a2d1bjZXUlFUbE1yaVQvS1MrWTY0ZGxMRkFvcjBFamt5UXVYNWpMWEhVOFduR281WkRjZgpISzh6VDdrUlBJUks3d0tDQVFFQXo3WVhsQy9Rc3B3V25ZeVY1K2wzWTE2T1ZkN2FZdmdrbGwwUUJ4SkVSdUZtCjZscFZKUGFvLzhmaktHSFNlby9tZlhMeG5Mek5FZmU1YXhETSswTzFmbHhobWV5bXBnUEZyTFAwcTJiYkRUUUgKNG82MDJDM0JlZHlkNS9HbDlKUjFUK0RkQ1U2dWdJazhBUmlEUnpTRHB4TnBmQlpRcTgvT00yaHYyM09ZVUNWOQpCc2tpTU51RXVjTjhVM0hQVmV0cWRFOW5SdmJXUjV5Y0JlcVUxaExJdlBsOEhVaStvcVZDUFZtdVlGOVlsQ09qCnRLaC9qVllZSmJ4aXBWcUVNNjBXdW1DT1hqbGRiTEFKbzgydW5wdFhmMFI5cDFJOWN0OE5CVVNMWDlHUFIyb04KcWJQS25hUkttSXZOUnRGMmFJY1pxOXl5eWV2SDBiMFJxU1FpSjlOakJRS0NBUUFpV3hEU3hMU2xNVlZ3RG8vTwppM2FnY0xUcnZUSGJVZVUxMGhTRW44YW01c3Bla2llVmRoaGxoamc3SUs5SnZDTGlzclRSUEZ5NjUrR3FQNEJYCnlHNm5xSmFDNktxbWtvTFBWM2orZWV6TDBnTWNvN3A2eWdZakhhSFBpeUtlNVF6UUliTmhPdy85TG52MVg2bHkKUU0zMGpMSmwxcEk1eWZFbHhrQmpYeHV0NmVJV25senovb2tlOWY0SENmQ3NWZ0o0OTNoU0lUcEpCbUNzVjNTWApWRWN0Q3pnQk9QUk9pejFnNVlYbE1maHp4WUhKd0tWWEpTd1Q5c3JFbnRES1VkK2dzRGFVcDNJNGVERWhERUpVCmdwODVtMHFlbUxZNkhtSE1uV1lhSnJ4V01TbC9RY0pZTWFYM3pDMzFkMG51WDFCaGQ1QzZnRFh3T3FWeldsdnEKTlkxSkFvSUJBRU1sZUdYZE56Z21JV0Y1Q3hUWGNsTGJSR1FhRUxzaHdLSWpINFZKc0d6QmZRV1JnaWphM0RNagpxUmxxMWlIczF2UUM3bnhleEdSa2tybzd5aWdIOFdvUjd6TlZQMkkzb2ZWOGowSEJsRnFtVVU0NkY5Z3lvbk1FCmtMOWtiT091QW1aNktMcFRoekhpSzFXbldQanh6d1Y1endYZ0tPQUI0NFRXNUNJck1qZm1obzVsQXZxTVhGRzUKRWozZmNza3h1MDR5UlE2NXlQZUpkeDZxZ01iYmQ2MHZjYUg5M0RLei9iL2JkL1dMblJUMm1IdFVaVGVKZDNEcgpmM0E0M0xmZjRwTUpsN3g2Q3V1UjFPdnhGOXdLRjdUNnJTd2o5OTFrb2M3c0k2b3NFb2RoajEwbTAvODJGeTlOCk1tVU1YWnpZMzhHaExPTDlwN0R6ei91L3hKTGZVUWtDZ2dFQkFNOTc1RjJpU1BjWlJmU0Nuazh1R0VldnN2RUEKRjN4ZVIzdmJ3UG5wVmtuVThGa3QxY2k3ZVFQQWV2Z0hWbENMdS9yU1hTMUIrd0tjLzhLVXQ0UTJZR2JsTGlHaApzWFhkYXhjRzl1VUZ4dXJtMTlTQlZuVFg4dWc4U1M2MHBUTk1jQkV3Z01GL2dyaFVEbU1DZGVMVWtZRzROZmJTCklTaERGTWRRM0tONU9UekZNTS9Ydk0raTM3bjFtVzdwMFVKVUMwU1FTRWNiTEhoSk1UcUdIM1k5NUsxd2o2aVMKdE1TK0UvRk9OTW5sK2ZoeEZPQ25nN1FzbmN4VGZnLytzMmRYY25WMzA5cTJNOGhXMTlKMHVhaXdybVUrdWdPWApNL1huaUZzdVMyOGFkM0FsSkx5aG9GM3dpNkg3ckxKWHFNc2N5bC9ydmU0K1lsck0yN0tuVFNtOE4yOD0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml deleted file mode 100644 index 0581bc1..0000000 --- a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: "true" - name: in-cluster -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - project: default - source: - directory: - include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true diff --git a/shared-config/runtimes/aws-local-runtime/noam.yaml b/shared-config/runtimes/aws-local-runtime/noam.yaml deleted file mode 100644 index 7f0dc6b..0000000 --- a/shared-config/runtimes/aws-local-runtime/noam.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: "true" - name: noam -spec: - destination: - namespace: default - server: https://50826B3061FFA59FB675CA2B21345854.gr7.us-east-1.eks.amazonaws.com - project: default - source: - directory: - include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml}' - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true From b58890e9684c132bdd079428faa358e2f8de613e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:14:47 +0400 Subject: [PATCH 375/411] Autopilot Bootstrap --- apps/README.md | 27 +++++++++++ bootstrap/argo-cd.yaml | 40 ++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 17 +++++++ bootstrap/cluster-resources.yaml | 48 +++++++++++++++++++ bootstrap/cluster-resources/in-cluster.json | 1 + .../cluster-resources/in-cluster/README.md | 3 ++ .../in-cluster/aws-local-runtime-ns.yaml | 9 ++++ bootstrap/root.yaml | 41 ++++++++++++++++ projects/README.md | 21 ++++++++ 9 files changed, 207 insertions(+) create mode 100644 apps/README.md create mode 100644 bootstrap/argo-cd.yaml create mode 100644 bootstrap/argo-cd/kustomization.yaml create mode 100644 bootstrap/cluster-resources.yaml create mode 100644 bootstrap/cluster-resources/in-cluster.json create mode 100644 bootstrap/cluster-resources/in-cluster/README.md create mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml create mode 100644 bootstrap/root.yaml create mode 100644 projects/README.md diff --git a/apps/README.md b/apps/README.md new file mode 100644 index 0000000..9750d7c --- /dev/null +++ b/apps/README.md @@ -0,0 +1,27 @@ +# 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/argo-cd.yaml b/bootstrap/argo-cd.yaml new file mode 100644 index 0000000..18cabf3 --- /dev/null +++ b/bootstrap/argo-cd.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: argo-cd + codefresh.io/entity: component + codefresh.io/internal: "true" + name: argo-cd + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..5bfef28 --- /dev/null +++ b/bootstrap/argo-cd/kustomization.yaml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://github.com/ + usernameSecret: + key: git_username + name: autopilot-secret + name: argocd-cm +kind: Kustomization +namespace: aws-local-runtime +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.16 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2ab8b41 --- /dev/null +++ b/bootstrap/cluster-resources.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: cluster-resources + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + syncPolicy: + preserveResourcesOnDeletion: true + template: + metadata: + labels: + codefresh.io/internal: "true" + name: cluster-resources-{{name}} + namespace: aws-local-runtime + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + syncPolicy: + automated: + allowEmpty: true + selfHeal: true +status: {} diff --git a/bootstrap/cluster-resources/in-cluster.json b/bootstrap/cluster-resources/in-cluster.json new file mode 100644 index 0000000..259083a --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster.json @@ -0,0 +1 @@ +{"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 new file mode 100644 index 0000000..6129ae5 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/README.md @@ -0,0 +1,3 @@ +# 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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml new file mode 100644 index 0000000..add2ab3 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: aws-local-runtime +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..631890d --- /dev/null +++ b/bootstrap/root.yaml @@ -0,0 +1,41 @@ +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 + codefresh.io/internal: "true" + name: root + namespace: aws-local-runtime +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 new file mode 100644 index 0000000..baef199 --- /dev/null +++ b/projects/README.md @@ -0,0 +1,21 @@ +# 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. From d73f406957f7e8851cd413d7798ea8af09204014 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:14:54 +0400 Subject: [PATCH 376/411] Added project 'aws-local-runtime' --- projects/aws-local-runtime.yaml | 100 ++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/aws-local-runtime.yaml diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml new file mode 100644 index 0000000..af2531a --- /dev/null +++ b/projects/aws-local-runtime.yaml @@ -0,0 +1,100 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: aws-local-runtime project + destinations: + - namespace: '*' + server: '*' + namespaceResourceWhitelist: + - group: '*' + kind: '*' + sourceRepos: + - '*' +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime +spec: + generators: + - git: + files: + - path: apps/**/aws-local-runtime/config.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_dir.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: '{{ exclude }}' + include: '{{ include }}' + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + annotations: + argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave + }}' + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: '{{ appName }}' + codefresh.io/entity: '{{ labels.codefresh_io_entity }}' + codefresh.io/internal: '{{ labels.codefresh_io_internal }}' + name: aws-local-runtime-{{ userGivenName }} + namespace: aws-local-runtime + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: aws-local-runtime + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From c3dd87f9e8fc963d9c5b91552f2784f973ea8b37 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:14:55 +0400 Subject: [PATCH 377/411] Persisted runtime data --- bootstrap/aws-local-runtime.yaml | 52 ++++++++++++++++++++++++++++++++ projects/aws-local-runtime.yaml | 19 ++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 bootstrap/aws-local-runtime.yaml diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml new file mode 100644 index 0000000..a523eb0 --- /dev/null +++ b/bootstrap/aws-local-runtime.yaml @@ -0,0 +1,52 @@ +apiVersion: v1 +data: + base-url: https://philipp-platform.ngrok.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: aws-local-runtime + namespace: aws-local-runtime + spec: + accessMode: INGRESS + bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd + cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com + components: + - name: events + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.16 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.16 + - name: workflows + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.16 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.16 + - name: internal-router + syncWave: 10 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.16 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.16 + defVersion: null + ingressClassName: nginx + ingressController: k8s.io/ingress-nginx + ingressHost: https://philipp.hybrid-team.cf-cd.com + ref: "" + repo: https://github.com/PhilippPlotnikov/aws-local-runtime + requiredCLIVersion: ^0.1.0 + version: 0.1.16 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: aws-local-runtime diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml index af2531a..590cd3f 100644 --- a/projects/aws-local-runtime.yaml +++ b/projects/aws-local-runtime.yaml @@ -6,6 +6,8 @@ metadata: argocd.argoproj.io/sync-options: PruneLast=true argocd.argoproj.io/sync-wave: "-2" creationTimestamp: null + labels: + codefresh.io/entity: runtime name: aws-local-runtime namespace: aws-local-runtime spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/aws-local-runtime/config_helm.json + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: aws-local-runtime-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 1032281c3c88af9b07098617d1ce363151349482 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:01 +0400 Subject: [PATCH 378/411] installed app 'events' on project 'aws-local-runtime' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/aws-local-runtime/config.json create mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..ea62e45 --- /dev/null +++ b/apps/events/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.16 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a441918 --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/events/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 994b4f7bd126bef76455f5f0dd2bc7857a262381 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:34 +0400 Subject: [PATCH 379/411] installed app 'rollouts' on project 'aws-local-runtime' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json create mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..a2137f7 --- /dev/null +++ b/apps/rollouts/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.16 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..a27ceb6 --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 6d8a090dc12c5e74233f0d49bac31dabf6d1861c Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:36 +0400 Subject: [PATCH 380/411] installed app 'workflows' on project 'aws-local-runtime' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/aws-local-runtime/config.json create mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..e07a975 --- /dev/null +++ b/apps/workflows/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.16 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..c051d59 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 184316abc6fe509538788a5c2c7ba761fdf6e2e3 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:37 +0400 Subject: [PATCH 381/411] installed app 'app-proxy' on project 'aws-local-runtime' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json create mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..514657f --- /dev/null +++ b/apps/app-proxy/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.16 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..71a2695 --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "9" + } +} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 610fbae684cf3d7c3e99e286c0c6daa130409de1 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:38 +0400 Subject: [PATCH 382/411] installed app 'internal-router' on project 'aws-local-runtime' installation-path: '/' --- apps/internal-router/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/internal-router/base/kustomization.yaml create mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json create mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml new file mode 100644 index 0000000..74844bd --- /dev/null +++ b/apps/internal-router/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.16 diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..67b3a37 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "internal-router", + "userGivenName": "internal-router", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/internal-router/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "10" + } +} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From 7d4724bcf43a27aa79494666236659f558e9d95f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:40 +0400 Subject: [PATCH 383/411] installed app 'sealed-secrets' on project 'aws-local-runtime' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/aws-local-runtime/config.json | 16 ++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json create mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..e6b190c --- /dev/null +++ b/apps/sealed-secrets/base/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.16 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json new file mode 100644 index 0000000..d3b4b74 --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + } +} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml new file mode 100644 index 0000000..a6191ea --- /dev/null +++ b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: aws-local-runtime +resources: +- ../../base From f7c6a7678f9bbc8a1aef12ac50da88a6304984cd Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:42 +0400 Subject: [PATCH 384/411] Created Internal Router Ingresses --- .../overlays/aws-local-runtime/ingress.yaml | 32 +++++++++++++++++++ .../aws-local-runtime/kustomization.yaml | 1 + 2 files changed, 33 insertions(+) create mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml new file mode 100644 index 0000000..c45f381 --- /dev/null +++ b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml @@ -0,0 +1,32 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: aws-local-runtime-internal-router-ingress + namespace: aws-local-runtime +spec: + ingressClassName: nginx + rules: + - host: philipp.hybrid-team.cf-cd.com + http: + paths: + - backend: + service: + name: internal-router + port: + number: 80 + path: /webhooks + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /workflows + pathType: Prefix + - backend: + service: + name: internal-router + port: + number: 80 + path: /app-proxy + pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml index a6191ea..f01b430 100644 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml @@ -3,3 +3,4 @@ kind: Kustomization namespace: aws-local-runtime resources: - ../../base +- ingress.yaml From c47659600069e0b6a792d9ae718a3b127dafa9c0 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:44 +0400 Subject: [PATCH 385/411] Configured Argo Workflows --- .../overlays/aws-local-runtime/kustomization.yaml | 7 +++++++ .../overlays/aws-local-runtime/route-patch.json | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 apps/workflows/overlays/aws-local-runtime/route-patch.json diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml index a6191ea..9c44d03 100644 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml @@ -1,5 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: aws-local-runtime +patches: +- path: route-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base diff --git a/apps/workflows/overlays/aws-local-runtime/route-patch.json b/apps/workflows/overlays/aws-local-runtime/route-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/aws-local-runtime/route-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] From eeacae16e45563cc1a0ddb4b692dd03671145dce Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:45 +0400 Subject: [PATCH 386/411] Updated App-Proxy configuration --- .../overlays/aws-local-runtime/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index a6191ea..4ca8c02 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -1,4 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io + - env=production + name: cap-app-proxy-cm kind: Kustomization namespace: aws-local-runtime resources: From 471e4f3bbc47fbcd0f733938081a5c2b3f70f89c Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:47 +0400 Subject: [PATCH 387/411] installed app 'events-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a1ac09a --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 4e0ea73d5727ef472d6360e382ab62e05622694f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:48 +0400 Subject: [PATCH 388/411] Created Codefresh Event Reporter --- .../resources/event-source.yaml | 23 ++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..27d9697 --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.aws-local-runtime.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..8869d6d --- /dev/null +++ b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: events-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: events + eventSourceName: events-reporter + name: events + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: events + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data + src: + dataKey: body + dependencyName: events + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: events +status: {} From dca2b061c1c803e90067de60f1df3ed6e71d4324 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:49 +0400 Subject: [PATCH 389/411] installed app 'workflow-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..2b7516d --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From b8d0c1ca13a95ba71e5c49573af8828ee550cedb Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:51 +0400 Subject: [PATCH 390/411] Created CodefreshWorkflow-ReporterReporter --- .../resources/event-source.yaml | 28 +++++++++++++ .../aws-local-runtime/resources/rbac.yaml | 37 ++++++++++++++++ .../aws-local-runtime/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..efd6e87 --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: aws-local-runtime + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..cae38da --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: aws-local-runtime +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..c0618bd --- /dev/null +++ b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: workflow-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: workflows + eventSourceName: workflow-reporter + name: workflows + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: workflows + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: workflows + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: workflows +status: {} From 49aa715cb0659eb2225df61d197dbda7d096501e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:52 +0400 Subject: [PATCH 391/411] installed app 'rollout-reporter' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..a7dc645 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 8bf32bc17f1517b2a9470b8a662db0c0fb61e799 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:53 +0400 Subject: [PATCH 392/411] Created CodefreshRollout-ReporterReporter --- .../resources/event-source.yaml | 50 ++++++++++ .../aws-local-runtime/resources/rbac.yaml | 35 +++++++ .../aws-local-runtime/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml create mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml new file mode 100644 index 0000000..7e6cb74 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml @@ -0,0 +1,50 @@ +apiVersion: argoproj.io/v1alpha1 +kind: EventSource +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + eventBusName: codefresh-eventbus + resource: + analysisruns: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: analysisruns + version: v1alpha1 + replicasets: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: apps + namespace: "" + resource: replicasets + version: v1 + rollouts: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: "" + resource: rollouts + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: rollout-reporter-sa +status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml new file mode 100644 index 0000000..21744ce --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: aws-local-runtime + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: rollout-reporter-sa +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + creationTimestamp: null + name: rollout-reporter-sa +roleRef: + apiGroup: "" + kind: ClusterRole + name: rollout-reporter-sa +subjects: +- kind: ServiceAccount + name: rollout-reporter-sa + namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml new file mode 100644 index 0000000..a5b4093 --- /dev/null +++ b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml @@ -0,0 +1,92 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: cf + name: rollout-reporter + namespace: aws-local-runtime +spec: + dependencies: + - eventName: rollouts + eventSourceName: rollout-reporter + name: rollouts + - eventName: replicasets + eventSourceName: rollout-reporter + name: replicasets + - eventName: analysisruns + eventSourceName: rollout-reporter + name: analysisruns + eventBusName: codefresh-eventbus + template: + container: + name: "" + resources: {} + triggers: + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: rollouts + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: rollouts + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: rollouts + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: replicasets + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: replicasets + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: replicasets + - retryStrategy: + duration: 0 + steps: 3 + template: + conditions: analysisruns + http: + headers: + Content-Type: application/json + method: POST + payload: + - dest: data.object + src: + dataKey: body + dependencyName: analysisruns + secureHeaders: + - name: Authorization + valueFrom: + secretKeyRef: + key: token + name: codefresh-token + url: https://philipp-platform.ngrok.io/2.0/api/events + name: analysisruns +status: {} From cfb1eef587911d7b1f2b7fb4ec13cd4e854e27cb Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:56 +0400 Subject: [PATCH 393/411] installed app 'default-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..5684137 --- /dev/null +++ b/apps/default-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "false" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From cb57951384b1e9f7aae803e50a85391e37e97b96 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 13:15:59 +0400 Subject: [PATCH 394/411] installed app 'marketplace-git-source' on project 'aws-local-runtime' installation-path: '/' --- .../aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..27a715e --- /dev/null +++ b/apps/marketplace-git-source/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": ".", + "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "git-source", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "exclude": "**/images/**/*", + "include": "workflows/**/*.yaml" +} \ No newline at end of file From c979d6303418792c29641295ab82335d8cb7231e Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 09:18:40 +0000 Subject: [PATCH 395/411] commiting isc app 'in-cluster' to 'aws-local-runtime' adding 'resources' dir to shared-config repo commiting isc readme file --- shared-config/README.md | 44 +++++++++++++++++++ .../resources/all-runtimes-all-clusters/DUMMY | 0 .../aws-local-runtime/in-cluster.yaml | 28 ++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 shared-config/README.md create mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY create mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml diff --git a/shared-config/README.md b/shared-config/README.md new file mode 100644 index 0000000..85ee1f9 --- /dev/null +++ b/shared-config/README.md @@ -0,0 +1,44 @@ +# codefresh-runtime_internal-shared-config +This repository stores configuration files that can be shared between runtimes. + +Configuration definitions that will be stored in this repository: +- Argo CD managed cluster +- Git sources +- Codefresh 3rd party integrations configuration +- Ouath2 Authentications applications + +Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. + +## Repository structure +The base path of the repository will include 2 directories - resources and runtimes. +The resources directory will include the following sub-directories: +- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters +- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster +- runtimes/ - a folder for each specific runtime. + +Each manifest will be applied to all clusters in a specific runtime +both control-plane and the runtime-specific directories are optional. +The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml + + +``` +├── resources <───────────────────┐ +│ ├── all-runtimes-all-clusters │ +│ │ ├── manifest1.yaml │ +│ │ └── subfolder │ +│ │ └── manifest2.yaml │ +│ ├── control-planes │ +│ │ └── manifest3.yaml │ +│ ├── runtimes │ +│ │ ├── runtime1 │ +│ │ │ └── manifest4.yaml │ +│ │ └── runtime2 │ +│ │ └── manifest5.yaml │ +│ └── manifest6.yaml │ +└── runtimes │ + ├── runtime1 │ # references by /apps/runtime1/config_dir.json + │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster + │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster + └── runtime2 │ # references by /apps/runtime2/config_dir.json + └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster +``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY new file mode 100644 index 0000000..e69de29 diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml new file mode 100644 index 0000000..0581bc1 --- /dev/null +++ b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + finalizers: + - resources-finalizer.argocd.argoproj.io + labels: + codefresh.io/entity: internal-config + codefresh.io/internal: "true" + name: in-cluster +spec: + destination: + namespace: aws-local-runtime + server: https://kubernetes.default.svc + project: default + source: + directory: + include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' + recurse: true + path: shared-config/resources + repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git + targetRevision: HEAD + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true + syncOptions: + - allowEmpty=true From 78b7dcf932286d31fbdb6793ce9a6d7be13da6e0 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Wed, 14 Dec 2022 09:18:42 +0000 Subject: [PATCH 396/411] installed app 'isc' on project 'aws-local-runtime' installation-path: '/' --- apps/isc/aws-local-runtime/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/isc/aws-local-runtime/config_dir.json diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json new file mode 100644 index 0000000..1c85d6e --- /dev/null +++ b/apps/isc/aws-local-runtime/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "isc", + "userGivenName": "isc", + "destNamespace": "aws-local-runtime", + "destServer": "https://kubernetes.default.svc", + "srcPath": "shared-config/runtimes/aws-local-runtime", + "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", + "srcTargetRevision": "", + "labels": { + "codefresh_io_entity": "shared-configuration", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd.argoproj.io/sync-wave": "10" + }, + "exclude": "", + "include": "" +} \ No newline at end of file From 2fe0ab3e493c768ab5577914de41ea21d9bd4314 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Wed, 14 Dec 2022 09:18:56 +0000 Subject: [PATCH 397/411] ISC Commit --- ...ts-keysmxtl-aws-local-runtime.sealing-key.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keysmxtl-aws-local-runtime.sealing-key.yaml diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keysmxtl-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keysmxtl-aws-local-runtime.sealing-key.yaml new file mode 100644 index 0000000..4be358f --- /dev/null +++ b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keysmxtl-aws-local-runtime.sealing-key.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + creationTimestamp: 2022-12-14T09:15:51.000Z + labels: + sealedsecrets.bitnami.com/sealed-secrets-key: active + codefresh.io/sealing-key-id: 639994fd0055d10030e20b5d + codefresh.io/sealing-key: 'true' + codefresh.io/runtime-name: aws-local-runtime + name: sealed-secrets-keysmxtl +data: + tls.crt: >- + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6RENDQXJTZ0F3SUJBZ0lRSDBVY2VkWDVmRW1RZkdGSnVrcXFJakFOQmdrcWhraUc5dzBCQVFzRkFEQUEKTUI0WERUSXlNVEl4TkRBNU1UVTFNVm9YRFRNeU1USXhNVEE1TVRVMU1Wb3dBRENDQWlJd0RRWUpLb1pJaHZjTgpBUUVCQlFBRGdnSVBBRENDQWdvQ2dnSUJBTkp0eExvTkhsOTR3WllHdUUvbVJiL0tXMHpDbUJnMnZic0c1UDNZClBBRlF5Q0RGUXd3Yk16d0srMUhBTTZwblV2RnlPQytmZklraE10andnY0V4cGU2bUZ6VDA0UHg5QmQ1aExpWU4KTkNJaXNlUU1zbkFVbXN2OGtLSm51NmZKRVVoY0N3YzdJVDZqNDR3TUNqMVNBZmxSWHNxdktQMGM5N0hoTWJ5OQpkSVRNRHM0YytIQXBaZUtHQXpZeE02ZHYzQUIyVGYvVzlPeVFwVC9FOXgvTjV2NDNzblNaM2pHYTVFVjVnRzRsCm9sWldyK3NQUGpCeDVKNHRDTTU5NlBQQ1d4NHZyMHU2YlJmZWVlMDVCT0EzYkJxWFB4SUs2RnhWS2dWd0dFR2QKVmRZaHgwZ2FkY0tqckwwamU1RVpuTzlpckR3VDZrNGw3Y1U1cER2eFdlZmJ6TTFoN3ZNSENVK2dBUkVrL0ZNNgplRHdoT3RoYThkL1FjWnl1WkJMTmlab2JBNVNYNm12Yy9xRjd1OU96a292b3BSL3FJUmJZZlZsRm9kT3lMQlZYCnF0QWVPb3FWZmVXam1JSCtOc3hSMVBCMDhVc1JmbzRzVU4rUzd0RFIwSXNOTVU3WnZRTTIvaytVcjltbnRBMUQKZmgybnZJYnBUQ1M2NUdmTld1S3lnbUV5KzBpa0JOd1QwNU8veWVxcVBwY3owQzRyVFRWcTluTkh1L3BXcDhWZAphZ3hreERHdGdzTXkxK085M2JWc2hpNWcvSVo2cksrcFVkSFdlQjhkaTBveWRCME5XOWU2Y3ZVM3phanhSU0tBCmRSNW9yTUVtWnh6SVpsenR5S1BaSnRkcDVHOTU5UGFXb3dWYkFTVEhFVnN1VWUrdThUUUtWT0VVS0ZLTUcvb2oKeEhGdkFnTUJBQUdqUWpCQU1BNEdBMVVkRHdFQi93UUVBd0lBQVRBUEJnTlZIUk1CQWY4RUJUQURBUUgvTUIwRwpBMVVkRGdRV0JCUzc2OHZWcndXKzlJeXphTEVBN2FUZ1BXUVBEREFOQmdrcWhraUc5dzBCQVFzRkFBT0NBZ0VBCnZrbUVjck9JRFJ1THJRRXhJMGZ4Z1gvZk92bzBTWXRnSDRkZkdBRGxSazBzQ2xKRndRQ0NYSDcrdHpuN242RjYKcFhEVUJtQ1VGR3UyYUE4YVltMmJWVUtFemE2U1RncGVQVE4xYTFlallMUWxjVUVRL1RYY1ZRSENOamJUMzdwRgo2N1pXeGxPS253SUtlbDRycGtVdVhndDNLZlZCWlExTU5DV0c4VzFIazdZN2hGSlJ5NDFwZERBOG95TGdUU2k0CkJTTmVuaHNmc2dYeDdYRnBtVndTT1QxVEl0VnZKekMwT0JNUjRJSFlBWFpwYjRmazNLY29nQ25qaWNWUWZxZnoKMFA5VEJvblZzc210ODM0Vk9TRm9FS1pJS0I4cHp0LzJreGUzMTRUeE5aMEFnd3FWci9jeDkwZGxjcE42UXJ1ZAp1SkNCbDlqcUMrd3ozWnN5T3c1bXljZ1VXUEU2WGVyaUN0MDdUZGR4a1NMOURRMVdDdk1qdGdnNXFUVWFZNnJVCmkxbXRRdUtXWitmL2JydDIxa3UwQk9Jc3cwRnloTWNDVlVmVlFMSmlZenl4Vk9TKzI0Q2tnbXRSVFVMM2ErMzcKV0p1ejd4UEdYeFRtV05TVDV3NFFKTFRod3N6MUlTOUwwMDNSeGtSZ0tBb1RiOExJNlhZWWIyTGdHMis3QWdacgpnbGF3ZW1FTUl3OU8rbE1jSGoySEorbkFuYjZod1gzR3hCNkVIM3Evc3pvaGZ3K09ibGR4Z1F3cTNxcmFmMnp5CnhxaFROQjlnK1dvTmxVWDZCeGlKZHNyL2NIbnZNMjVjWWZKbFY5S2JVK3psdS9FMDd4UDBjL0tzYnNHUWtLUTQKR1RWSVk1U2YreWM4Rks3Z2poSHgyS01wUTNaSXNwRitDclNFd3lWcEI1TT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= + tls.key: >- + 85NXNoa1ZaYlhWeG9vaGNJb2dCNlhxL2s5a0dURWQrWVBqCnlwSllPczdCU0ZJellWUHdSWEV4ZU5zUG1hMnBEZEdzNGsxYzdKQXRUUjBralNwVCtaeTNqV0dhSDErajNEQTEKT3FTK3BNbi85czY4enNXQ1kyVGQ5RlVXaUdkT3ZiN3V3ZVkvdjFFWUdHSW5HaElJcnhpdUpKNlNUR1VZRjBXagoyOFkyb25SaHBxVGNkWjhDZ2dFQkFQTDhSUkM5NHByMjJYKzJyWUM2dm1RczV6TTByc0dPcVlMU0N4UDUzcjBuCkZDR0dUR2ZNT3ZjeERJVlRsVUU3OGJFcTNqMW1jQmFQNTFVT2Fqd05NdzRPR1VIN25wTk8rVjRDUitCaTRlRmgKTXZBaUcxZy9OWmNtZXNSc1lFdHRtWkZab2dISkRoRllML2RDM2JGRk9wRzZMM3hNT0VpbXpzK1NyL0Q5Y1NkOQpneE5Zbldrcythc2ZVMUExQlhVQndRTHFlVnRCYUtKZ3R4b3ZzOE84V3c3Q3FBVGZQWndwVmdkSDIwZXRuWGw1CmNiVXZIZG51RWw0T29WbFlJbWgzeUJjcWwxYjFiVy9pUXVSOFNoVjVvZWpDN0hHeE1vVHdwQmNUakZCQktUejUKYjgzRnFMa0loV1d5SXQ4QmxUNFp6M2hidDBrRzJYMSsyRTg4SFR2N1VqRUNnZ0VBQjNJUlZxbVBQb0I1VVBOSQpaVkhFdFBMU0NrbEM0WUJoQmx6YTN6WjVnMVJ2WW9uTzNnZG04a1JmYzZtK2F1bDhwRGRFYVhjVHRCYTRzWjlMCkt3c0pZaU9EMVlkQ1NlZmErUkRiamJuTmt4NHdVUmJBMDVMdlR5R3FBRytPZmpsMG1sbWNXNXBVclZrdTljK2IKYVZNZXVzclhwVnp6VFR2ZWs1SHAwMDJwL28rcVo4M3pLZ1p2ZWlRVFBhNUR0alRkWjduaS9GdjFISzhiNG4rNQpSeEYwcmxYK2J3dkRURkFjMENsQ1RvMW8yRUpMcTVmcDVCV3JMQVcvOTFSdXloMWIrbUZOYnMwSzJDZVM3em5LCmR5eitJTUg5UnBEeHVMM1YvT28zRXlkL21aVUFmdCs1U2VxWVJJeklIS01VbGNMQ0VBOGNFUG1zMHQ1WTNHRy8KTUFBN2J3S0NBUUFKWkRDekxmT2xNNmRDWldnZFVwcHJPc1VRMkpkc2lid0pmMTdJUGQ4YkJuaWp0eElhN096Vwpnd0hONFdZaWFGTzJHa2NPcm5ma2wxbEVrMU1OMFNESkNVaDJvV2dHbjRYSjJXSzN6SHFZZ0c0OGs4VGt5MFNoCisrM0F5OE9KQnNwcHNNSXZPWHNldG43Y0dxeUEzb0VlQXNrMUQ2a1pQY0UraXBmY1E1OXMvRS9sbm9ZdSszc0cKM3lZVU1vaHNkazNrYy9XT3psOWg3MFVFY1JXTW1pb1d6dlU1Z3Z0Wm5zdGhhcWlTQTZiVGZCc2wrcFUzeUJqVApvOU1lcGVabWpVS2hpcGJnMkltTFNuNTFZRXhvdWhQRThFdTlOVEVUckUxYlN2a2dYUFJnRSsvN1R3bHZaV0hxCmhWRU50M3p5TW9NdlRyUXQwV0wwazhOK2hIOUl3elR4QW9JQkFBTU5lWDZwc0VTS1V5RmNaZm9yVE1QRjI0M1EKQldwSDIycVRSY3JzenltZ3d0V1pxTk5PaWJMUy9HT25KQ0Z2WGtlNlFFTndta1FGNERydXVVOStuNlhCdzRMSApGWnVObFB4ZjBwMVBZVUNaUzVTUzNNZ1QyNlY5dnVpZEZVY0syUU93c3JDZWk0ckttbGRXQmFlS2MrWGlVQ1FxCjg0YXIzQ3ZkRTBiNmQ3S2JLL1A4MmpKczJxSUFWR3cyOTFoVGU0bERPOU8yUENLSGVKSkVYUjZLa1ZtOVVOb2UKY0g1T01wNXlYVmpzQkpzRXF2dTd6R0pZcnlSeTZiMzJQNlg3QUZKRjBseG9obFN4b0dhRGltU1FLaEFCMk93ZwpTcTFoNmlaa2c3WFhqV1BYWVdxb0FlTTNpRHpXY3ZHVTJUbnNtdk14STR6MTdva3dlVGhqV3BSWk5Mbz0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K From 50ebb5fd35b505eff33e53997c622b33c041d7bc Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Mon, 19 Dec 2022 15:24:03 +0400 Subject: [PATCH 398/411] Update kustomization.yaml --- apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml index 4ca8c02..01ece4e 100644 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml @@ -4,7 +4,7 @@ configMapGenerator: literals: - argoWorkflowsInsecure=true - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io + - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - env=production name: cap-app-proxy-cm kind: Kustomization From a8f8ed9297bd573b675616f036ffd9eeed87c877 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Mon, 19 Dec 2022 17:50:55 +0400 Subject: [PATCH 399/411] Update aws-local-runtime.yaml --- bootstrap/aws-local-runtime.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml index a523eb0..33713b1 100644 --- a/bootstrap/aws-local-runtime.yaml +++ b/bootstrap/aws-local-runtime.yaml @@ -37,7 +37,8 @@ data: defVersion: null ingressClassName: nginx ingressController: k8s.io/ingress-nginx - ingressHost: https://philipp.hybrid-team.cf-cd.com + # ingressHost: https://philipp.hybrid-team.cf-cd.com + ingressHost: http://localhost:3017 ref: "" repo: https://github.com/PhilippPlotnikov/aws-local-runtime requiredCLIVersion: ^0.1.0 From d2e0556ac87e7322fb0042525b8c82db1895fcdf Mon Sep 17 00:00:00 2001 From: = Date: Tue, 20 Dec 2022 01:39:59 +0400 Subject: [PATCH 400/411] Test From bde5b2122b20b14e73a398d05ded31b4b6a76a21 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 6 Jan 2023 15:35:59 +0400 Subject: [PATCH 401/411] Autopilot Uninstall --- apps/README.md | 27 ---- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 13 -- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 23 ---- .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/events/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/internal-router/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../overlays/aws-local-runtime/ingress.yaml | 32 ----- .../aws-local-runtime/kustomization.yaml | 6 - apps/isc/aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 50 -------- .../aws-local-runtime/resources/rbac.yaml | 35 ------ .../aws-local-runtime/resources/sensor.yaml | 92 -------------- apps/rollouts/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 5 - .../aws-local-runtime/config_dir.json | 18 --- .../resources/event-source.yaml | 28 ----- .../aws-local-runtime/resources/rbac.yaml | 37 ------ .../aws-local-runtime/resources/sensor.yaml | 42 ------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/aws-local-runtime/config.json | 16 --- .../aws-local-runtime/kustomization.yaml | 12 -- .../aws-local-runtime/route-patch.json | 12 -- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/aws-local-runtime.yaml | 53 -------- bootstrap/cluster-resources.yaml | 48 ------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/aws-local-runtime-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/aws-local-runtime.yaml | 119 ------------------ 46 files changed, 1046 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/config.json delete mode 100644 apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/default-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/events-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/events-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/aws-local-runtime/config.json delete mode 100644 apps/events/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/internal-router/base/kustomization.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/config.json delete mode 100644 apps/internal-router/overlays/aws-local-runtime/ingress.yaml delete mode 100644 apps/internal-router/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/isc/aws-local-runtime/config_dir.json delete mode 100644 apps/marketplace-git-source/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/aws-local-runtime/config.json delete mode 100644 apps/rollouts/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/config.json delete mode 100644 apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/config_dir.json delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/config.json delete mode 100644 apps/workflows/overlays/aws-local-runtime/kustomization.yaml delete mode 100644 apps/workflows/overlays/aws-local-runtime/route-patch.json create mode 100644 bootstrap/DUMMY delete mode 100644 bootstrap/argo-cd.yaml delete mode 100644 bootstrap/argo-cd/kustomization.yaml delete mode 100644 bootstrap/aws-local-runtime.yaml delete mode 100644 bootstrap/cluster-resources.yaml delete mode 100644 bootstrap/cluster-resources/in-cluster.json delete mode 100644 bootstrap/cluster-resources/in-cluster/README.md delete mode 100644 bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/aws-local-runtime.yaml 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/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml deleted file mode 100644 index 514657f..0000000 --- a/apps/app-proxy/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.16 diff --git a/apps/app-proxy/overlays/aws-local-runtime/config.json b/apps/app-proxy/overlays/aws-local-runtime/config.json deleted file mode 100644 index 71a2695..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "9" - } -} \ No newline at end of file diff --git a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml b/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 01ece4e..0000000 --- a/apps/app-proxy/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://philipp-platform.ngrok.io - - cors=https://philipp-platform.ngrok.io,http://local.codefresh.io - - env=production - name: cap-app-proxy-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/default-git-source/aws-local-runtime/config_dir.json b/apps/default-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 5684137..0000000 --- a/apps/default-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime_git-source.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "false" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/config_dir.json b/apps/events-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a1ac09a..0000000 --- a/apps/events-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml b/apps/events-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 27d9697..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.aws-local-runtime.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml b/apps/events-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index 8869d6d..0000000 --- a/apps/events-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: events-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: events - eventSourceName: events-reporter - name: events - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: events - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data - src: - dataKey: body - dependencyName: events - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: events -status: {} diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml deleted file mode 100644 index ea62e45..0000000 --- a/apps/events/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.16 diff --git a/apps/events/overlays/aws-local-runtime/config.json b/apps/events/overlays/aws-local-runtime/config.json deleted file mode 100644 index a441918..0000000 --- a/apps/events/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/events/overlays/aws-local-runtime/kustomization.yaml b/apps/events/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/events/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml deleted file mode 100644 index 74844bd..0000000 --- a/apps/internal-router/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.16 diff --git a/apps/internal-router/overlays/aws-local-runtime/config.json b/apps/internal-router/overlays/aws-local-runtime/config.json deleted file mode 100644 index 67b3a37..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "internal-router", - "userGivenName": "internal-router", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/internal-router/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "10" - } -} \ No newline at end of file diff --git a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml b/apps/internal-router/overlays/aws-local-runtime/ingress.yaml deleted file mode 100644 index c45f381..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/ingress.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: aws-local-runtime-internal-router-ingress - namespace: aws-local-runtime -spec: - ingressClassName: nginx - rules: - - host: philipp.hybrid-team.cf-cd.com - http: - paths: - - backend: - service: - name: internal-router - port: - number: 80 - path: /webhooks - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /workflows - pathType: Prefix - - backend: - service: - name: internal-router - port: - number: 80 - path: /app-proxy - pathType: Prefix diff --git a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml b/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index f01b430..0000000 --- a/apps/internal-router/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base -- ingress.yaml diff --git a/apps/isc/aws-local-runtime/config_dir.json b/apps/isc/aws-local-runtime/config_dir.json deleted file mode 100644 index 1c85d6e..0000000 --- a/apps/isc/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "isc", - "userGivenName": "isc", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "shared-config/runtimes/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "shared-configuration", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd.argoproj.io/sync-wave": "10" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/marketplace-git-source/aws-local-runtime/config_dir.json b/apps/marketplace-git-source/aws-local-runtime/config_dir.json deleted file mode 100644 index 27a715e..0000000 --- a/apps/marketplace-git-source/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": ".", - "srcRepoURL": "https://github.com/codefresh-io/argo-hub.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "git-source", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "**/images/**/*", - "include": "workflows/**/*.yaml" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/config_dir.json b/apps/rollout-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index a7dc645..0000000 --- a/apps/rollout-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml b/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index 7e6cb74..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - analysisruns: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: analysisruns - version: v1alpha1 - replicasets: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: apps - namespace: "" - resource: replicasets - version: v1 - rollouts: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: "" - resource: rollouts - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: rollout-reporter-sa -status: {} diff --git a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml b/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index 21744ce..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: rollout-reporter-sa -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: rollout-reporter-sa -roleRef: - apiGroup: "" - kind: ClusterRole - name: rollout-reporter-sa -subjects: -- kind: ServiceAccount - name: rollout-reporter-sa - namespace: aws-local-runtime diff --git a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml b/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index a5b4093..0000000 --- a/apps/rollout-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: rollout-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: rollouts - eventSourceName: rollout-reporter - name: rollouts - - eventName: replicasets - eventSourceName: rollout-reporter - name: replicasets - - eventName: analysisruns - eventSourceName: rollout-reporter - name: analysisruns - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: rollouts - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: rollouts - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: rollouts - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: replicasets - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: replicasets - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: replicasets - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: analysisruns - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: analysisruns - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: analysisruns -status: {} diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml deleted file mode 100644 index a2137f7..0000000 --- a/apps/rollouts/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.16 diff --git a/apps/rollouts/overlays/aws-local-runtime/config.json b/apps/rollouts/overlays/aws-local-runtime/config.json deleted file mode 100644 index a27ceb6..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml b/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/rollouts/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index e6b190c..0000000 --- a/apps/sealed-secrets/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.16 diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/config.json b/apps/sealed-secrets/overlays/aws-local-runtime/config.json deleted file mode 100644 index d3b4b74..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml b/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index a6191ea..0000000 --- a/apps/sealed-secrets/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -resources: -- ../../base diff --git a/apps/workflow-reporter/aws-local-runtime/config_dir.json b/apps/workflow-reporter/aws-local-runtime/config_dir.json deleted file mode 100644 index 2b7516d..0000000 --- a/apps/workflow-reporter/aws-local-runtime/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/aws-local-runtime/resources", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "exclude": "", - "include": "" -} \ No newline at end of file diff --git a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml b/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml deleted file mode 100644 index efd6e87..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/event-source.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: EventSource -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: aws-local-runtime - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml b/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml deleted file mode 100644 index cae38da..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: aws-local-runtime -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: aws-local-runtime diff --git a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml b/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml deleted file mode 100644 index c0618bd..0000000 --- a/apps/workflow-reporter/aws-local-runtime/resources/sensor.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Sensor -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: cf - name: workflow-reporter - namespace: aws-local-runtime -spec: - dependencies: - - eventName: workflows - eventSourceName: workflow-reporter - name: workflows - eventBusName: codefresh-eventbus - template: - container: - name: "" - resources: {} - triggers: - - retryStrategy: - duration: 0 - steps: 3 - template: - conditions: workflows - http: - headers: - Content-Type: application/json - method: POST - payload: - - dest: data.object - src: - dataKey: body - dependencyName: workflows - secureHeaders: - - name: Authorization - valueFrom: - secretKeyRef: - key: token - name: codefresh-token - url: https://philipp-platform.ngrok.io/2.0/api/events - name: workflows -status: {} diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml deleted file mode 100644 index e07a975..0000000 --- a/apps/workflows/base/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.16 diff --git a/apps/workflows/overlays/aws-local-runtime/config.json b/apps/workflows/overlays/aws-local-runtime/config.json deleted file mode 100644 index c051d59..0000000 --- a/apps/workflows/overlays/aws-local-runtime/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "aws-local-runtime", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/aws-local-runtime", - "srcRepoURL": "https://github.com/PhilippPlotnikov/aws-local-runtime.git", - "srcTargetRevision": "", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - } -} \ No newline at end of file diff --git a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml b/apps/workflows/overlays/aws-local-runtime/kustomization.yaml deleted file mode 100644 index 9c44d03..0000000 --- a/apps/workflows/overlays/aws-local-runtime/kustomization.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: aws-local-runtime -patches: -- path: route-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base diff --git a/apps/workflows/overlays/aws-local-runtime/route-patch.json b/apps/workflows/overlays/aws-local-runtime/route-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/aws-local-runtime/route-patch.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "op": "add", - "path": "/spec/template/spec/containers/0/env", - "value": [ - { - "name": "BASE_HREF", - "value": "/workflows/" - } - ] - } -] 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 18cabf3..0000000 --- a/bootstrap/argo-cd.yaml +++ /dev/null @@ -1,40 +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 - codefresh.io/entity: component - codefresh.io/internal: "true" - name: argo-cd - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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 5bfef28..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://github.com/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm -kind: Kustomization -namespace: aws-local-runtime -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.16 diff --git a/bootstrap/aws-local-runtime.yaml b/bootstrap/aws-local-runtime.yaml deleted file mode 100644 index 33713b1..0000000 --- a/bootstrap/aws-local-runtime.yaml +++ /dev/null @@ -1,53 +0,0 @@ -apiVersion: v1 -data: - base-url: https://philipp-platform.ngrok.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime - spec: - accessMode: INGRESS - bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd - cluster: https://19208D3B75E55C7C01C2906505D2B475.gr7.us-east-1.eks.amazonaws.com - components: - - name: events - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-events?ref=0.1.16 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.16 - - name: workflows - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.16 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.16 - - name: internal-router - syncWave: 10 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.16 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.16 - defVersion: null - ingressClassName: nginx - ingressController: k8s.io/ingress-nginx - # ingressHost: https://philipp.hybrid-team.cf-cd.com - ingressHost: http://localhost:3017 - ref: "" - repo: https://github.com/PhilippPlotnikov/aws-local-runtime - requiredCLIVersion: ^0.1.0 - version: 0.1.16 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: aws-local-runtime diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 2ab8b41..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: cluster-resources - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - syncPolicy: - preserveResourcesOnDeletion: true - template: - metadata: - labels: - codefresh.io/internal: "true" - name: cluster-resources-{{name}} - namespace: aws-local-runtime - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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/aws-local-runtime-ns.yaml b/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml deleted file mode 100644 index add2ab3..0000000 --- a/bootstrap/cluster-resources/in-cluster/aws-local-runtime-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: aws-local-runtime -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 631890d..0000000 --- a/bootstrap/root.yaml +++ /dev/null @@ -1,41 +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 - codefresh.io/internal: "true" - name: root - namespace: aws-local-runtime -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.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. diff --git a/projects/aws-local-runtime.yaml b/projects/aws-local-runtime.yaml deleted file mode 100644 index 590cd3f..0000000 --- a/projects/aws-local-runtime.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - labels: - codefresh.io/entity: runtime - name: aws-local-runtime - namespace: aws-local-runtime -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: aws-local-runtime project - destinations: - - namespace: '*' - server: '*' - namespaceResourceWhitelist: - - group: '*' - kind: '*' - sourceRepos: - - '*' -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: aws-local-runtime - namespace: aws-local-runtime -spec: - generators: - - git: - files: - - path: apps/**/aws-local-runtime/config.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_dir.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/aws-local-runtime/config_helm.json - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: aws-local-runtime-{{ appName }} - values: '{{ values }}' - repoURL: "" - syncPolicy: {} - template: - metadata: - annotations: - argocd.argoproj.io/sync-wave: '{{ annotations.argocd_argoproj_io_sync-wave - }}' - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: '{{ appName }}' - codefresh.io/entity: '{{ labels.codefresh_io_entity }}' - codefresh.io/internal: '{{ labels.codefresh_io_internal }}' - name: aws-local-runtime-{{ userGivenName }} - namespace: aws-local-runtime - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: aws-local-runtime - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 760d6877b5624ef813243374665c9f3318a9de8f Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov Date: Fri, 6 Jan 2023 15:38:01 +0400 Subject: [PATCH 402/411] Autopilot Uninstall, deleted leftovers --- bootstrap/DUMMY | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bootstrap/DUMMY diff --git a/bootstrap/DUMMY b/bootstrap/DUMMY deleted file mode 100644 index e69de29..0000000 From 861bf610f071d29fd444033812fe94e6d8994885 Mon Sep 17 00:00:00 2001 From: Philipp Plotnikov Date: Fri, 6 Jan 2023 15:41:15 +0400 Subject: [PATCH 403/411] Delete shared-config directory --- shared-config/README.md | 44 ------------------- .../resources/all-runtimes-all-clusters/DUMMY | 0 ...eysmxtl-aws-local-runtime.sealing-key.yaml | 15 ------- .../aws-local-runtime/in-cluster.yaml | 28 ------------ 4 files changed, 87 deletions(-) delete mode 100644 shared-config/README.md delete mode 100644 shared-config/resources/all-runtimes-all-clusters/DUMMY delete mode 100644 shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keysmxtl-aws-local-runtime.sealing-key.yaml delete mode 100644 shared-config/runtimes/aws-local-runtime/in-cluster.yaml diff --git a/shared-config/README.md b/shared-config/README.md deleted file mode 100644 index 85ee1f9..0000000 --- a/shared-config/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# codefresh-runtime_internal-shared-config -This repository stores configuration files that can be shared between runtimes. - -Configuration definitions that will be stored in this repository: -- Argo CD managed cluster -- Git sources -- Codefresh 3rd party integrations configuration -- Ouath2 Authentications applications - -Configurations will be synced and applied to specific runtimes or to all runtimes assoiciated wtih your Codefresh Account. - -## Repository structure -The base path of the repository will include 2 directories - resources and runtimes. -The resources directory will include the following sub-directories: -- all-runtimes-all-clusters - every manifest placed under this directory will end up in all the user's clusters -- control-plane - used by managed runtimes. Every manifest placed here will be applied to each runtime's in-cluster -- runtimes/ - a folder for each specific runtime. - -Each manifest will be applied to all clusters in a specific runtime -both control-plane and the runtime-specific directories are optional. -The runtimes directory will include a separate sub-directory for each runtime installed in the cluster. Each such runtime-directory will include in-cluster.yaml - - -``` -├── resources <───────────────────┐ -│ ├── all-runtimes-all-clusters │ -│ │ ├── manifest1.yaml │ -│ │ └── subfolder │ -│ │ └── manifest2.yaml │ -│ ├── control-planes │ -│ │ └── manifest3.yaml │ -│ ├── runtimes │ -│ │ ├── runtime1 │ -│ │ │ └── manifest4.yaml │ -│ │ └── runtime2 │ -│ │ └── manifest5.yaml │ -│ └── manifest6.yaml │ -└── runtimes │ - ├── runtime1 │ # references by /apps/runtime1/config_dir.json - │ ├── in-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - │ └── other-cluster.yaml ─┤ # manage 'include' field to decide which dirs/files to sync to cluster - └── runtime2 │ # references by /apps/runtime2/config_dir.json - └── in-cluster.yaml ─┘ # manage 'include' field to decide which dirs/files to sync to cluster -``` diff --git a/shared-config/resources/all-runtimes-all-clusters/DUMMY b/shared-config/resources/all-runtimes-all-clusters/DUMMY deleted file mode 100644 index e69de29..0000000 diff --git a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keysmxtl-aws-local-runtime.sealing-key.yaml b/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keysmxtl-aws-local-runtime.sealing-key.yaml deleted file mode 100644 index 4be358f..0000000 --- a/shared-config/resources/control-planes/sealed-secrets/sealed-secrets-keysmxtl-aws-local-runtime.sealing-key.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - creationTimestamp: 2022-12-14T09:15:51.000Z - labels: - sealedsecrets.bitnami.com/sealed-secrets-key: active - codefresh.io/sealing-key-id: 639994fd0055d10030e20b5d - codefresh.io/sealing-key: 'true' - codefresh.io/runtime-name: aws-local-runtime - name: sealed-secrets-keysmxtl -data: - tls.crt: >- - LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUV6RENDQXJTZ0F3SUJBZ0lRSDBVY2VkWDVmRW1RZkdGSnVrcXFJakFOQmdrcWhraUc5dzBCQVFzRkFEQUEKTUI0WERUSXlNVEl4TkRBNU1UVTFNVm9YRFRNeU1USXhNVEE1TVRVMU1Wb3dBRENDQWlJd0RRWUpLb1pJaHZjTgpBUUVCQlFBRGdnSVBBRENDQWdvQ2dnSUJBTkp0eExvTkhsOTR3WllHdUUvbVJiL0tXMHpDbUJnMnZic0c1UDNZClBBRlF5Q0RGUXd3Yk16d0srMUhBTTZwblV2RnlPQytmZklraE10andnY0V4cGU2bUZ6VDA0UHg5QmQ1aExpWU4KTkNJaXNlUU1zbkFVbXN2OGtLSm51NmZKRVVoY0N3YzdJVDZqNDR3TUNqMVNBZmxSWHNxdktQMGM5N0hoTWJ5OQpkSVRNRHM0YytIQXBaZUtHQXpZeE02ZHYzQUIyVGYvVzlPeVFwVC9FOXgvTjV2NDNzblNaM2pHYTVFVjVnRzRsCm9sWldyK3NQUGpCeDVKNHRDTTU5NlBQQ1d4NHZyMHU2YlJmZWVlMDVCT0EzYkJxWFB4SUs2RnhWS2dWd0dFR2QKVmRZaHgwZ2FkY0tqckwwamU1RVpuTzlpckR3VDZrNGw3Y1U1cER2eFdlZmJ6TTFoN3ZNSENVK2dBUkVrL0ZNNgplRHdoT3RoYThkL1FjWnl1WkJMTmlab2JBNVNYNm12Yy9xRjd1OU96a292b3BSL3FJUmJZZlZsRm9kT3lMQlZYCnF0QWVPb3FWZmVXam1JSCtOc3hSMVBCMDhVc1JmbzRzVU4rUzd0RFIwSXNOTVU3WnZRTTIvaytVcjltbnRBMUQKZmgybnZJYnBUQ1M2NUdmTld1S3lnbUV5KzBpa0JOd1QwNU8veWVxcVBwY3owQzRyVFRWcTluTkh1L3BXcDhWZAphZ3hreERHdGdzTXkxK085M2JWc2hpNWcvSVo2cksrcFVkSFdlQjhkaTBveWRCME5XOWU2Y3ZVM3phanhSU0tBCmRSNW9yTUVtWnh6SVpsenR5S1BaSnRkcDVHOTU5UGFXb3dWYkFTVEhFVnN1VWUrdThUUUtWT0VVS0ZLTUcvb2oKeEhGdkFnTUJBQUdqUWpCQU1BNEdBMVVkRHdFQi93UUVBd0lBQVRBUEJnTlZIUk1CQWY4RUJUQURBUUgvTUIwRwpBMVVkRGdRV0JCUzc2OHZWcndXKzlJeXphTEVBN2FUZ1BXUVBEREFOQmdrcWhraUc5dzBCQVFzRkFBT0NBZ0VBCnZrbUVjck9JRFJ1THJRRXhJMGZ4Z1gvZk92bzBTWXRnSDRkZkdBRGxSazBzQ2xKRndRQ0NYSDcrdHpuN242RjYKcFhEVUJtQ1VGR3UyYUE4YVltMmJWVUtFemE2U1RncGVQVE4xYTFlallMUWxjVUVRL1RYY1ZRSENOamJUMzdwRgo2N1pXeGxPS253SUtlbDRycGtVdVhndDNLZlZCWlExTU5DV0c4VzFIazdZN2hGSlJ5NDFwZERBOG95TGdUU2k0CkJTTmVuaHNmc2dYeDdYRnBtVndTT1QxVEl0VnZKekMwT0JNUjRJSFlBWFpwYjRmazNLY29nQ25qaWNWUWZxZnoKMFA5VEJvblZzc210ODM0Vk9TRm9FS1pJS0I4cHp0LzJreGUzMTRUeE5aMEFnd3FWci9jeDkwZGxjcE42UXJ1ZAp1SkNCbDlqcUMrd3ozWnN5T3c1bXljZ1VXUEU2WGVyaUN0MDdUZGR4a1NMOURRMVdDdk1qdGdnNXFUVWFZNnJVCmkxbXRRdUtXWitmL2JydDIxa3UwQk9Jc3cwRnloTWNDVlVmVlFMSmlZenl4Vk9TKzI0Q2tnbXRSVFVMM2ErMzcKV0p1ejd4UEdYeFRtV05TVDV3NFFKTFRod3N6MUlTOUwwMDNSeGtSZ0tBb1RiOExJNlhZWWIyTGdHMis3QWdacgpnbGF3ZW1FTUl3OU8rbE1jSGoySEorbkFuYjZod1gzR3hCNkVIM3Evc3pvaGZ3K09ibGR4Z1F3cTNxcmFmMnp5CnhxaFROQjlnK1dvTmxVWDZCeGlKZHNyL2NIbnZNMjVjWWZKbFY5S2JVK3psdS9FMDd4UDBjL0tzYnNHUWtLUTQKR1RWSVk1U2YreWM4Rks3Z2poSHgyS01wUTNaSXNwRitDclNFd3lWcEI1TT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= - tls.key: >- - 85NXNoa1ZaYlhWeG9vaGNJb2dCNlhxL2s5a0dURWQrWVBqCnlwSllPczdCU0ZJellWUHdSWEV4ZU5zUG1hMnBEZEdzNGsxYzdKQXRUUjBralNwVCtaeTNqV0dhSDErajNEQTEKT3FTK3BNbi85czY4enNXQ1kyVGQ5RlVXaUdkT3ZiN3V3ZVkvdjFFWUdHSW5HaElJcnhpdUpKNlNUR1VZRjBXagoyOFkyb25SaHBxVGNkWjhDZ2dFQkFQTDhSUkM5NHByMjJYKzJyWUM2dm1RczV6TTByc0dPcVlMU0N4UDUzcjBuCkZDR0dUR2ZNT3ZjeERJVlRsVUU3OGJFcTNqMW1jQmFQNTFVT2Fqd05NdzRPR1VIN25wTk8rVjRDUitCaTRlRmgKTXZBaUcxZy9OWmNtZXNSc1lFdHRtWkZab2dISkRoRllML2RDM2JGRk9wRzZMM3hNT0VpbXpzK1NyL0Q5Y1NkOQpneE5Zbldrcythc2ZVMUExQlhVQndRTHFlVnRCYUtKZ3R4b3ZzOE84V3c3Q3FBVGZQWndwVmdkSDIwZXRuWGw1CmNiVXZIZG51RWw0T29WbFlJbWgzeUJjcWwxYjFiVy9pUXVSOFNoVjVvZWpDN0hHeE1vVHdwQmNUakZCQktUejUKYjgzRnFMa0loV1d5SXQ4QmxUNFp6M2hidDBrRzJYMSsyRTg4SFR2N1VqRUNnZ0VBQjNJUlZxbVBQb0I1VVBOSQpaVkhFdFBMU0NrbEM0WUJoQmx6YTN6WjVnMVJ2WW9uTzNnZG04a1JmYzZtK2F1bDhwRGRFYVhjVHRCYTRzWjlMCkt3c0pZaU9EMVlkQ1NlZmErUkRiamJuTmt4NHdVUmJBMDVMdlR5R3FBRytPZmpsMG1sbWNXNXBVclZrdTljK2IKYVZNZXVzclhwVnp6VFR2ZWs1SHAwMDJwL28rcVo4M3pLZ1p2ZWlRVFBhNUR0alRkWjduaS9GdjFISzhiNG4rNQpSeEYwcmxYK2J3dkRURkFjMENsQ1RvMW8yRUpMcTVmcDVCV3JMQVcvOTFSdXloMWIrbUZOYnMwSzJDZVM3em5LCmR5eitJTUg5UnBEeHVMM1YvT28zRXlkL21aVUFmdCs1U2VxWVJJeklIS01VbGNMQ0VBOGNFUG1zMHQ1WTNHRy8KTUFBN2J3S0NBUUFKWkRDekxmT2xNNmRDWldnZFVwcHJPc1VRMkpkc2lid0pmMTdJUGQ4YkJuaWp0eElhN096Vwpnd0hONFdZaWFGTzJHa2NPcm5ma2wxbEVrMU1OMFNESkNVaDJvV2dHbjRYSjJXSzN6SHFZZ0c0OGs4VGt5MFNoCisrM0F5OE9KQnNwcHNNSXZPWHNldG43Y0dxeUEzb0VlQXNrMUQ2a1pQY0UraXBmY1E1OXMvRS9sbm9ZdSszc0cKM3lZVU1vaHNkazNrYy9XT3psOWg3MFVFY1JXTW1pb1d6dlU1Z3Z0Wm5zdGhhcWlTQTZiVGZCc2wrcFUzeUJqVApvOU1lcGVabWpVS2hpcGJnMkltTFNuNTFZRXhvdWhQRThFdTlOVEVUckUxYlN2a2dYUFJnRSsvN1R3bHZaV0hxCmhWRU50M3p5TW9NdlRyUXQwV0wwazhOK2hIOUl3elR4QW9JQkFBTU5lWDZwc0VTS1V5RmNaZm9yVE1QRjI0M1EKQldwSDIycVRSY3JzenltZ3d0V1pxTk5PaWJMUy9HT25KQ0Z2WGtlNlFFTndta1FGNERydXVVOStuNlhCdzRMSApGWnVObFB4ZjBwMVBZVUNaUzVTUzNNZ1QyNlY5dnVpZEZVY0syUU93c3JDZWk0ckttbGRXQmFlS2MrWGlVQ1FxCjg0YXIzQ3ZkRTBiNmQ3S2JLL1A4MmpKczJxSUFWR3cyOTFoVGU0bERPOU8yUENLSGVKSkVYUjZLa1ZtOVVOb2UKY0g1T01wNXlYVmpzQkpzRXF2dTd6R0pZcnlSeTZiMzJQNlg3QUZKRjBseG9obFN4b0dhRGltU1FLaEFCMk93ZwpTcTFoNmlaa2c3WFhqV1BYWVdxb0FlTTNpRHpXY3ZHVTJUbnNtdk14STR6MTdva3dlVGhqV3BSWk5Mbz0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K diff --git a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml b/shared-config/runtimes/aws-local-runtime/in-cluster.yaml deleted file mode 100644 index 0581bc1..0000000 --- a/shared-config/runtimes/aws-local-runtime/in-cluster.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - finalizers: - - resources-finalizer.argocd.argoproj.io - labels: - codefresh.io/entity: internal-config - codefresh.io/internal: "true" - name: in-cluster -spec: - destination: - namespace: aws-local-runtime - server: https://kubernetes.default.svc - project: default - source: - directory: - include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/aws-local-runtime/*.yaml,runtimes/aws-local-runtime/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}' - recurse: true - path: shared-config/resources - repoURL: https://github.com/PhilippPlotnikov/aws-local-runtime.git - targetRevision: HEAD - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true - syncOptions: - - allowEmpty=true From 30887f0637b589783356f4644e62973bb9f08fce Mon Sep 17 00:00:00 2001 From: Darya V Date: Sat, 7 Jan 2023 14:00:25 +0400 Subject: [PATCH 404/411] test 2 --- .idea/.gitignore | 5 +++++ .idea/aws-local-runtime1.iml | 12 ++++++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ test2.txt | 1 + 5 files changed, 32 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/aws-local-runtime1.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 test2.txt diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/aws-local-runtime1.iml b/.idea/aws-local-runtime1.iml new file mode 100644 index 0000000..0c8867d --- /dev/null +++ b/.idea/aws-local-runtime1.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..cc8ba08 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/test2.txt b/test2.txt new file mode 100644 index 0000000..2969be3 --- /dev/null +++ b/test2.txt @@ -0,0 +1 @@ +test 2 From 2a9813b55b3757ab1b3a9048ff88f1f925a2b859 Mon Sep 17 00:00:00 2001 From: Darya V Date: Sat, 7 Jan 2023 14:13:17 +0400 Subject: [PATCH 405/411] wip From 0d26de12e39903246293441adaf23e9b54385a8e Mon Sep 17 00:00:00 2001 From: Darya V Date: Sat, 7 Jan 2023 14:15:30 +0400 Subject: [PATCH 406/411] wip From 25c23f67fe8e161f6649cdb55c8d72cf9f3512ce Mon Sep 17 00:00:00 2001 From: Darya V Date: Sat, 7 Jan 2023 14:16:38 +0400 Subject: [PATCH 407/411] wip From 341e012f4f1fa24c3185b4ff576146eeb3aa3f10 Mon Sep 17 00:00:00 2001 From: Darya V Date: Mon, 16 Jan 2023 15:13:18 +0400 Subject: [PATCH 408/411] WIP From aceaff443d5acbb269c39040d994f5c612942571 Mon Sep 17 00:00:00 2001 From: Darya V Date: Mon, 16 Jan 2023 15:20:27 +0400 Subject: [PATCH 409/411] WIP From 0d5eaa0cd6642f355324265888ecad03d89aa9a5 Mon Sep 17 00:00:00 2001 From: Darya V Date: Mon, 16 Jan 2023 15:21:29 +0400 Subject: [PATCH 410/411] WIP From e404bfbd08ec9c06fffc2e738797d1060c37a236 Mon Sep 17 00:00:00 2001 From: Darya V Date: Mon, 16 Jan 2023 15:23:09 +0400 Subject: [PATCH 411/411] WIP