From 1102d5e7ba377222236a4be028cd10a21538fb19 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Tue, 30 May 2023 18:17:57 +0300 Subject: [PATCH 001/151] Validating repository write permission From c1a7152513a61d56117544b43972b31c409e0425 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Tue, 30 May 2023 18:17:58 +0300 Subject: [PATCH 002/151] Autopilot Uninstall --- apps/README.md | 27 ---- apps/app-proxy/base/kustomization.yaml | 4 - .../overlays/onprem-test/config.json | 16 --- .../overlays/onprem-test/kustomization.yaml | 14 --- .../onprem-test/config_helm.json | 18 --- .../onprem-test/config_dir.json | 18 --- .../onprem-test/config_dir.json | 18 --- .../onprem-test/resources/event-source.yaml | 23 ---- .../onprem-test/resources/sensor.yaml | 42 ------- apps/events/base/kustomization.yaml | 4 - apps/events/overlays/onprem-test/config.json | 16 --- .../overlays/onprem-test/kustomization.yaml | 5 - apps/internal-router/base/kustomization.yaml | 4 - .../overlays/onprem-test/config.json | 16 --- .../overlays/onprem-test/kustomization.yaml | 5 - .../onprem-test/config_dir.json | 18 --- .../onprem-test/config_dir.json | 18 --- .../onprem-test/resources/event-source.yaml | 50 -------- .../onprem-test/resources/rbac.yaml | 35 ------ .../onprem-test/resources/sensor.yaml | 92 -------------- apps/rollouts/base/kustomization.yaml | 4 - .../rollouts/overlays/onprem-test/config.json | 16 --- .../overlays/onprem-test/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/onprem-test/config.json | 16 --- .../overlays/onprem-test/kustomization.yaml | 5 - .../onprem-test/config_dir.json | 18 --- .../onprem-test/resources/event-source.yaml | 28 ----- .../onprem-test/resources/rbac.yaml | 37 ------ .../onprem-test/resources/sensor.yaml | 42 ------- apps/workflows/base/kustomization.yaml | 4 - .../overlays/onprem-test/config.json | 16 --- .../overlays/onprem-test/kustomization.yaml | 12 -- .../overlays/onprem-test/route-patch.json | 12 -- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/cluster-resources.yaml | 50 -------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/onprem-test-ns.yaml | 9 -- bootstrap/onprem-test.yaml | 54 -------- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/onprem-test.yaml | 119 ------------------ 45 files changed, 1017 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/onprem-test/config.json delete mode 100644 apps/app-proxy/overlays/onprem-test/kustomization.yaml delete mode 100644 apps/codefresh-tunnel-client/onprem-test/config_helm.json delete mode 100644 apps/default-git-source/onprem-test/config_dir.json delete mode 100644 apps/events-reporter/onprem-test/config_dir.json delete mode 100644 apps/events-reporter/onprem-test/resources/event-source.yaml delete mode 100644 apps/events-reporter/onprem-test/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/onprem-test/config.json delete mode 100644 apps/events/overlays/onprem-test/kustomization.yaml delete mode 100644 apps/internal-router/base/kustomization.yaml delete mode 100644 apps/internal-router/overlays/onprem-test/config.json delete mode 100644 apps/internal-router/overlays/onprem-test/kustomization.yaml delete mode 100644 apps/marketplace-git-source/onprem-test/config_dir.json delete mode 100644 apps/rollout-reporter/onprem-test/config_dir.json delete mode 100644 apps/rollout-reporter/onprem-test/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/onprem-test/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/onprem-test/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/onprem-test/config.json delete mode 100644 apps/rollouts/overlays/onprem-test/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/onprem-test/config.json delete mode 100644 apps/sealed-secrets/overlays/onprem-test/kustomization.yaml delete mode 100644 apps/workflow-reporter/onprem-test/config_dir.json delete mode 100644 apps/workflow-reporter/onprem-test/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/onprem-test/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/onprem-test/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/onprem-test/config.json delete mode 100644 apps/workflows/overlays/onprem-test/kustomization.yaml delete mode 100644 apps/workflows/overlays/onprem-test/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/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/onprem-test-ns.yaml delete mode 100644 bootstrap/onprem-test.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/onprem-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 991577b..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.29 diff --git a/apps/app-proxy/overlays/onprem-test/config.json b/apps/app-proxy/overlays/onprem-test/config.json deleted file mode 100644 index 7cb51f1..0000000 --- a/apps/app-proxy/overlays/onprem-test/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/onprem-test", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem-test/kustomization.yaml b/apps/app-proxy/overlays/onprem-test/kustomization.yaml deleted file mode 100644 index 062a913..0000000 --- a/apps/app-proxy/overlays/onprem-test/kustomization.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://hermes-onprem-test.cf-op.com/ - - cors=https://hermes-onprem-test.cf-op.com/ - - env=production - - skipPermissionsValidation=false - name: cap-app-proxy-cm -kind: Kustomization -namespace: onprem-test -resources: -- ../../base diff --git a/apps/codefresh-tunnel-client/onprem-test/config_helm.json b/apps/codefresh-tunnel-client/onprem-test/config_helm.json deleted file mode 100644 index e8007f9..0000000 --- a/apps/codefresh-tunnel-client/onprem-test/config_helm.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "codefresh-tunnel-client", - "userGivenName": "codefresh-tunnel-client", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "codefresh-tunnel-client", - "srcRepoURL": "https://github.com/codefresh-io/codefresh-tunnel-charts.git", - "srcTargetRevision": "0.1.8", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "srcChart": "", - "values": "tunnel:\n ipsAllowList: \"\"\n subdomainPrefix: 59009117c102763beda7ce71-onprem-test\ntunnelServer:\n host: register-tunnels.cf-cd.com\n" -} \ No newline at end of file diff --git a/apps/default-git-source/onprem-test/config_dir.json b/apps/default-git-source/onprem-test/config_dir.json deleted file mode 100644 index cd6db7d..0000000 --- a/apps/default-git-source/onprem-test/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_onprem-test", - "srcRepoURL": "https://github.com/alina-codefresh/first_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/onprem-test/config_dir.json b/apps/events-reporter/onprem-test/config_dir.json deleted file mode 100644 index 1458502..0000000 --- a/apps/events-reporter/onprem-test/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/onprem-test/resources", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem-test/resources/event-source.yaml b/apps/events-reporter/onprem-test/resources/event-source.yaml deleted file mode 100644 index dcb8974..0000000 --- a/apps/events-reporter/onprem-test/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: onprem-test -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.onprem-test.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/onprem-test/resources/sensor.yaml b/apps/events-reporter/onprem-test/resources/sensor.yaml deleted file mode 100644 index 15cd059..0000000 --- a/apps/events-reporter/onprem-test/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: onprem-test -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://hermes-onprem-test.cf-op.com/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 3483b8f..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.29 diff --git a/apps/events/overlays/onprem-test/config.json b/apps/events/overlays/onprem-test/config.json deleted file mode 100644 index a95be1c..0000000 --- a/apps/events/overlays/onprem-test/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/onprem-test", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem-test/kustomization.yaml b/apps/events/overlays/onprem-test/kustomization.yaml deleted file mode 100644 index 8ced175..0000000 --- a/apps/events/overlays/onprem-test/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: onprem-test -resources: -- ../../base diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml deleted file mode 100644 index 957b171..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.29 diff --git a/apps/internal-router/overlays/onprem-test/config.json b/apps/internal-router/overlays/onprem-test/config.json deleted file mode 100644 index 50115f4..0000000 --- a/apps/internal-router/overlays/onprem-test/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "internal-router", - "userGivenName": "internal-router", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/internal-router/overlays/onprem-test", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem-test/kustomization.yaml b/apps/internal-router/overlays/onprem-test/kustomization.yaml deleted file mode 100644 index 8ced175..0000000 --- a/apps/internal-router/overlays/onprem-test/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: onprem-test -resources: -- ../../base diff --git a/apps/marketplace-git-source/onprem-test/config_dir.json b/apps/marketplace-git-source/onprem-test/config_dir.json deleted file mode 100644 index e1c6fc5..0000000 --- a/apps/marketplace-git-source/onprem-test/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "onprem-test", - "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/onprem-test/config_dir.json b/apps/rollout-reporter/onprem-test/config_dir.json deleted file mode 100644 index f30a697..0000000 --- a/apps/rollout-reporter/onprem-test/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/onprem-test/resources", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem-test/resources/event-source.yaml b/apps/rollout-reporter/onprem-test/resources/event-source.yaml deleted file mode 100644 index 13c8118..0000000 --- a/apps/rollout-reporter/onprem-test/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: onprem-test -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/onprem-test/resources/rbac.yaml b/apps/rollout-reporter/onprem-test/resources/rbac.yaml deleted file mode 100644 index 4acbccc..0000000 --- a/apps/rollout-reporter/onprem-test/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: onprem-test - ---- -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: onprem-test diff --git a/apps/rollout-reporter/onprem-test/resources/sensor.yaml b/apps/rollout-reporter/onprem-test/resources/sensor.yaml deleted file mode 100644 index 61c51ac..0000000 --- a/apps/rollout-reporter/onprem-test/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: onprem-test -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://hermes-onprem-test.cf-op.com/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://hermes-onprem-test.cf-op.com/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://hermes-onprem-test.cf-op.com/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 2950a9e..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.29 diff --git a/apps/rollouts/overlays/onprem-test/config.json b/apps/rollouts/overlays/onprem-test/config.json deleted file mode 100644 index 7e1e064..0000000 --- a/apps/rollouts/overlays/onprem-test/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/onprem-test", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem-test/kustomization.yaml b/apps/rollouts/overlays/onprem-test/kustomization.yaml deleted file mode 100644 index 8ced175..0000000 --- a/apps/rollouts/overlays/onprem-test/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: onprem-test -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index ddf8ff9..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.29 diff --git a/apps/sealed-secrets/overlays/onprem-test/config.json b/apps/sealed-secrets/overlays/onprem-test/config.json deleted file mode 100644 index d4b7df8..0000000 --- a/apps/sealed-secrets/overlays/onprem-test/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/onprem-test", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem-test/kustomization.yaml b/apps/sealed-secrets/overlays/onprem-test/kustomization.yaml deleted file mode 100644 index 8ced175..0000000 --- a/apps/sealed-secrets/overlays/onprem-test/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: onprem-test -resources: -- ../../base diff --git a/apps/workflow-reporter/onprem-test/config_dir.json b/apps/workflow-reporter/onprem-test/config_dir.json deleted file mode 100644 index 3eb14a2..0000000 --- a/apps/workflow-reporter/onprem-test/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/onprem-test/resources", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem-test/resources/event-source.yaml b/apps/workflow-reporter/onprem-test/resources/event-source.yaml deleted file mode 100644 index e109104..0000000 --- a/apps/workflow-reporter/onprem-test/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: onprem-test -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: onprem-test - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/onprem-test/resources/rbac.yaml b/apps/workflow-reporter/onprem-test/resources/rbac.yaml deleted file mode 100644 index 88b4d77..0000000 --- a/apps/workflow-reporter/onprem-test/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: onprem-test - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: onprem-test -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: onprem-test -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: onprem-test diff --git a/apps/workflow-reporter/onprem-test/resources/sensor.yaml b/apps/workflow-reporter/onprem-test/resources/sensor.yaml deleted file mode 100644 index 03f6055..0000000 --- a/apps/workflow-reporter/onprem-test/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: onprem-test -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://hermes-onprem-test.cf-op.com/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 4e5b563..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.29 diff --git a/apps/workflows/overlays/onprem-test/config.json b/apps/workflows/overlays/onprem-test/config.json deleted file mode 100644 index cc4f13f..0000000 --- a/apps/workflows/overlays/onprem-test/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "onprem-test", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/onprem-test", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem-test/kustomization.yaml b/apps/workflows/overlays/onprem-test/kustomization.yaml deleted file mode 100644 index 55f5857..0000000 --- a/apps/workflows/overlays/onprem-test/kustomization.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: onprem-test -patches: -- path: route-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base diff --git a/apps/workflows/overlays/onprem-test/route-patch.json b/apps/workflows/overlays/onprem-test/route-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/onprem-test/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 e69427f..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: onprem-test -spec: - destination: - namespace: onprem-test - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/alina-codefresh/first.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 fa6df67..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: onprem-test -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.29 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 56ae306..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - labels: - codefresh.io/internal: "true" - name: cluster-resources - namespace: onprem-test -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/alina-codefresh/first.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: onprem-test - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/alina-codefresh/first.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/onprem-test-ns.yaml b/bootstrap/cluster-resources/in-cluster/onprem-test-ns.yaml deleted file mode 100644 index 8135103..0000000 --- a/bootstrap/cluster-resources/in-cluster/onprem-test-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: onprem-test -spec: {} -status: {} diff --git a/bootstrap/onprem-test.yaml b/bootstrap/onprem-test.yaml deleted file mode 100644 index c1e539a..0000000 --- a/bootstrap/onprem-test.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: v1 -data: - base-url: https://hermes-onprem-test.cf-op.com/ - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: onprem-test - namespace: onprem-test - spec: - accessMode: TUNNEL - bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd - cluster: https://B2A8F47D84174C53308248C7BB3693A1.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.29 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.29 - - name: workflows - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.29 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.29 - - name: internal-router - syncWave: 10 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.29 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.29 - - feature: ingressless - name: codefresh-tunnel-client - type: helm - url: github.com/codefresh-io/codefresh-tunnel-charts/codefresh-tunnel-client?ref=0.1.8 - defVersion: null - ingressHost: https://59009117c102763beda7ce71-onprem-test.tunnels.cf-cd.com - ref: "" - repo: https://github.com/alina-codefresh/first - requiredCLIVersion: ^0.1.0 - version: 0.1.29 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: onprem-test diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index eab1ede..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: onprem-test -spec: - destination: - namespace: onprem-test - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/alina-codefresh/first.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/onprem-test.yaml b/projects/onprem-test.yaml deleted file mode 100644 index 1dcc5c0..0000000 --- a/projects/onprem-test.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: onprem-test - namespace: onprem-test -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: onprem-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: onprem-test - namespace: onprem-test -spec: - generators: - - git: - files: - - path: apps/**/onprem-test/config.json - repoURL: https://github.com/alina-codefresh/first.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/onprem-test/config_dir.json - repoURL: https://github.com/alina-codefresh/first.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/onprem-test/config_helm.json - repoURL: https://github.com/alina-codefresh/first.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: onprem-test-{{ 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: onprem-test-{{ userGivenName }} - namespace: onprem-test - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: onprem-test - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 41c99cf745160d0f4554cd87934afaf06df63d68 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Tue, 30 May 2023 18:21:51 +0300 Subject: [PATCH 003/151] 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 c13942f425af866b7d5ff19fc0a6da2c27c33008 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 11:11:49 +0300 Subject: [PATCH 004/151] Validating repository write permission From d7953e4f280100fc93084866335d7c76a4a17339 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 11:11:50 +0300 Subject: [PATCH 005/151] 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 7b487ad26c9ca0b0dbafacc3db9e2f0eeeded47f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 11:12:07 +0300 Subject: [PATCH 006/151] 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 308df76f21d2164e3905d0bb1d2992b295cf8898 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 11:47:20 +0300 Subject: [PATCH 007/151] Create test-commit.txt --- test-commit.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test-commit.txt diff --git a/test-commit.txt b/test-commit.txt new file mode 100644 index 0000000..38c98d9 --- /dev/null +++ b/test-commit.txt @@ -0,0 +1 @@ +test-2 From 7cbf42eb571e01c20de833ac8683cbe39d6534f4 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:15:16 +0300 Subject: [PATCH 008/151] Validating repository write permission From a0f18e0473b9f4123f71445ceba430dad0e42041 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:19 +0300 Subject: [PATCH 009/151] 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/runtime-a-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/runtime-a-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..692d6fc --- /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: runtime-a +spec: + destination: + namespace: runtime-a + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/alina-codefresh/first.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..ee182c1 --- /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: runtime-a +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.29 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..2f5723f --- /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: runtime-a +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/alina-codefresh/first.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: runtime-a + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/alina-codefresh/first.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/runtime-a-ns.yaml b/bootstrap/cluster-resources/in-cluster/runtime-a-ns.yaml new file mode 100644 index 0000000..9617736 --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/runtime-a-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: runtime-a +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..96b958a --- /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: runtime-a +spec: + destination: + namespace: runtime-a + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/alina-codefresh/first.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 e4d61aab7f5791b5bd9ef8e85c6381a0246635cd Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:26 +0300 Subject: [PATCH 010/151] Validating repository write permission From df130ac7597b2383b06771ff99763b2565c14929 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:27 +0300 Subject: [PATCH 011/151] patch cluster-resources ApplicationSet --- bootstrap/cluster-resources.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml index 2f5723f..1bc88eb 100644 --- a/bootstrap/cluster-resources.yaml +++ b/bootstrap/cluster-resources.yaml @@ -4,6 +4,8 @@ metadata: annotations: argocd.argoproj.io/sync-wave: "0" creationTimestamp: null + labels: + codefresh.io/internal: "true" name: cluster-resources namespace: runtime-a spec: From d6c767df78ff4ba5bb0e4f938fa1c3ba1245db63 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:28 +0300 Subject: [PATCH 012/151] Validating repository write permission From 5e67d0ed21663264288eb65f4b5d3f084f2cd283 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:29 +0300 Subject: [PATCH 013/151] Added project 'runtime-a' --- projects/runtime-a.yaml | 100 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/runtime-a.yaml diff --git a/projects/runtime-a.yaml b/projects/runtime-a.yaml new file mode 100644 index 0000000..5a0e287 --- /dev/null +++ b/projects/runtime-a.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: runtime-a + namespace: runtime-a +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: runtime-a 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: runtime-a + namespace: runtime-a +spec: + generators: + - git: + files: + - path: apps/**/runtime-a/config.json + repoURL: https://github.com/alina-codefresh/first.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/runtime-a/config_dir.json + repoURL: https://github.com/alina-codefresh/first.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: runtime-a-{{ userGivenName }} + namespace: runtime-a + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: runtime-a + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From bc68b996d18e56e53461539b85c3f690f0bd4852 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:30 +0300 Subject: [PATCH 014/151] Validating repository write permission From 4834cd9282f9a08a8d4abd32ef947cbaa1e8d3d4 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:31 +0300 Subject: [PATCH 015/151] Persisted runtime data --- bootstrap/runtime-a.yaml | 54 ++++++++++++++++++++++++++++++++++++++++ projects/runtime-a.yaml | 19 ++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 bootstrap/runtime-a.yaml diff --git a/bootstrap/runtime-a.yaml b/bootstrap/runtime-a.yaml new file mode 100644 index 0000000..825503a --- /dev/null +++ b/bootstrap/runtime-a.yaml @@ -0,0 +1,54 @@ +apiVersion: v1 +data: + base-url: https://g.codefresh.io + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: runtime-a + namespace: runtime-a + spec: + accessMode: TUNNEL + bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd + cluster: https://B2A8F47D84174C53308248C7BB3693A1.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.29 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.29 + - name: workflows + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.29 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.29 + - name: internal-router + syncWave: 10 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.29 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.29 + - feature: ingressless + name: codefresh-tunnel-client + type: helm + url: github.com/codefresh-io/codefresh-tunnel-charts/codefresh-tunnel-client?ref=0.1.8 + defVersion: null + ingressHost: https://63a09886832a4db0cdb5ca76-runtime-a.tunnels.cf-cd.com + ref: "" + repo: https://github.com/alina-codefresh/first + requiredCLIVersion: ^0.1.0 + version: 0.1.29 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: runtime-a diff --git a/projects/runtime-a.yaml b/projects/runtime-a.yaml index 5a0e287..33bb78d 100644 --- a/projects/runtime-a.yaml +++ b/projects/runtime-a.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: runtime-a namespace: runtime-a spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/runtime-a/config_helm.json + repoURL: https://github.com/alina-codefresh/first.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: runtime-a-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 2858e7f7a857c65fc3fdd62a4488cbc297bc698f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:37 +0300 Subject: [PATCH 016/151] Validating repository write permission From 6ab5e60464a730f183a52aa46f50d8c901f1169f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:38 +0300 Subject: [PATCH 017/151] installed app 'events' on project 'runtime-a' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ apps/events/overlays/runtime-a/config.json | 16 ++++++++++++++++ .../events/overlays/runtime-a/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/runtime-a/config.json create mode 100644 apps/events/overlays/runtime-a/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..3483b8f --- /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.29 diff --git a/apps/events/overlays/runtime-a/config.json b/apps/events/overlays/runtime-a/config.json new file mode 100644 index 0000000..ee87990 --- /dev/null +++ b/apps/events/overlays/runtime-a/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/runtime-a", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/events/overlays/runtime-a/kustomization.yaml new file mode 100644 index 0000000..9a5b2b9 --- /dev/null +++ b/apps/events/overlays/runtime-a/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: runtime-a +resources: +- ../../base From 1eb19268ef490bdb9dbebc4f22e3836145bb13eb Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:58 +0300 Subject: [PATCH 018/151] Validating repository write permission From 6094ed12d2d3f2852b9ee5201e0724705724a3bd Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:16:59 +0300 Subject: [PATCH 019/151] installed app 'rollouts' on project 'runtime-a' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ apps/rollouts/overlays/runtime-a/config.json | 16 ++++++++++++++++ .../overlays/runtime-a/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/runtime-a/config.json create mode 100644 apps/rollouts/overlays/runtime-a/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..2950a9e --- /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.29 diff --git a/apps/rollouts/overlays/runtime-a/config.json b/apps/rollouts/overlays/runtime-a/config.json new file mode 100644 index 0000000..37a96c9 --- /dev/null +++ b/apps/rollouts/overlays/runtime-a/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/runtime-a", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/rollouts/overlays/runtime-a/kustomization.yaml new file mode 100644 index 0000000..9a5b2b9 --- /dev/null +++ b/apps/rollouts/overlays/runtime-a/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: runtime-a +resources: +- ../../base From b044e30ddd9e363b2b305cec1976602afbea47be Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:01 +0300 Subject: [PATCH 020/151] Validating repository write permission From 3a39b6c6d98e163014e0eeb3990d0a17390f9691 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:02 +0300 Subject: [PATCH 021/151] installed app 'workflows' on project 'runtime-a' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ apps/workflows/overlays/runtime-a/config.json | 16 ++++++++++++++++ .../overlays/runtime-a/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/runtime-a/config.json create mode 100644 apps/workflows/overlays/runtime-a/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..4e5b563 --- /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.29 diff --git a/apps/workflows/overlays/runtime-a/config.json b/apps/workflows/overlays/runtime-a/config.json new file mode 100644 index 0000000..6f214d3 --- /dev/null +++ b/apps/workflows/overlays/runtime-a/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/runtime-a", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/workflows/overlays/runtime-a/kustomization.yaml new file mode 100644 index 0000000..9a5b2b9 --- /dev/null +++ b/apps/workflows/overlays/runtime-a/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: runtime-a +resources: +- ../../base From 263d3724bd9da1adbb7fd788829c9d7d88979a3d Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:03 +0300 Subject: [PATCH 022/151] Validating repository write permission From abfd325b141698c16ec7358c039a2d4c9d21cd4f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:04 +0300 Subject: [PATCH 023/151] installed app 'app-proxy' on project 'runtime-a' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ apps/app-proxy/overlays/runtime-a/config.json | 16 ++++++++++++++++ .../overlays/runtime-a/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/runtime-a/config.json create mode 100644 apps/app-proxy/overlays/runtime-a/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..991577b --- /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.29 diff --git a/apps/app-proxy/overlays/runtime-a/config.json b/apps/app-proxy/overlays/runtime-a/config.json new file mode 100644 index 0000000..cc4f4cb --- /dev/null +++ b/apps/app-proxy/overlays/runtime-a/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/runtime-a", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/app-proxy/overlays/runtime-a/kustomization.yaml new file mode 100644 index 0000000..9a5b2b9 --- /dev/null +++ b/apps/app-proxy/overlays/runtime-a/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: runtime-a +resources: +- ../../base From 2f37078316a74d872eb44dcaac65c6d830020adf Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:07 +0300 Subject: [PATCH 024/151] Validating repository write permission From a0858f67dd439ca9de34cb5b47cfe269a2ac235f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:08 +0300 Subject: [PATCH 025/151] installed app 'internal-router' on project 'runtime-a' installation-path: '/' --- apps/internal-router/base/kustomization.yaml | 4 ++++ .../overlays/runtime-a/config.json | 16 ++++++++++++++++ .../overlays/runtime-a/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/internal-router/base/kustomization.yaml create mode 100644 apps/internal-router/overlays/runtime-a/config.json create mode 100644 apps/internal-router/overlays/runtime-a/kustomization.yaml diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml new file mode 100644 index 0000000..957b171 --- /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.29 diff --git a/apps/internal-router/overlays/runtime-a/config.json b/apps/internal-router/overlays/runtime-a/config.json new file mode 100644 index 0000000..f912072 --- /dev/null +++ b/apps/internal-router/overlays/runtime-a/config.json @@ -0,0 +1,16 @@ +{ + "appName": "internal-router", + "userGivenName": "internal-router", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/internal-router/overlays/runtime-a", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/internal-router/overlays/runtime-a/kustomization.yaml new file mode 100644 index 0000000..9a5b2b9 --- /dev/null +++ b/apps/internal-router/overlays/runtime-a/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: runtime-a +resources: +- ../../base From 7e219d33f630814515bab1793c17a79634348206 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:09 +0300 Subject: [PATCH 026/151] Validating repository write permission From 17834c7fc32508669bd87e2f4828db32f13161e9 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:10 +0300 Subject: [PATCH 027/151] installed app 'sealed-secrets' on project 'runtime-a' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ .../overlays/runtime-a/config.json | 16 ++++++++++++++++ .../overlays/runtime-a/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/runtime-a/config.json create mode 100644 apps/sealed-secrets/overlays/runtime-a/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..ddf8ff9 --- /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.29 diff --git a/apps/sealed-secrets/overlays/runtime-a/config.json b/apps/sealed-secrets/overlays/runtime-a/config.json new file mode 100644 index 0000000..46575b7 --- /dev/null +++ b/apps/sealed-secrets/overlays/runtime-a/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/runtime-a", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/sealed-secrets/overlays/runtime-a/kustomization.yaml new file mode 100644 index 0000000..9a5b2b9 --- /dev/null +++ b/apps/sealed-secrets/overlays/runtime-a/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: runtime-a +resources: +- ../../base From b2fd4e0e0d9cfb6d15bd862984c3487dc4b20e52 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:11 +0300 Subject: [PATCH 028/151] Validating repository write permission From f9733055ecd15363e94c91c068455e798aa38f3c Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:12 +0300 Subject: [PATCH 029/151] installed app 'codefresh-tunnel-client' on project 'runtime-a' installation-path: '/' --- .../runtime-a/config_helm.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/codefresh-tunnel-client/runtime-a/config_helm.json diff --git a/apps/codefresh-tunnel-client/runtime-a/config_helm.json b/apps/codefresh-tunnel-client/runtime-a/config_helm.json new file mode 100644 index 0000000..e8ac92d --- /dev/null +++ b/apps/codefresh-tunnel-client/runtime-a/config_helm.json @@ -0,0 +1,18 @@ +{ + "appName": "codefresh-tunnel-client", + "userGivenName": "codefresh-tunnel-client", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "codefresh-tunnel-client", + "srcRepoURL": "https://github.com/codefresh-io/codefresh-tunnel-charts.git", + "srcTargetRevision": "0.1.8", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "srcChart": "", + "values": "tunnel:\n ipsAllowList: \"\"\n subdomainPrefix: 63a09886832a4db0cdb5ca76-runtime-a\ntunnelServer:\n host: register-tunnels.cf-cd.com\n" +} \ No newline at end of file From 435b102703fc46a1025b01b2da0cf5c4823b00bf Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:14 +0300 Subject: [PATCH 030/151] Validating repository write permission From 577223147b5ba5adcc547f1cb5dee8559ca984d7 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:15 +0300 Subject: [PATCH 031/151] Configured Argo Workflows --- apps/workflows/overlays/runtime-a/kustomization.yaml | 7 +++++++ apps/workflows/overlays/runtime-a/route-patch.json | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 apps/workflows/overlays/runtime-a/route-patch.json diff --git a/apps/workflows/overlays/runtime-a/kustomization.yaml b/apps/workflows/overlays/runtime-a/kustomization.yaml index 9a5b2b9..0127d90 100644 --- a/apps/workflows/overlays/runtime-a/kustomization.yaml +++ b/apps/workflows/overlays/runtime-a/kustomization.yaml @@ -1,5 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: runtime-a +patches: +- path: route-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base diff --git a/apps/workflows/overlays/runtime-a/route-patch.json b/apps/workflows/overlays/runtime-a/route-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/runtime-a/route-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] From bbcf690197048ccb419ca7ede33827a71d3cb698 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:16 +0300 Subject: [PATCH 032/151] Validating repository write permission From 9140bbd15cce99402d1655bd8c97b1d332e099d8 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:17 +0300 Subject: [PATCH 033/151] Updated App-Proxy configuration --- apps/app-proxy/overlays/runtime-a/kustomization.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/app-proxy/overlays/runtime-a/kustomization.yaml b/apps/app-proxy/overlays/runtime-a/kustomization.yaml index 9a5b2b9..21c125c 100644 --- a/apps/app-proxy/overlays/runtime-a/kustomization.yaml +++ b/apps/app-proxy/overlays/runtime-a/kustomization.yaml @@ -1,4 +1,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://g.codefresh.io + - cors=https://g.codefresh.io + - env=production + - skipPermissionsValidation=false + name: cap-app-proxy-cm kind: Kustomization namespace: runtime-a resources: From ea1374b55566386d032ef75ab29f1f66304dcf34 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:18 +0300 Subject: [PATCH 034/151] Validating repository write permission From 8c520c3766ec2707a5caff91ac7adb74c6d45a8c Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:19 +0300 Subject: [PATCH 035/151] installed app 'events-reporter' on project 'runtime-a' installation-path: '/' --- apps/events-reporter/runtime-a/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/runtime-a/config_dir.json diff --git a/apps/events-reporter/runtime-a/config_dir.json b/apps/events-reporter/runtime-a/config_dir.json new file mode 100644 index 0000000..4e597bd --- /dev/null +++ b/apps/events-reporter/runtime-a/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/runtime-a/resources", + "srcRepoURL": "https://github.com/alina-codefresh/first.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 b37682e0094a9c779ce1ca24964259bb43dd0301 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:21 +0300 Subject: [PATCH 036/151] Validating repository write permission From 7f38cc5826f9e404e519d54b3c18dc4f9d88ecee Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:22 +0300 Subject: [PATCH 037/151] Created Codefresh Event Reporter --- .../runtime-a/resources/event-source.yaml | 23 ++++++++++ .../runtime-a/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/runtime-a/resources/event-source.yaml create mode 100644 apps/events-reporter/runtime-a/resources/sensor.yaml diff --git a/apps/events-reporter/runtime-a/resources/event-source.yaml b/apps/events-reporter/runtime-a/resources/event-source.yaml new file mode 100644 index 0000000..53ed7a9 --- /dev/null +++ b/apps/events-reporter/runtime-a/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: runtime-a +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.runtime-a.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/runtime-a/resources/sensor.yaml b/apps/events-reporter/runtime-a/resources/sensor.yaml new file mode 100644 index 0000000..e3e40aa --- /dev/null +++ b/apps/events-reporter/runtime-a/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: runtime-a +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 fbf979fcc5530455117d978407f2efb536e7e1bf Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:23 +0300 Subject: [PATCH 038/151] Validating repository write permission From 82efc455aea84f09f1fe15bcdfdcc5f1269e51e4 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:24 +0300 Subject: [PATCH 039/151] installed app 'workflow-reporter' on project 'runtime-a' installation-path: '/' --- .../runtime-a/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/runtime-a/config_dir.json diff --git a/apps/workflow-reporter/runtime-a/config_dir.json b/apps/workflow-reporter/runtime-a/config_dir.json new file mode 100644 index 0000000..45fa9c0 --- /dev/null +++ b/apps/workflow-reporter/runtime-a/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/runtime-a/resources", + "srcRepoURL": "https://github.com/alina-codefresh/first.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 ffe565fe22f11c8f577998c2e2b67d23f1e77732 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:25 +0300 Subject: [PATCH 040/151] Validating repository write permission From 438ac03d9611d5e9c78bf656d18eeee44337ca46 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:26 +0300 Subject: [PATCH 041/151] Created CodefreshWorkflow-ReporterReporter --- .../runtime-a/resources/event-source.yaml | 28 +++++++++++++ .../runtime-a/resources/rbac.yaml | 37 ++++++++++++++++ .../runtime-a/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/runtime-a/resources/event-source.yaml create mode 100644 apps/workflow-reporter/runtime-a/resources/rbac.yaml create mode 100644 apps/workflow-reporter/runtime-a/resources/sensor.yaml diff --git a/apps/workflow-reporter/runtime-a/resources/event-source.yaml b/apps/workflow-reporter/runtime-a/resources/event-source.yaml new file mode 100644 index 0000000..c33233e --- /dev/null +++ b/apps/workflow-reporter/runtime-a/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: runtime-a +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: runtime-a + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/runtime-a/resources/rbac.yaml b/apps/workflow-reporter/runtime-a/resources/rbac.yaml new file mode 100644 index 0000000..6ec07f5 --- /dev/null +++ b/apps/workflow-reporter/runtime-a/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: runtime-a + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: runtime-a +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: runtime-a +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: runtime-a diff --git a/apps/workflow-reporter/runtime-a/resources/sensor.yaml b/apps/workflow-reporter/runtime-a/resources/sensor.yaml new file mode 100644 index 0000000..0fadcd0 --- /dev/null +++ b/apps/workflow-reporter/runtime-a/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: runtime-a +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 52bd7d712c5987d879dadc5e8b3f3cbadde8d80d Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:28 +0300 Subject: [PATCH 042/151] Validating repository write permission From b84ab5789e0376b568a5787e8dfcd4f6dcd6e5c0 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:28 +0300 Subject: [PATCH 043/151] installed app 'rollout-reporter' on project 'runtime-a' installation-path: '/' --- .../rollout-reporter/runtime-a/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/runtime-a/config_dir.json diff --git a/apps/rollout-reporter/runtime-a/config_dir.json b/apps/rollout-reporter/runtime-a/config_dir.json new file mode 100644 index 0000000..cb8562b --- /dev/null +++ b/apps/rollout-reporter/runtime-a/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/runtime-a/resources", + "srcRepoURL": "https://github.com/alina-codefresh/first.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 e818af1c0ee4cc8d4c50281787b2f910576accc3 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:32 +0300 Subject: [PATCH 044/151] Validating repository write permission From 1abb3455036687cd26325a10ad36fc0740751da3 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:33 +0300 Subject: [PATCH 045/151] Created CodefreshRollout-ReporterReporter --- .../runtime-a/resources/event-source.yaml | 50 ++++++++++ .../runtime-a/resources/rbac.yaml | 35 +++++++ .../runtime-a/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/runtime-a/resources/event-source.yaml create mode 100644 apps/rollout-reporter/runtime-a/resources/rbac.yaml create mode 100644 apps/rollout-reporter/runtime-a/resources/sensor.yaml diff --git a/apps/rollout-reporter/runtime-a/resources/event-source.yaml b/apps/rollout-reporter/runtime-a/resources/event-source.yaml new file mode 100644 index 0000000..be298fa --- /dev/null +++ b/apps/rollout-reporter/runtime-a/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: runtime-a +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/runtime-a/resources/rbac.yaml b/apps/rollout-reporter/runtime-a/resources/rbac.yaml new file mode 100644 index 0000000..b019ac6 --- /dev/null +++ b/apps/rollout-reporter/runtime-a/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: runtime-a + +--- +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: runtime-a diff --git a/apps/rollout-reporter/runtime-a/resources/sensor.yaml b/apps/rollout-reporter/runtime-a/resources/sensor.yaml new file mode 100644 index 0000000..2922eda --- /dev/null +++ b/apps/rollout-reporter/runtime-a/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: runtime-a +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 f5ed5c4f8b99046ecdca3e8781766adf66ba6e69 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:36 +0300 Subject: [PATCH 046/151] Validating repository write permission From e740acd576e87131642b6c71c4f8d8fe218760df Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:36 +0300 Subject: [PATCH 047/151] installed app 'default-git-source' on project 'runtime-a' installation-path: '/' --- .../runtime-a/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/runtime-a/config_dir.json diff --git a/apps/default-git-source/runtime-a/config_dir.json b/apps/default-git-source/runtime-a/config_dir.json new file mode 100644 index 0000000..5888d39 --- /dev/null +++ b/apps/default-git-source/runtime-a/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "runtime-a", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_runtime-a", + "srcRepoURL": "https://github.com/alina-codefresh/first_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 597c56607b404a78fa8a792f01b9f04924a02462 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:41 +0300 Subject: [PATCH 048/151] Validating repository write permission From 196782609d5a19a424a30b729b7505fa2c50e0db Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:17:41 +0300 Subject: [PATCH 049/151] installed app 'marketplace-git-source' on project 'runtime-a' installation-path: '/' --- .../runtime-a/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/runtime-a/config_dir.json diff --git a/apps/marketplace-git-source/runtime-a/config_dir.json b/apps/marketplace-git-source/runtime-a/config_dir.json new file mode 100644 index 0000000..5ee8926 --- /dev/null +++ b/apps/marketplace-git-source/runtime-a/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "runtime-a", + "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 0723e7b01953c4666ed5611a65b2a6b172a787bc Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:21:47 +0300 Subject: [PATCH 050/151] Validating repository write permission From f2a770ccf8fa8a913788ccf05d968de87483c2ca Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:21:48 +0300 Subject: [PATCH 051/151] Autopilot Uninstall --- apps/README.md | 27 ---- apps/app-proxy/base/kustomization.yaml | 4 - apps/app-proxy/overlays/runtime-a/config.json | 16 --- .../overlays/runtime-a/kustomization.yaml | 14 --- .../runtime-a/config_helm.json | 18 --- .../runtime-a/config_dir.json | 18 --- .../events-reporter/runtime-a/config_dir.json | 18 --- .../runtime-a/resources/event-source.yaml | 23 ---- .../runtime-a/resources/sensor.yaml | 42 ------- apps/events/base/kustomization.yaml | 4 - apps/events/overlays/runtime-a/config.json | 16 --- .../overlays/runtime-a/kustomization.yaml | 5 - apps/internal-router/base/kustomization.yaml | 4 - .../overlays/runtime-a/config.json | 16 --- .../overlays/runtime-a/kustomization.yaml | 5 - .../runtime-a/config_dir.json | 18 --- .../runtime-a/config_dir.json | 18 --- .../runtime-a/resources/event-source.yaml | 50 -------- .../runtime-a/resources/rbac.yaml | 35 ------ .../runtime-a/resources/sensor.yaml | 92 -------------- apps/rollouts/base/kustomization.yaml | 4 - apps/rollouts/overlays/runtime-a/config.json | 16 --- .../overlays/runtime-a/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/runtime-a/config.json | 16 --- .../overlays/runtime-a/kustomization.yaml | 5 - .../runtime-a/config_dir.json | 18 --- .../runtime-a/resources/event-source.yaml | 28 ----- .../runtime-a/resources/rbac.yaml | 37 ------ .../runtime-a/resources/sensor.yaml | 42 ------- apps/workflows/base/kustomization.yaml | 4 - apps/workflows/overlays/runtime-a/config.json | 16 --- .../overlays/runtime-a/kustomization.yaml | 12 -- .../overlays/runtime-a/route-patch.json | 12 -- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/cluster-resources.yaml | 50 -------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/runtime-a-ns.yaml | 9 -- bootstrap/root.yaml | 41 ------ bootstrap/runtime-a.yaml | 54 -------- projects/README.md | 21 ---- projects/runtime-a.yaml | 119 ------------------ 45 files changed, 1017 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/runtime-a/config.json delete mode 100644 apps/app-proxy/overlays/runtime-a/kustomization.yaml delete mode 100644 apps/codefresh-tunnel-client/runtime-a/config_helm.json delete mode 100644 apps/default-git-source/runtime-a/config_dir.json delete mode 100644 apps/events-reporter/runtime-a/config_dir.json delete mode 100644 apps/events-reporter/runtime-a/resources/event-source.yaml delete mode 100644 apps/events-reporter/runtime-a/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/runtime-a/config.json delete mode 100644 apps/events/overlays/runtime-a/kustomization.yaml delete mode 100644 apps/internal-router/base/kustomization.yaml delete mode 100644 apps/internal-router/overlays/runtime-a/config.json delete mode 100644 apps/internal-router/overlays/runtime-a/kustomization.yaml delete mode 100644 apps/marketplace-git-source/runtime-a/config_dir.json delete mode 100644 apps/rollout-reporter/runtime-a/config_dir.json delete mode 100644 apps/rollout-reporter/runtime-a/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/runtime-a/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/runtime-a/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/runtime-a/config.json delete mode 100644 apps/rollouts/overlays/runtime-a/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/runtime-a/config.json delete mode 100644 apps/sealed-secrets/overlays/runtime-a/kustomization.yaml delete mode 100644 apps/workflow-reporter/runtime-a/config_dir.json delete mode 100644 apps/workflow-reporter/runtime-a/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/runtime-a/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/runtime-a/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/runtime-a/config.json delete mode 100644 apps/workflows/overlays/runtime-a/kustomization.yaml delete mode 100644 apps/workflows/overlays/runtime-a/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/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/runtime-a-ns.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 bootstrap/runtime-a.yaml delete mode 100644 projects/README.md delete mode 100644 projects/runtime-a.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 991577b..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.29 diff --git a/apps/app-proxy/overlays/runtime-a/config.json b/apps/app-proxy/overlays/runtime-a/config.json deleted file mode 100644 index cc4f4cb..0000000 --- a/apps/app-proxy/overlays/runtime-a/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/runtime-a", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/app-proxy/overlays/runtime-a/kustomization.yaml deleted file mode 100644 index 21c125c..0000000 --- a/apps/app-proxy/overlays/runtime-a/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 - - skipPermissionsValidation=false - name: cap-app-proxy-cm -kind: Kustomization -namespace: runtime-a -resources: -- ../../base diff --git a/apps/codefresh-tunnel-client/runtime-a/config_helm.json b/apps/codefresh-tunnel-client/runtime-a/config_helm.json deleted file mode 100644 index e8ac92d..0000000 --- a/apps/codefresh-tunnel-client/runtime-a/config_helm.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "codefresh-tunnel-client", - "userGivenName": "codefresh-tunnel-client", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "codefresh-tunnel-client", - "srcRepoURL": "https://github.com/codefresh-io/codefresh-tunnel-charts.git", - "srcTargetRevision": "0.1.8", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "srcChart": "", - "values": "tunnel:\n ipsAllowList: \"\"\n subdomainPrefix: 63a09886832a4db0cdb5ca76-runtime-a\ntunnelServer:\n host: register-tunnels.cf-cd.com\n" -} \ No newline at end of file diff --git a/apps/default-git-source/runtime-a/config_dir.json b/apps/default-git-source/runtime-a/config_dir.json deleted file mode 100644 index 5888d39..0000000 --- a/apps/default-git-source/runtime-a/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_runtime-a", - "srcRepoURL": "https://github.com/alina-codefresh/first_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/runtime-a/config_dir.json b/apps/events-reporter/runtime-a/config_dir.json deleted file mode 100644 index 4e597bd..0000000 --- a/apps/events-reporter/runtime-a/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/runtime-a/resources", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/resources/event-source.yaml b/apps/events-reporter/runtime-a/resources/event-source.yaml deleted file mode 100644 index 53ed7a9..0000000 --- a/apps/events-reporter/runtime-a/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: runtime-a -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.runtime-a.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/runtime-a/resources/sensor.yaml b/apps/events-reporter/runtime-a/resources/sensor.yaml deleted file mode 100644 index e3e40aa..0000000 --- a/apps/events-reporter/runtime-a/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: runtime-a -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 3483b8f..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.29 diff --git a/apps/events/overlays/runtime-a/config.json b/apps/events/overlays/runtime-a/config.json deleted file mode 100644 index ee87990..0000000 --- a/apps/events/overlays/runtime-a/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/runtime-a", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/events/overlays/runtime-a/kustomization.yaml deleted file mode 100644 index 9a5b2b9..0000000 --- a/apps/events/overlays/runtime-a/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: runtime-a -resources: -- ../../base diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml deleted file mode 100644 index 957b171..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.29 diff --git a/apps/internal-router/overlays/runtime-a/config.json b/apps/internal-router/overlays/runtime-a/config.json deleted file mode 100644 index f912072..0000000 --- a/apps/internal-router/overlays/runtime-a/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "internal-router", - "userGivenName": "internal-router", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/internal-router/overlays/runtime-a", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/internal-router/overlays/runtime-a/kustomization.yaml deleted file mode 100644 index 9a5b2b9..0000000 --- a/apps/internal-router/overlays/runtime-a/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: runtime-a -resources: -- ../../base diff --git a/apps/marketplace-git-source/runtime-a/config_dir.json b/apps/marketplace-git-source/runtime-a/config_dir.json deleted file mode 100644 index 5ee8926..0000000 --- a/apps/marketplace-git-source/runtime-a/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "runtime-a", - "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/runtime-a/config_dir.json b/apps/rollout-reporter/runtime-a/config_dir.json deleted file mode 100644 index cb8562b..0000000 --- a/apps/rollout-reporter/runtime-a/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/runtime-a/resources", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/resources/event-source.yaml b/apps/rollout-reporter/runtime-a/resources/event-source.yaml deleted file mode 100644 index be298fa..0000000 --- a/apps/rollout-reporter/runtime-a/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: runtime-a -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/runtime-a/resources/rbac.yaml b/apps/rollout-reporter/runtime-a/resources/rbac.yaml deleted file mode 100644 index b019ac6..0000000 --- a/apps/rollout-reporter/runtime-a/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: runtime-a - ---- -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: runtime-a diff --git a/apps/rollout-reporter/runtime-a/resources/sensor.yaml b/apps/rollout-reporter/runtime-a/resources/sensor.yaml deleted file mode 100644 index 2922eda..0000000 --- a/apps/rollout-reporter/runtime-a/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: runtime-a -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 2950a9e..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.29 diff --git a/apps/rollouts/overlays/runtime-a/config.json b/apps/rollouts/overlays/runtime-a/config.json deleted file mode 100644 index 37a96c9..0000000 --- a/apps/rollouts/overlays/runtime-a/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/runtime-a", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/rollouts/overlays/runtime-a/kustomization.yaml deleted file mode 100644 index 9a5b2b9..0000000 --- a/apps/rollouts/overlays/runtime-a/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: runtime-a -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index ddf8ff9..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.29 diff --git a/apps/sealed-secrets/overlays/runtime-a/config.json b/apps/sealed-secrets/overlays/runtime-a/config.json deleted file mode 100644 index 46575b7..0000000 --- a/apps/sealed-secrets/overlays/runtime-a/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/runtime-a", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/sealed-secrets/overlays/runtime-a/kustomization.yaml deleted file mode 100644 index 9a5b2b9..0000000 --- a/apps/sealed-secrets/overlays/runtime-a/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: runtime-a -resources: -- ../../base diff --git a/apps/workflow-reporter/runtime-a/config_dir.json b/apps/workflow-reporter/runtime-a/config_dir.json deleted file mode 100644 index 45fa9c0..0000000 --- a/apps/workflow-reporter/runtime-a/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/runtime-a/resources", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/resources/event-source.yaml b/apps/workflow-reporter/runtime-a/resources/event-source.yaml deleted file mode 100644 index c33233e..0000000 --- a/apps/workflow-reporter/runtime-a/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: runtime-a -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: runtime-a - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/runtime-a/resources/rbac.yaml b/apps/workflow-reporter/runtime-a/resources/rbac.yaml deleted file mode 100644 index 6ec07f5..0000000 --- a/apps/workflow-reporter/runtime-a/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: runtime-a - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: runtime-a -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: runtime-a -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: runtime-a diff --git a/apps/workflow-reporter/runtime-a/resources/sensor.yaml b/apps/workflow-reporter/runtime-a/resources/sensor.yaml deleted file mode 100644 index 0fadcd0..0000000 --- a/apps/workflow-reporter/runtime-a/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: runtime-a -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 4e5b563..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.29 diff --git a/apps/workflows/overlays/runtime-a/config.json b/apps/workflows/overlays/runtime-a/config.json deleted file mode 100644 index 6f214d3..0000000 --- a/apps/workflows/overlays/runtime-a/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "runtime-a", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/runtime-a", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/runtime-a/kustomization.yaml b/apps/workflows/overlays/runtime-a/kustomization.yaml deleted file mode 100644 index 0127d90..0000000 --- a/apps/workflows/overlays/runtime-a/kustomization.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: runtime-a -patches: -- path: route-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base diff --git a/apps/workflows/overlays/runtime-a/route-patch.json b/apps/workflows/overlays/runtime-a/route-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/runtime-a/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 692d6fc..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: runtime-a -spec: - destination: - namespace: runtime-a - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/alina-codefresh/first.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 ee182c1..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: runtime-a -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.29 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 1bc88eb..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - labels: - codefresh.io/internal: "true" - name: cluster-resources - namespace: runtime-a -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/alina-codefresh/first.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: runtime-a - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/alina-codefresh/first.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/runtime-a-ns.yaml b/bootstrap/cluster-resources/in-cluster/runtime-a-ns.yaml deleted file mode 100644 index 9617736..0000000 --- a/bootstrap/cluster-resources/in-cluster/runtime-a-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: runtime-a -spec: {} -status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 96b958a..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: runtime-a -spec: - destination: - namespace: runtime-a - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/alina-codefresh/first.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/runtime-a.yaml b/bootstrap/runtime-a.yaml deleted file mode 100644 index 825503a..0000000 --- a/bootstrap/runtime-a.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: v1 -data: - base-url: https://g.codefresh.io - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: runtime-a - namespace: runtime-a - spec: - accessMode: TUNNEL - bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd - cluster: https://B2A8F47D84174C53308248C7BB3693A1.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.29 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.29 - - name: workflows - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.29 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.29 - - name: internal-router - syncWave: 10 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.29 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.29 - - feature: ingressless - name: codefresh-tunnel-client - type: helm - url: github.com/codefresh-io/codefresh-tunnel-charts/codefresh-tunnel-client?ref=0.1.8 - defVersion: null - ingressHost: https://63a09886832a4db0cdb5ca76-runtime-a.tunnels.cf-cd.com - ref: "" - repo: https://github.com/alina-codefresh/first - requiredCLIVersion: ^0.1.0 - version: 0.1.29 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: runtime-a 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/runtime-a.yaml b/projects/runtime-a.yaml deleted file mode 100644 index 33bb78d..0000000 --- a/projects/runtime-a.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: runtime-a - namespace: runtime-a -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: runtime-a 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: runtime-a - namespace: runtime-a -spec: - generators: - - git: - files: - - path: apps/**/runtime-a/config.json - repoURL: https://github.com/alina-codefresh/first.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/runtime-a/config_dir.json - repoURL: https://github.com/alina-codefresh/first.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/runtime-a/config_helm.json - repoURL: https://github.com/alina-codefresh/first.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: runtime-a-{{ 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: runtime-a-{{ userGivenName }} - namespace: runtime-a - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: runtime-a - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 55bd91f9445c3ec546fc8a25bfb9038e0187e255 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:23:22 +0300 Subject: [PATCH 052/151] 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 0543b5a66e428baa7ae5bc3ed7f9c4f8d0e0e85e Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:25:41 +0300 Subject: [PATCH 053/151] Validating repository write permission From 85f15d8366a87f440a2b21d63a68388d732ec570 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:26:13 +0300 Subject: [PATCH 054/151] 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/onprem-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/onprem-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..c330e5b --- /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: onprem +spec: + destination: + namespace: onprem + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/argo-cd + repoURL: https://github.com/alina-codefresh/first.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..23b1986 --- /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: onprem +resources: +- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.29 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml new file mode 100644 index 0000000..8e91966 --- /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: onprem +spec: + generators: + - git: + files: + - path: bootstrap/cluster-resources/*.json + repoURL: https://github.com/alina-codefresh/first.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: onprem + spec: + destination: + server: '{{server}}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: bootstrap/cluster-resources/{{name}} + repoURL: https://github.com/alina-codefresh/first.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/onprem-ns.yaml b/bootstrap/cluster-resources/in-cluster/onprem-ns.yaml new file mode 100644 index 0000000..bb7a05b --- /dev/null +++ b/bootstrap/cluster-resources/in-cluster/onprem-ns.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: onprem +spec: {} +status: {} diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml new file mode 100644 index 0000000..6095fa2 --- /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: onprem +spec: + destination: + namespace: onprem + server: https://kubernetes.default.svc + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: default + source: + path: projects + repoURL: https://github.com/alina-codefresh/first.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 0ad5c11621b63e3b0a6913b246c2ba8295e2fe7d Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:26:19 +0300 Subject: [PATCH 055/151] Validating repository write permission From 82d25cf21348dc962c279a6910528346f904b4c0 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:26:20 +0300 Subject: [PATCH 056/151] patch cluster-resources ApplicationSet --- bootstrap/cluster-resources.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml index 8e91966..857ad52 100644 --- a/bootstrap/cluster-resources.yaml +++ b/bootstrap/cluster-resources.yaml @@ -4,6 +4,8 @@ metadata: annotations: argocd.argoproj.io/sync-wave: "0" creationTimestamp: null + labels: + codefresh.io/internal: "true" name: cluster-resources namespace: onprem spec: From 148407fa405286189a48c47961636eb3b50b4cb0 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:26:21 +0300 Subject: [PATCH 057/151] Validating repository write permission From 4dfddb794f72b4009f18fd2f9134df3529056028 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:26:22 +0300 Subject: [PATCH 058/151] Added project 'onprem' --- projects/onprem.yaml | 100 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 projects/onprem.yaml diff --git a/projects/onprem.yaml b/projects/onprem.yaml new file mode 100644 index 0000000..89eeb81 --- /dev/null +++ b/projects/onprem.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: onprem + namespace: onprem +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + description: onprem 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: onprem + namespace: onprem +spec: + generators: + - git: + files: + - path: apps/**/onprem/config.json + repoURL: https://github.com/alina-codefresh/first.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + repoURL: "" + - git: + files: + - path: apps/**/onprem/config_dir.json + repoURL: https://github.com/alina-codefresh/first.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: onprem-{{ userGivenName }} + namespace: onprem + spec: + destination: + namespace: '{{ destNamespace }}' + server: '{{ destServer }}' + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: onprem + source: + path: '{{ srcPath }}' + repoURL: '{{ srcRepoURL }}' + targetRevision: '{{ srcTargetRevision }}' + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {} From 0afe1c88a63de22f12c64d3e20dd3641da646250 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:26:23 +0300 Subject: [PATCH 059/151] Validating repository write permission From c1507a50ff8a0419527fb3b54ca3894a00d252bc Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:26:24 +0300 Subject: [PATCH 060/151] Persisted runtime data --- bootstrap/onprem.yaml | 54 +++++++++++++++++++++++++++++++++++++++++++ projects/onprem.yaml | 19 +++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 bootstrap/onprem.yaml diff --git a/bootstrap/onprem.yaml b/bootstrap/onprem.yaml new file mode 100644 index 0000000..5a3475e --- /dev/null +++ b/bootstrap/onprem.yaml @@ -0,0 +1,54 @@ +apiVersion: v1 +data: + base-url: https://hermes-onprem-test.cf-op.com + runtime: | + apiVersion: codefresh.io/v1alpha1 + kind: Runtime + metadata: + creationTimestamp: null + name: onprem + namespace: onprem + spec: + accessMode: TUNNEL + bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd + cluster: https://B2A8F47D84174C53308248C7BB3693A1.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.29 + wait: true + - name: rollouts + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.29 + - name: workflows + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.29 + - name: app-proxy + syncWave: 9 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.29 + - name: internal-router + syncWave: 10 + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.29 + - name: sealed-secrets + type: kustomize + url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.29 + - feature: ingressless + name: codefresh-tunnel-client + type: helm + url: github.com/codefresh-io/codefresh-tunnel-charts/codefresh-tunnel-client?ref=0.1.8 + defVersion: null + ingressHost: https://59009117c102763beda7ce71-onprem.tunnels.cf-cd.com + ref: "" + repo: https://github.com/alina-codefresh/first + requiredCLIVersion: ^0.1.0 + version: 0.1.29 +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app.kubernetes.io/managed-by: codefresh + codefresh.io/entity: runtimeDef + name: codefresh-cm + namespace: onprem diff --git a/projects/onprem.yaml b/projects/onprem.yaml index 89eeb81..dcc9422 100644 --- a/projects/onprem.yaml +++ b/projects/onprem.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: onprem namespace: onprem spec: @@ -65,6 +67,23 @@ spec: jsonnet: {} recurse: true repoURL: "" + - git: + files: + - path: apps/**/onprem/config_helm.json + repoURL: https://github.com/alina-codefresh/first.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + chart: '{{ srcChart }}' + helm: + releaseName: onprem-{{ appName }} + values: '{{ values }}' + repoURL: "" syncPolicy: {} template: metadata: From 690260a85212b98e1ce59e93da80143316c56691 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:26:29 +0300 Subject: [PATCH 061/151] Validating repository write permission From 48ce74c1abb4eb256bea45bd7e7e7cf5d4be26f3 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:26:30 +0300 Subject: [PATCH 062/151] installed app 'events' on project 'onprem' installation-path: '/' --- apps/events/base/kustomization.yaml | 4 ++++ apps/events/overlays/onprem/config.json | 16 ++++++++++++++++ apps/events/overlays/onprem/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/events/base/kustomization.yaml create mode 100644 apps/events/overlays/onprem/config.json create mode 100644 apps/events/overlays/onprem/kustomization.yaml diff --git a/apps/events/base/kustomization.yaml b/apps/events/base/kustomization.yaml new file mode 100644 index 0000000..3483b8f --- /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.29 diff --git a/apps/events/overlays/onprem/config.json b/apps/events/overlays/onprem/config.json new file mode 100644 index 0000000..732c595 --- /dev/null +++ b/apps/events/overlays/onprem/config.json @@ -0,0 +1,16 @@ +{ + "appName": "events", + "userGivenName": "events", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events/overlays/onprem", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/events/overlays/onprem/kustomization.yaml new file mode 100644 index 0000000..848f583 --- /dev/null +++ b/apps/events/overlays/onprem/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: onprem +resources: +- ../../base From 4df6129157f541a8d411b385d65b1feba949d7f4 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:05 +0300 Subject: [PATCH 063/151] Validating repository write permission From 4210288402950fb33715bb40c66249024cb03f2e Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:06 +0300 Subject: [PATCH 064/151] installed app 'rollouts' on project 'onprem' installation-path: '/' --- apps/rollouts/base/kustomization.yaml | 4 ++++ apps/rollouts/overlays/onprem/config.json | 16 ++++++++++++++++ apps/rollouts/overlays/onprem/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/rollouts/base/kustomization.yaml create mode 100644 apps/rollouts/overlays/onprem/config.json create mode 100644 apps/rollouts/overlays/onprem/kustomization.yaml diff --git a/apps/rollouts/base/kustomization.yaml b/apps/rollouts/base/kustomization.yaml new file mode 100644 index 0000000..2950a9e --- /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.29 diff --git a/apps/rollouts/overlays/onprem/config.json b/apps/rollouts/overlays/onprem/config.json new file mode 100644 index 0000000..ef5698b --- /dev/null +++ b/apps/rollouts/overlays/onprem/config.json @@ -0,0 +1,16 @@ +{ + "appName": "rollouts", + "userGivenName": "rollouts", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollouts/overlays/onprem", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/rollouts/overlays/onprem/kustomization.yaml new file mode 100644 index 0000000..848f583 --- /dev/null +++ b/apps/rollouts/overlays/onprem/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: onprem +resources: +- ../../base From db7cac2dff8ad49984ca5c5b7a0c0ffe611e65ff Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:07 +0300 Subject: [PATCH 065/151] Validating repository write permission From 4f0f0ef51422736ae4f11ac46a253b1233f6b2df Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:07 +0300 Subject: [PATCH 066/151] installed app 'workflows' on project 'onprem' installation-path: '/' --- apps/workflows/base/kustomization.yaml | 4 ++++ apps/workflows/overlays/onprem/config.json | 16 ++++++++++++++++ .../workflows/overlays/onprem/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/workflows/base/kustomization.yaml create mode 100644 apps/workflows/overlays/onprem/config.json create mode 100644 apps/workflows/overlays/onprem/kustomization.yaml diff --git a/apps/workflows/base/kustomization.yaml b/apps/workflows/base/kustomization.yaml new file mode 100644 index 0000000..4e5b563 --- /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.29 diff --git a/apps/workflows/overlays/onprem/config.json b/apps/workflows/overlays/onprem/config.json new file mode 100644 index 0000000..5e4fbca --- /dev/null +++ b/apps/workflows/overlays/onprem/config.json @@ -0,0 +1,16 @@ +{ + "appName": "workflows", + "userGivenName": "workflows", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflows/overlays/onprem", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/workflows/overlays/onprem/kustomization.yaml new file mode 100644 index 0000000..848f583 --- /dev/null +++ b/apps/workflows/overlays/onprem/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: onprem +resources: +- ../../base From a5d09badc5793224db4f2396d27bc191a823891c Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:09 +0300 Subject: [PATCH 067/151] Validating repository write permission From b84e3130950c5d81c851b33054b5dec5420b9bdc Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:10 +0300 Subject: [PATCH 068/151] installed app 'app-proxy' on project 'onprem' installation-path: '/' --- apps/app-proxy/base/kustomization.yaml | 4 ++++ apps/app-proxy/overlays/onprem/config.json | 16 ++++++++++++++++ .../app-proxy/overlays/onprem/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/app-proxy/base/kustomization.yaml create mode 100644 apps/app-proxy/overlays/onprem/config.json create mode 100644 apps/app-proxy/overlays/onprem/kustomization.yaml diff --git a/apps/app-proxy/base/kustomization.yaml b/apps/app-proxy/base/kustomization.yaml new file mode 100644 index 0000000..991577b --- /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.29 diff --git a/apps/app-proxy/overlays/onprem/config.json b/apps/app-proxy/overlays/onprem/config.json new file mode 100644 index 0000000..b480a64 --- /dev/null +++ b/apps/app-proxy/overlays/onprem/config.json @@ -0,0 +1,16 @@ +{ + "appName": "app-proxy", + "userGivenName": "app-proxy", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/app-proxy/overlays/onprem", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/app-proxy/overlays/onprem/kustomization.yaml new file mode 100644 index 0000000..848f583 --- /dev/null +++ b/apps/app-proxy/overlays/onprem/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: onprem +resources: +- ../../base From 1381b0947169da5942c6b6bb036a79f9111225df Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:11 +0300 Subject: [PATCH 069/151] Validating repository write permission From 3e0abcd680a87840ad36ddfe34a33aacda471a57 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:12 +0300 Subject: [PATCH 070/151] installed app 'internal-router' on project 'onprem' installation-path: '/' --- apps/internal-router/base/kustomization.yaml | 4 ++++ apps/internal-router/overlays/onprem/config.json | 16 ++++++++++++++++ .../overlays/onprem/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/internal-router/base/kustomization.yaml create mode 100644 apps/internal-router/overlays/onprem/config.json create mode 100644 apps/internal-router/overlays/onprem/kustomization.yaml diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml new file mode 100644 index 0000000..957b171 --- /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.29 diff --git a/apps/internal-router/overlays/onprem/config.json b/apps/internal-router/overlays/onprem/config.json new file mode 100644 index 0000000..ea2b858 --- /dev/null +++ b/apps/internal-router/overlays/onprem/config.json @@ -0,0 +1,16 @@ +{ + "appName": "internal-router", + "userGivenName": "internal-router", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/internal-router/overlays/onprem", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/internal-router/overlays/onprem/kustomization.yaml new file mode 100644 index 0000000..848f583 --- /dev/null +++ b/apps/internal-router/overlays/onprem/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: onprem +resources: +- ../../base From 266507b25cf842e3d3b8898503d14fbc73c0e66e Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:14 +0300 Subject: [PATCH 071/151] Validating repository write permission From 160860b866afe8f0053ecd11c2dfd34b1c928dbc Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:14 +0300 Subject: [PATCH 072/151] installed app 'sealed-secrets' on project 'onprem' installation-path: '/' --- apps/sealed-secrets/base/kustomization.yaml | 4 ++++ apps/sealed-secrets/overlays/onprem/config.json | 16 ++++++++++++++++ .../overlays/onprem/kustomization.yaml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 apps/sealed-secrets/base/kustomization.yaml create mode 100644 apps/sealed-secrets/overlays/onprem/config.json create mode 100644 apps/sealed-secrets/overlays/onprem/kustomization.yaml diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml new file mode 100644 index 0000000..ddf8ff9 --- /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.29 diff --git a/apps/sealed-secrets/overlays/onprem/config.json b/apps/sealed-secrets/overlays/onprem/config.json new file mode 100644 index 0000000..227d2e0 --- /dev/null +++ b/apps/sealed-secrets/overlays/onprem/config.json @@ -0,0 +1,16 @@ +{ + "appName": "sealed-secrets", + "userGivenName": "sealed-secrets", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/sealed-secrets/overlays/onprem", + "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/sealed-secrets/overlays/onprem/kustomization.yaml new file mode 100644 index 0000000..848f583 --- /dev/null +++ b/apps/sealed-secrets/overlays/onprem/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: onprem +resources: +- ../../base From 2eae598f3bb70ef0c8e45e45469861c9cc2ad797 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:16 +0300 Subject: [PATCH 073/151] Validating repository write permission From d22390ba0e18b50947fc0d7c2f9d542ac5d566b7 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:17 +0300 Subject: [PATCH 074/151] installed app 'codefresh-tunnel-client' on project 'onprem' installation-path: '/' --- .../onprem/config_helm.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/codefresh-tunnel-client/onprem/config_helm.json diff --git a/apps/codefresh-tunnel-client/onprem/config_helm.json b/apps/codefresh-tunnel-client/onprem/config_helm.json new file mode 100644 index 0000000..1c251f9 --- /dev/null +++ b/apps/codefresh-tunnel-client/onprem/config_helm.json @@ -0,0 +1,18 @@ +{ + "appName": "codefresh-tunnel-client", + "userGivenName": "codefresh-tunnel-client", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "codefresh-tunnel-client", + "srcRepoURL": "https://github.com/codefresh-io/codefresh-tunnel-charts.git", + "srcTargetRevision": "0.1.8", + "labels": { + "codefresh_io_entity": "component", + "codefresh_io_internal": "true" + }, + "annotations": { + "argocd_argoproj_io_sync-wave": "0" + }, + "srcChart": "", + "values": "tunnel:\n ipsAllowList: \"\"\n subdomainPrefix: 59009117c102763beda7ce71-onprem\ntunnelServer:\n host: register-tunnels.cf-cd.com\n" +} \ No newline at end of file From a3be92c6a6b4cc028791a08e98cbff54d573ff3b Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:18 +0300 Subject: [PATCH 075/151] Validating repository write permission From 5b401241cbe5ca99c418de6f8a7b88cefda64a73 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:18 +0300 Subject: [PATCH 076/151] Configured Argo Workflows --- apps/workflows/overlays/onprem/kustomization.yaml | 7 +++++++ apps/workflows/overlays/onprem/route-patch.json | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 apps/workflows/overlays/onprem/route-patch.json diff --git a/apps/workflows/overlays/onprem/kustomization.yaml b/apps/workflows/overlays/onprem/kustomization.yaml index 848f583..40c796d 100644 --- a/apps/workflows/overlays/onprem/kustomization.yaml +++ b/apps/workflows/overlays/onprem/kustomization.yaml @@ -1,5 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: onprem +patches: +- path: route-patch.json + target: + group: apps + kind: Deployment + name: argo-server + version: v1 resources: - ../../base diff --git a/apps/workflows/overlays/onprem/route-patch.json b/apps/workflows/overlays/onprem/route-patch.json new file mode 100644 index 0000000..a8112e9 --- /dev/null +++ b/apps/workflows/overlays/onprem/route-patch.json @@ -0,0 +1,12 @@ +[ + { + "op": "add", + "path": "/spec/template/spec/containers/0/env", + "value": [ + { + "name": "BASE_HREF", + "value": "/workflows/" + } + ] + } +] From 09e66481af2d0568e1fc51f48c6bb93da4ddd0ab Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:20 +0300 Subject: [PATCH 077/151] Validating repository write permission From 78ec31f5cf0f1b850a4437bba65ed26bb593045d Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:20 +0300 Subject: [PATCH 078/151] Updated App-Proxy configuration --- apps/app-proxy/overlays/onprem/kustomization.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/app-proxy/overlays/onprem/kustomization.yaml b/apps/app-proxy/overlays/onprem/kustomization.yaml index 848f583..2d7afb9 100644 --- a/apps/app-proxy/overlays/onprem/kustomization.yaml +++ b/apps/app-proxy/overlays/onprem/kustomization.yaml @@ -1,4 +1,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1 +configMapGenerator: +- behavior: merge + literals: + - argoWorkflowsInsecure=true + - cfHost=https://hermes-onprem-test.cf-op.com + - cors=https://hermes-onprem-test.cf-op.com + - env=production + - skipPermissionsValidation=false + name: cap-app-proxy-cm kind: Kustomization namespace: onprem resources: From 2da68e220d6929247227101d869a1b112f80f4b7 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:21 +0300 Subject: [PATCH 079/151] Validating repository write permission From 99abd364281d1495f58e293fc12eefe73240b7ef Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:22 +0300 Subject: [PATCH 080/151] installed app 'events-reporter' on project 'onprem' installation-path: '/' --- apps/events-reporter/onprem/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/events-reporter/onprem/config_dir.json diff --git a/apps/events-reporter/onprem/config_dir.json b/apps/events-reporter/onprem/config_dir.json new file mode 100644 index 0000000..9f1c931 --- /dev/null +++ b/apps/events-reporter/onprem/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "events-reporter", + "userGivenName": "events-reporter", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/events-reporter/onprem/resources", + "srcRepoURL": "https://github.com/alina-codefresh/first.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 b051a0a9188830de98970d0bc5df0586faed0787 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:24 +0300 Subject: [PATCH 081/151] Validating repository write permission From abe2ab208ab78e3d432a1524a94ab6e216bdd343 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:24 +0300 Subject: [PATCH 082/151] Created Codefresh Event Reporter --- .../onprem/resources/event-source.yaml | 23 ++++++++++ .../onprem/resources/sensor.yaml | 42 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 apps/events-reporter/onprem/resources/event-source.yaml create mode 100644 apps/events-reporter/onprem/resources/sensor.yaml diff --git a/apps/events-reporter/onprem/resources/event-source.yaml b/apps/events-reporter/onprem/resources/event-source.yaml new file mode 100644 index 0000000..fd128fb --- /dev/null +++ b/apps/events-reporter/onprem/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: onprem +spec: + eventBusName: codefresh-eventbus + generic: + events: + authSecret: + key: token + name: argocd-token + config: '{}' + insecure: true + url: argocd-server.onprem.svc:80 + template: + container: + name: "" + resources: {} +status: {} diff --git a/apps/events-reporter/onprem/resources/sensor.yaml b/apps/events-reporter/onprem/resources/sensor.yaml new file mode 100644 index 0000000..feefc97 --- /dev/null +++ b/apps/events-reporter/onprem/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: onprem +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://hermes-onprem-test.cf-op.com/2.0/api/events + name: events +status: {} From 483cff95b3ce8e3a7d2d48321205ed0b6078f9fb Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:25 +0300 Subject: [PATCH 083/151] Validating repository write permission From 65cd28c7d05e188bd64d5cbbd80f31c9c5cba91d Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:26 +0300 Subject: [PATCH 084/151] installed app 'workflow-reporter' on project 'onprem' installation-path: '/' --- apps/workflow-reporter/onprem/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/workflow-reporter/onprem/config_dir.json diff --git a/apps/workflow-reporter/onprem/config_dir.json b/apps/workflow-reporter/onprem/config_dir.json new file mode 100644 index 0000000..1f569ec --- /dev/null +++ b/apps/workflow-reporter/onprem/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "workflow-reporter", + "userGivenName": "workflow-reporter", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/workflow-reporter/onprem/resources", + "srcRepoURL": "https://github.com/alina-codefresh/first.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 6580e71c6cab4a2b9f3b07c9c3733419e6978b69 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:27 +0300 Subject: [PATCH 085/151] Validating repository write permission From 80aa1a9cf0fb8e990e7fdbfcca9f431769755e62 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:28 +0300 Subject: [PATCH 086/151] Created CodefreshWorkflow-ReporterReporter --- .../onprem/resources/event-source.yaml | 28 +++++++++++++ .../onprem/resources/rbac.yaml | 37 ++++++++++++++++ .../onprem/resources/sensor.yaml | 42 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 apps/workflow-reporter/onprem/resources/event-source.yaml create mode 100644 apps/workflow-reporter/onprem/resources/rbac.yaml create mode 100644 apps/workflow-reporter/onprem/resources/sensor.yaml diff --git a/apps/workflow-reporter/onprem/resources/event-source.yaml b/apps/workflow-reporter/onprem/resources/event-source.yaml new file mode 100644 index 0000000..22daec6 --- /dev/null +++ b/apps/workflow-reporter/onprem/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: onprem +spec: + eventBusName: codefresh-eventbus + resource: + workflows: + eventTypes: + - ADD + - UPDATE + - DELETE + filter: + createdBy: null + group: argoproj.io + namespace: onprem + resource: workflows + version: v1alpha1 + template: + container: + name: "" + resources: {} + serviceAccountName: codefresh-sa +status: {} diff --git a/apps/workflow-reporter/onprem/resources/rbac.yaml b/apps/workflow-reporter/onprem/resources/rbac.yaml new file mode 100644 index 0000000..c277c79 --- /dev/null +++ b/apps/workflow-reporter/onprem/resources/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: onprem + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: onprem +rules: +- apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + creationTimestamp: null + name: codefresh-sa + namespace: onprem +roleRef: + apiGroup: "" + kind: Role + name: codefresh-sa +subjects: +- kind: ServiceAccount + name: codefresh-sa + namespace: onprem diff --git a/apps/workflow-reporter/onprem/resources/sensor.yaml b/apps/workflow-reporter/onprem/resources/sensor.yaml new file mode 100644 index 0000000..14bc3d2 --- /dev/null +++ b/apps/workflow-reporter/onprem/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: onprem +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://hermes-onprem-test.cf-op.com/2.0/api/events + name: workflows +status: {} From 8943c9fd222083eff41cac7cc4bfface848130f8 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:29 +0300 Subject: [PATCH 087/151] Validating repository write permission From 52ac5aade9d182b8726650dd451d5ae1e9ec815d Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:30 +0300 Subject: [PATCH 088/151] installed app 'rollout-reporter' on project 'onprem' installation-path: '/' --- apps/rollout-reporter/onprem/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/rollout-reporter/onprem/config_dir.json diff --git a/apps/rollout-reporter/onprem/config_dir.json b/apps/rollout-reporter/onprem/config_dir.json new file mode 100644 index 0000000..dc632f0 --- /dev/null +++ b/apps/rollout-reporter/onprem/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "rollout-reporter", + "userGivenName": "rollout-reporter", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "apps/rollout-reporter/onprem/resources", + "srcRepoURL": "https://github.com/alina-codefresh/first.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 fbc8f36e0d297f65165672cc356bc63ae9c1e9e5 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:32 +0300 Subject: [PATCH 089/151] Validating repository write permission From 165cef7b5f17b925587e75fa41ba4e3563842199 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:32 +0300 Subject: [PATCH 090/151] Created CodefreshRollout-ReporterReporter --- .../onprem/resources/event-source.yaml | 50 ++++++++++ .../onprem/resources/rbac.yaml | 35 +++++++ .../onprem/resources/sensor.yaml | 92 +++++++++++++++++++ 3 files changed, 177 insertions(+) create mode 100644 apps/rollout-reporter/onprem/resources/event-source.yaml create mode 100644 apps/rollout-reporter/onprem/resources/rbac.yaml create mode 100644 apps/rollout-reporter/onprem/resources/sensor.yaml diff --git a/apps/rollout-reporter/onprem/resources/event-source.yaml b/apps/rollout-reporter/onprem/resources/event-source.yaml new file mode 100644 index 0000000..9eb5925 --- /dev/null +++ b/apps/rollout-reporter/onprem/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: onprem +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/onprem/resources/rbac.yaml b/apps/rollout-reporter/onprem/resources/rbac.yaml new file mode 100644 index 0000000..89d0926 --- /dev/null +++ b/apps/rollout-reporter/onprem/resources/rbac.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + creationTimestamp: null + name: rollout-reporter-sa + namespace: onprem + +--- +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: onprem diff --git a/apps/rollout-reporter/onprem/resources/sensor.yaml b/apps/rollout-reporter/onprem/resources/sensor.yaml new file mode 100644 index 0000000..d9a9092 --- /dev/null +++ b/apps/rollout-reporter/onprem/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: onprem +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://hermes-onprem-test.cf-op.com/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://hermes-onprem-test.cf-op.com/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://hermes-onprem-test.cf-op.com/2.0/api/events + name: analysisruns +status: {} From 0867af8e428b8fa4df7431f8ed931b7ab25cbc86 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:35 +0300 Subject: [PATCH 091/151] Validating repository write permission From 3b393340ab89bae73c860bb49fc9c61878b9c6ee Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:36 +0300 Subject: [PATCH 092/151] installed app 'default-git-source' on project 'onprem' installation-path: '/' --- apps/default-git-source/onprem/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/default-git-source/onprem/config_dir.json diff --git a/apps/default-git-source/onprem/config_dir.json b/apps/default-git-source/onprem/config_dir.json new file mode 100644 index 0000000..ca05261 --- /dev/null +++ b/apps/default-git-source/onprem/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "default-git-source", + "userGivenName": "default-git-source", + "destNamespace": "onprem", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources_onprem", + "srcRepoURL": "https://github.com/alina-codefresh/first_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 36c3977f86160b351602a1fb7aacb3fa7ebf1cc7 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:39 +0300 Subject: [PATCH 093/151] Validating repository write permission From 9cb4859982b37e28f8849ceda7b85922bb50695f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 12:27:40 +0300 Subject: [PATCH 094/151] installed app 'marketplace-git-source' on project 'onprem' installation-path: '/' --- .../onprem/config_dir.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 apps/marketplace-git-source/onprem/config_dir.json diff --git a/apps/marketplace-git-source/onprem/config_dir.json b/apps/marketplace-git-source/onprem/config_dir.json new file mode 100644 index 0000000..ac4bf80 --- /dev/null +++ b/apps/marketplace-git-source/onprem/config_dir.json @@ -0,0 +1,18 @@ +{ + "appName": "marketplace-git-source", + "userGivenName": "marketplace-git-source", + "destNamespace": "onprem", + "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 b73fdb417bb1f282cedabafef99c82e512275405 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 15:26:37 +0300 Subject: [PATCH 095/151] Validating repository write permission From 4b432a88390402784a09c3fe5b2574058d30bdc8 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 15:26:38 +0300 Subject: [PATCH 096/151] Autopilot Uninstall --- apps/README.md | 27 ---- apps/app-proxy/base/kustomization.yaml | 4 - apps/app-proxy/overlays/onprem/config.json | 16 --- .../overlays/onprem/kustomization.yaml | 14 --- .../onprem/config_helm.json | 18 --- .../default-git-source/onprem/config_dir.json | 18 --- apps/events-reporter/onprem/config_dir.json | 18 --- .../onprem/resources/event-source.yaml | 23 ---- .../onprem/resources/sensor.yaml | 42 ------- apps/events/base/kustomization.yaml | 4 - apps/events/overlays/onprem/config.json | 16 --- .../events/overlays/onprem/kustomization.yaml | 5 - apps/internal-router/base/kustomization.yaml | 4 - .../overlays/onprem/config.json | 16 --- .../overlays/onprem/kustomization.yaml | 5 - .../onprem/config_dir.json | 18 --- apps/rollout-reporter/onprem/config_dir.json | 18 --- .../onprem/resources/event-source.yaml | 50 -------- .../onprem/resources/rbac.yaml | 35 ------ .../onprem/resources/sensor.yaml | 92 -------------- apps/rollouts/base/kustomization.yaml | 4 - apps/rollouts/overlays/onprem/config.json | 16 --- .../overlays/onprem/kustomization.yaml | 5 - apps/sealed-secrets/base/kustomization.yaml | 4 - .../overlays/onprem/config.json | 16 --- .../overlays/onprem/kustomization.yaml | 5 - apps/workflow-reporter/onprem/config_dir.json | 18 --- .../onprem/resources/event-source.yaml | 28 ----- .../onprem/resources/rbac.yaml | 37 ------ .../onprem/resources/sensor.yaml | 42 ------- apps/workflows/base/kustomization.yaml | 4 - apps/workflows/overlays/onprem/config.json | 16 --- .../overlays/onprem/kustomization.yaml | 12 -- .../overlays/onprem/route-patch.json | 12 -- bootstrap/DUMMY | 0 bootstrap/argo-cd.yaml | 40 ------ bootstrap/argo-cd/kustomization.yaml | 17 --- bootstrap/cluster-resources.yaml | 50 -------- bootstrap/cluster-resources/in-cluster.json | 1 - .../cluster-resources/in-cluster/README.md | 3 - .../in-cluster/onprem-ns.yaml | 9 -- bootstrap/onprem.yaml | 54 -------- bootstrap/root.yaml | 41 ------ projects/README.md | 21 ---- projects/onprem.yaml | 119 ------------------ 45 files changed, 1017 deletions(-) delete mode 100644 apps/README.md delete mode 100644 apps/app-proxy/base/kustomization.yaml delete mode 100644 apps/app-proxy/overlays/onprem/config.json delete mode 100644 apps/app-proxy/overlays/onprem/kustomization.yaml delete mode 100644 apps/codefresh-tunnel-client/onprem/config_helm.json delete mode 100644 apps/default-git-source/onprem/config_dir.json delete mode 100644 apps/events-reporter/onprem/config_dir.json delete mode 100644 apps/events-reporter/onprem/resources/event-source.yaml delete mode 100644 apps/events-reporter/onprem/resources/sensor.yaml delete mode 100644 apps/events/base/kustomization.yaml delete mode 100644 apps/events/overlays/onprem/config.json delete mode 100644 apps/events/overlays/onprem/kustomization.yaml delete mode 100644 apps/internal-router/base/kustomization.yaml delete mode 100644 apps/internal-router/overlays/onprem/config.json delete mode 100644 apps/internal-router/overlays/onprem/kustomization.yaml delete mode 100644 apps/marketplace-git-source/onprem/config_dir.json delete mode 100644 apps/rollout-reporter/onprem/config_dir.json delete mode 100644 apps/rollout-reporter/onprem/resources/event-source.yaml delete mode 100644 apps/rollout-reporter/onprem/resources/rbac.yaml delete mode 100644 apps/rollout-reporter/onprem/resources/sensor.yaml delete mode 100644 apps/rollouts/base/kustomization.yaml delete mode 100644 apps/rollouts/overlays/onprem/config.json delete mode 100644 apps/rollouts/overlays/onprem/kustomization.yaml delete mode 100644 apps/sealed-secrets/base/kustomization.yaml delete mode 100644 apps/sealed-secrets/overlays/onprem/config.json delete mode 100644 apps/sealed-secrets/overlays/onprem/kustomization.yaml delete mode 100644 apps/workflow-reporter/onprem/config_dir.json delete mode 100644 apps/workflow-reporter/onprem/resources/event-source.yaml delete mode 100644 apps/workflow-reporter/onprem/resources/rbac.yaml delete mode 100644 apps/workflow-reporter/onprem/resources/sensor.yaml delete mode 100644 apps/workflows/base/kustomization.yaml delete mode 100644 apps/workflows/overlays/onprem/config.json delete mode 100644 apps/workflows/overlays/onprem/kustomization.yaml delete mode 100644 apps/workflows/overlays/onprem/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/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/onprem-ns.yaml delete mode 100644 bootstrap/onprem.yaml delete mode 100644 bootstrap/root.yaml delete mode 100644 projects/README.md delete mode 100644 projects/onprem.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 991577b..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.29 diff --git a/apps/app-proxy/overlays/onprem/config.json b/apps/app-proxy/overlays/onprem/config.json deleted file mode 100644 index b480a64..0000000 --- a/apps/app-proxy/overlays/onprem/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "app-proxy", - "userGivenName": "app-proxy", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/app-proxy/overlays/onprem", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/app-proxy/overlays/onprem/kustomization.yaml deleted file mode 100644 index 2d7afb9..0000000 --- a/apps/app-proxy/overlays/onprem/kustomization.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - argoWorkflowsInsecure=true - - cfHost=https://hermes-onprem-test.cf-op.com - - cors=https://hermes-onprem-test.cf-op.com - - env=production - - skipPermissionsValidation=false - name: cap-app-proxy-cm -kind: Kustomization -namespace: onprem -resources: -- ../../base diff --git a/apps/codefresh-tunnel-client/onprem/config_helm.json b/apps/codefresh-tunnel-client/onprem/config_helm.json deleted file mode 100644 index 1c251f9..0000000 --- a/apps/codefresh-tunnel-client/onprem/config_helm.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "codefresh-tunnel-client", - "userGivenName": "codefresh-tunnel-client", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "codefresh-tunnel-client", - "srcRepoURL": "https://github.com/codefresh-io/codefresh-tunnel-charts.git", - "srcTargetRevision": "0.1.8", - "labels": { - "codefresh_io_entity": "component", - "codefresh_io_internal": "true" - }, - "annotations": { - "argocd_argoproj_io_sync-wave": "0" - }, - "srcChart": "", - "values": "tunnel:\n ipsAllowList: \"\"\n subdomainPrefix: 59009117c102763beda7ce71-onprem\ntunnelServer:\n host: register-tunnels.cf-cd.com\n" -} \ No newline at end of file diff --git a/apps/default-git-source/onprem/config_dir.json b/apps/default-git-source/onprem/config_dir.json deleted file mode 100644 index ca05261..0000000 --- a/apps/default-git-source/onprem/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "default-git-source", - "userGivenName": "default-git-source", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "resources_onprem", - "srcRepoURL": "https://github.com/alina-codefresh/first_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/onprem/config_dir.json b/apps/events-reporter/onprem/config_dir.json deleted file mode 100644 index 9f1c931..0000000 --- a/apps/events-reporter/onprem/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "events-reporter", - "userGivenName": "events-reporter", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events-reporter/onprem/resources", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/resources/event-source.yaml b/apps/events-reporter/onprem/resources/event-source.yaml deleted file mode 100644 index fd128fb..0000000 --- a/apps/events-reporter/onprem/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: onprem -spec: - eventBusName: codefresh-eventbus - generic: - events: - authSecret: - key: token - name: argocd-token - config: '{}' - insecure: true - url: argocd-server.onprem.svc:80 - template: - container: - name: "" - resources: {} -status: {} diff --git a/apps/events-reporter/onprem/resources/sensor.yaml b/apps/events-reporter/onprem/resources/sensor.yaml deleted file mode 100644 index feefc97..0000000 --- a/apps/events-reporter/onprem/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: onprem -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://hermes-onprem-test.cf-op.com/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 3483b8f..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.29 diff --git a/apps/events/overlays/onprem/config.json b/apps/events/overlays/onprem/config.json deleted file mode 100644 index 732c595..0000000 --- a/apps/events/overlays/onprem/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "events", - "userGivenName": "events", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/events/overlays/onprem", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/events/overlays/onprem/kustomization.yaml deleted file mode 100644 index 848f583..0000000 --- a/apps/events/overlays/onprem/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: onprem -resources: -- ../../base diff --git a/apps/internal-router/base/kustomization.yaml b/apps/internal-router/base/kustomization.yaml deleted file mode 100644 index 957b171..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.29 diff --git a/apps/internal-router/overlays/onprem/config.json b/apps/internal-router/overlays/onprem/config.json deleted file mode 100644 index ea2b858..0000000 --- a/apps/internal-router/overlays/onprem/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "internal-router", - "userGivenName": "internal-router", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/internal-router/overlays/onprem", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/internal-router/overlays/onprem/kustomization.yaml deleted file mode 100644 index 848f583..0000000 --- a/apps/internal-router/overlays/onprem/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: onprem -resources: -- ../../base diff --git a/apps/marketplace-git-source/onprem/config_dir.json b/apps/marketplace-git-source/onprem/config_dir.json deleted file mode 100644 index ac4bf80..0000000 --- a/apps/marketplace-git-source/onprem/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "marketplace-git-source", - "userGivenName": "marketplace-git-source", - "destNamespace": "onprem", - "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/onprem/config_dir.json b/apps/rollout-reporter/onprem/config_dir.json deleted file mode 100644 index dc632f0..0000000 --- a/apps/rollout-reporter/onprem/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "rollout-reporter", - "userGivenName": "rollout-reporter", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollout-reporter/onprem/resources", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/resources/event-source.yaml b/apps/rollout-reporter/onprem/resources/event-source.yaml deleted file mode 100644 index 9eb5925..0000000 --- a/apps/rollout-reporter/onprem/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: onprem -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/onprem/resources/rbac.yaml b/apps/rollout-reporter/onprem/resources/rbac.yaml deleted file mode 100644 index 89d0926..0000000 --- a/apps/rollout-reporter/onprem/resources/rbac.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: rollout-reporter-sa - namespace: onprem - ---- -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: onprem diff --git a/apps/rollout-reporter/onprem/resources/sensor.yaml b/apps/rollout-reporter/onprem/resources/sensor.yaml deleted file mode 100644 index d9a9092..0000000 --- a/apps/rollout-reporter/onprem/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: onprem -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://hermes-onprem-test.cf-op.com/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://hermes-onprem-test.cf-op.com/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://hermes-onprem-test.cf-op.com/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 2950a9e..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.29 diff --git a/apps/rollouts/overlays/onprem/config.json b/apps/rollouts/overlays/onprem/config.json deleted file mode 100644 index ef5698b..0000000 --- a/apps/rollouts/overlays/onprem/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "rollouts", - "userGivenName": "rollouts", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/rollouts/overlays/onprem", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/rollouts/overlays/onprem/kustomization.yaml deleted file mode 100644 index 848f583..0000000 --- a/apps/rollouts/overlays/onprem/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: onprem -resources: -- ../../base diff --git a/apps/sealed-secrets/base/kustomization.yaml b/apps/sealed-secrets/base/kustomization.yaml deleted file mode 100644 index ddf8ff9..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.29 diff --git a/apps/sealed-secrets/overlays/onprem/config.json b/apps/sealed-secrets/overlays/onprem/config.json deleted file mode 100644 index 227d2e0..0000000 --- a/apps/sealed-secrets/overlays/onprem/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "sealed-secrets", - "userGivenName": "sealed-secrets", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/sealed-secrets/overlays/onprem", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/sealed-secrets/overlays/onprem/kustomization.yaml deleted file mode 100644 index 848f583..0000000 --- a/apps/sealed-secrets/overlays/onprem/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: onprem -resources: -- ../../base diff --git a/apps/workflow-reporter/onprem/config_dir.json b/apps/workflow-reporter/onprem/config_dir.json deleted file mode 100644 index 1f569ec..0000000 --- a/apps/workflow-reporter/onprem/config_dir.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "appName": "workflow-reporter", - "userGivenName": "workflow-reporter", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflow-reporter/onprem/resources", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/resources/event-source.yaml b/apps/workflow-reporter/onprem/resources/event-source.yaml deleted file mode 100644 index 22daec6..0000000 --- a/apps/workflow-reporter/onprem/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: onprem -spec: - eventBusName: codefresh-eventbus - resource: - workflows: - eventTypes: - - ADD - - UPDATE - - DELETE - filter: - createdBy: null - group: argoproj.io - namespace: onprem - resource: workflows - version: v1alpha1 - template: - container: - name: "" - resources: {} - serviceAccountName: codefresh-sa -status: {} diff --git a/apps/workflow-reporter/onprem/resources/rbac.yaml b/apps/workflow-reporter/onprem/resources/rbac.yaml deleted file mode 100644 index c277c79..0000000 --- a/apps/workflow-reporter/onprem/resources/rbac.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: onprem - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: onprem -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - creationTimestamp: null - name: codefresh-sa - namespace: onprem -roleRef: - apiGroup: "" - kind: Role - name: codefresh-sa -subjects: -- kind: ServiceAccount - name: codefresh-sa - namespace: onprem diff --git a/apps/workflow-reporter/onprem/resources/sensor.yaml b/apps/workflow-reporter/onprem/resources/sensor.yaml deleted file mode 100644 index 14bc3d2..0000000 --- a/apps/workflow-reporter/onprem/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: onprem -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://hermes-onprem-test.cf-op.com/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 4e5b563..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.29 diff --git a/apps/workflows/overlays/onprem/config.json b/apps/workflows/overlays/onprem/config.json deleted file mode 100644 index 5e4fbca..0000000 --- a/apps/workflows/overlays/onprem/config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "appName": "workflows", - "userGivenName": "workflows", - "destNamespace": "onprem", - "destServer": "https://kubernetes.default.svc", - "srcPath": "apps/workflows/overlays/onprem", - "srcRepoURL": "https://github.com/alina-codefresh/first.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/onprem/kustomization.yaml b/apps/workflows/overlays/onprem/kustomization.yaml deleted file mode 100644 index 40c796d..0000000 --- a/apps/workflows/overlays/onprem/kustomization.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: onprem -patches: -- path: route-patch.json - target: - group: apps - kind: Deployment - name: argo-server - version: v1 -resources: -- ../../base diff --git a/apps/workflows/overlays/onprem/route-patch.json b/apps/workflows/overlays/onprem/route-patch.json deleted file mode 100644 index a8112e9..0000000 --- a/apps/workflows/overlays/onprem/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 c330e5b..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: onprem -spec: - destination: - namespace: onprem - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/argo-cd - repoURL: https://github.com/alina-codefresh/first.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 23b1986..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: onprem -resources: -- github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd?ref=0.1.29 diff --git a/bootstrap/cluster-resources.yaml b/bootstrap/cluster-resources.yaml deleted file mode 100644 index 857ad52..0000000 --- a/bootstrap/cluster-resources.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - labels: - codefresh.io/internal: "true" - name: cluster-resources - namespace: onprem -spec: - generators: - - git: - files: - - path: bootstrap/cluster-resources/*.json - repoURL: https://github.com/alina-codefresh/first.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: onprem - spec: - destination: - server: '{{server}}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: bootstrap/cluster-resources/{{name}} - repoURL: https://github.com/alina-codefresh/first.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/onprem-ns.yaml b/bootstrap/cluster-resources/in-cluster/onprem-ns.yaml deleted file mode 100644 index bb7a05b..0000000 --- a/bootstrap/cluster-resources/in-cluster/onprem-ns.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - argocd.argoproj.io/sync-options: Prune=false - creationTimestamp: null - name: onprem -spec: {} -status: {} diff --git a/bootstrap/onprem.yaml b/bootstrap/onprem.yaml deleted file mode 100644 index 5a3475e..0000000 --- a/bootstrap/onprem.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: v1 -data: - base-url: https://hermes-onprem-test.cf-op.com - runtime: | - apiVersion: codefresh.io/v1alpha1 - kind: Runtime - metadata: - creationTimestamp: null - name: onprem - namespace: onprem - spec: - accessMode: TUNNEL - bootstrapSpecifier: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-cd - cluster: https://B2A8F47D84174C53308248C7BB3693A1.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.29 - wait: true - - name: rollouts - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-rollouts?ref=0.1.29 - - name: workflows - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/argo-workflows?ref=0.1.29 - - name: app-proxy - syncWave: 9 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/app-proxy?ref=0.1.29 - - name: internal-router - syncWave: 10 - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/internal-router?ref=0.1.29 - - name: sealed-secrets - type: kustomize - url: github.com/codefresh-io/csdp-official/csdp/hybrid/basic/apps/sealed-secrets?ref=0.1.29 - - feature: ingressless - name: codefresh-tunnel-client - type: helm - url: github.com/codefresh-io/codefresh-tunnel-charts/codefresh-tunnel-client?ref=0.1.8 - defVersion: null - ingressHost: https://59009117c102763beda7ce71-onprem.tunnels.cf-cd.com - ref: "" - repo: https://github.com/alina-codefresh/first - requiredCLIVersion: ^0.1.0 - version: 0.1.29 -kind: ConfigMap -metadata: - creationTimestamp: null - labels: - app.kubernetes.io/managed-by: codefresh - codefresh.io/entity: runtimeDef - name: codefresh-cm - namespace: onprem diff --git a/bootstrap/root.yaml b/bootstrap/root.yaml deleted file mode 100644 index 6095fa2..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: onprem -spec: - destination: - namespace: onprem - server: https://kubernetes.default.svc - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: default - source: - path: projects - repoURL: https://github.com/alina-codefresh/first.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/onprem.yaml b/projects/onprem.yaml deleted file mode 100644 index dcc9422..0000000 --- a/projects/onprem.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: onprem - namespace: onprem -spec: - clusterResourceWhitelist: - - group: '*' - kind: '*' - description: onprem 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: onprem - namespace: onprem -spec: - generators: - - git: - files: - - path: apps/**/onprem/config.json - repoURL: https://github.com/alina-codefresh/first.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - repoURL: "" - - git: - files: - - path: apps/**/onprem/config_dir.json - repoURL: https://github.com/alina-codefresh/first.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: '{{ exclude }}' - include: '{{ include }}' - jsonnet: {} - recurse: true - repoURL: "" - - git: - files: - - path: apps/**/onprem/config_helm.json - repoURL: https://github.com/alina-codefresh/first.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - chart: '{{ srcChart }}' - helm: - releaseName: onprem-{{ 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: onprem-{{ userGivenName }} - namespace: onprem - spec: - destination: - namespace: '{{ destNamespace }}' - server: '{{ destServer }}' - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: onprem - source: - path: '{{ srcPath }}' - repoURL: '{{ srcRepoURL }}' - targetRevision: '{{ srcTargetRevision }}' - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} From 203f6035899363d9acc124c0b5e3eae6d480cbf7 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 31 May 2023 15:28:00 +0300 Subject: [PATCH 097/151] 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 7ea8554cc2a63ad588015f8b8e824f2c63530e7e Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 13:55:30 +0300 Subject: [PATCH 098/151] Create test-pc.txt --- test-pc.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test-pc.txt diff --git a/test-pc.txt b/test-pc.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test-pc.txt @@ -0,0 +1 @@ + From a4968b52b863e4c1f0363188a7af05e9bc6a8520 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:03:24 +0300 Subject: [PATCH 099/151] Delete test-pc.txt --- test-pc.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 test-pc.txt diff --git a/test-pc.txt b/test-pc.txt deleted file mode 100644 index 8b13789..0000000 --- a/test-pc.txt +++ /dev/null @@ -1 +0,0 @@ - From ac54901b536231569b42311726a8950c4928eced Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:07:10 +0300 Subject: [PATCH 100/151] Delete test-commit.txt --- test-commit.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 test-commit.txt diff --git a/test-commit.txt b/test-commit.txt deleted file mode 100644 index 38c98d9..0000000 --- a/test-commit.txt +++ /dev/null @@ -1 +0,0 @@ -test-2 From 41b28c4d34133baf3bdea1dbdaca1a4fed7284aa Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:09:51 +0300 Subject: [PATCH 101/151] Delete requirements.txt --- requirements.txt | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 4b2497c..0000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -test-status -v/3 From 2dad47917bec32458f6d73441e28b7e08742c299 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:30:06 +0300 Subject: [PATCH 102/151] Create 123.txt --- 123.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 123.txt diff --git a/123.txt b/123.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/123.txt @@ -0,0 +1 @@ + From 8ee1c6071639e430870e43cc50ee86c3371b7e6d Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:30:23 +0300 Subject: [PATCH 103/151] Delete 123.txt --- 123.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 123.txt diff --git a/123.txt b/123.txt deleted file mode 100644 index 8b13789..0000000 --- a/123.txt +++ /dev/null @@ -1 +0,0 @@ - From 84849256493c9110cb7cfe2e639326bd0b2ad090 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:30:34 +0300 Subject: [PATCH 104/151] Create 123.txt --- 123.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 123.txt diff --git a/123.txt b/123.txt new file mode 100644 index 0000000..97f93f4 --- /dev/null +++ b/123.txt @@ -0,0 +1 @@ +123.txt From 900fc539c959655a9b6c2c2e39c0de3cfe406e37 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:34:56 +0300 Subject: [PATCH 105/151] Create 345.txt --- 345.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 345.txt diff --git a/345.txt b/345.txt new file mode 100644 index 0000000..97f93f4 --- /dev/null +++ b/345.txt @@ -0,0 +1 @@ +123.txt From df1dee27d01a948a11fcb825371954c1db9c9a41 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:35:08 +0300 Subject: [PATCH 106/151] Create 324.txt --- 324.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 324.txt diff --git a/324.txt b/324.txt new file mode 100644 index 0000000..95ca711 --- /dev/null +++ b/324.txt @@ -0,0 +1 @@ +345.txt From 24d734ac754eda80d866b5002ce3558e4f9a7842 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:35:19 +0300 Subject: [PATCH 107/151] Create 678.txt --- 678.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 678.txt diff --git a/678.txt b/678.txt new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/678.txt @@ -0,0 +1 @@ +12 From 8420d2b83b71a64dd6de112fe9be84f04b15f21c Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:40:56 +0300 Subject: [PATCH 108/151] Delete 345.txt --- 345.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 345.txt diff --git a/345.txt b/345.txt deleted file mode 100644 index 97f93f4..0000000 --- a/345.txt +++ /dev/null @@ -1 +0,0 @@ -123.txt From 3a4b01e502cb134ddda8fba068d33a18bde8140a Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:41:07 +0300 Subject: [PATCH 109/151] Delete 678.txt --- 678.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 678.txt diff --git a/678.txt b/678.txt deleted file mode 100644 index 48082f7..0000000 --- a/678.txt +++ /dev/null @@ -1 +0,0 @@ -12 From 8b079dfd21d856d62000d21a200ca354fbba986b Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:41:58 +0300 Subject: [PATCH 110/151] Delete 324.txt --- 324.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 324.txt diff --git a/324.txt b/324.txt deleted file mode 100644 index 95ca711..0000000 --- a/324.txt +++ /dev/null @@ -1 +0,0 @@ -345.txt From 0fce845b760aef0c68c64e83d6825069da358d9c Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:44:34 +0300 Subject: [PATCH 111/151] Delete 123.txt --- 123.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 123.txt diff --git a/123.txt b/123.txt deleted file mode 100644 index 97f93f4..0000000 --- a/123.txt +++ /dev/null @@ -1 +0,0 @@ -123.txt From 6b48c24efe3e2b8d48f3462e12e33e480d81ceed Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:46:34 +0300 Subject: [PATCH 112/151] Create 12345.txt --- 12345.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 12345.txt diff --git a/12345.txt b/12345.txt new file mode 100644 index 0000000..81c545e --- /dev/null +++ b/12345.txt @@ -0,0 +1 @@ +1234 From c215c17e259497fe31b2177830b9ad8495bd13b5 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 14:50:09 +0300 Subject: [PATCH 113/151] Create test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test123.txt diff --git a/test123.txt b/test123.txt new file mode 100644 index 0000000..190a180 --- /dev/null +++ b/test123.txt @@ -0,0 +1 @@ +123 From 6153fc1b18ccd19f282b0a7d8a34688563423f32 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 16:21:50 +0300 Subject: [PATCH 114/151] Create 1234.txt --- 1234.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 1234.txt diff --git a/1234.txt b/1234.txt new file mode 100644 index 0000000..e56e15b --- /dev/null +++ b/1234.txt @@ -0,0 +1 @@ +12345 From 7568ee6ca2a11bb6c7730575d4ec639d0f94c040 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 16:23:13 +0300 Subject: [PATCH 115/151] Delete 12345.txt --- 12345.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 12345.txt diff --git a/12345.txt b/12345.txt deleted file mode 100644 index 81c545e..0000000 --- a/12345.txt +++ /dev/null @@ -1 +0,0 @@ -1234 From 41220b59e09cff983da49299fad6e4ecd4bd628b Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 16:25:44 +0300 Subject: [PATCH 116/151] Delete 1234.txt --- 1234.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 1234.txt diff --git a/1234.txt b/1234.txt deleted file mode 100644 index e56e15b..0000000 --- a/1234.txt +++ /dev/null @@ -1 +0,0 @@ -12345 From ccd6c63b5cce3337d12c5bbb671e39d14483d3f4 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 16:26:00 +0300 Subject: [PATCH 117/151] Create 1234.txt --- 1234.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 1234.txt diff --git a/1234.txt b/1234.txt new file mode 100644 index 0000000..81c545e --- /dev/null +++ b/1234.txt @@ -0,0 +1 @@ +1234 From ea74d66f722d6fb57a1a33ce5b90ae195ff52e1f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 16:27:52 +0300 Subject: [PATCH 118/151] Delete 1234.txt --- 1234.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 1234.txt diff --git a/1234.txt b/1234.txt deleted file mode 100644 index 81c545e..0000000 --- a/1234.txt +++ /dev/null @@ -1 +0,0 @@ -1234 From cae55261f7b1e605deb753850bc621f13d438ac0 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 1 Sep 2023 16:38:23 +0300 Subject: [PATCH 119/151] Create test-tr.txt --- test-tr.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test-tr.txt diff --git a/test-tr.txt b/test-tr.txt new file mode 100644 index 0000000..c070cfb --- /dev/null +++ b/test-tr.txt @@ -0,0 +1 @@ +terminate From 7a43d0c9adb1dfff84b9f7a963a757c59e05c555 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Tue, 5 Sep 2023 14:55:50 +0300 Subject: [PATCH 120/151] Create test3.txt --- test/test2/test3.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test/test2/test3.txt diff --git a/test/test2/test3.txt b/test/test2/test3.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test/test2/test3.txt @@ -0,0 +1 @@ + From 23cd806082d4fdfb56d21527e896cb18d640e3e3 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Mon, 11 Sep 2023 16:13:19 +0300 Subject: [PATCH 121/151] Update Dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index e499411..86f22c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN curl -fL https://getcli.jfrog.io | sh ENV JFROG_CLI_OFFER_CONFIG false ENV BINTRAY_LICENCES MIT +ARG test +RUN echo $**test** + RUN /jfrog-cli/jfrog bt config --licenses $BINTRAY_LICENCES RUN ln -s /jfrog-cli/jfrog /usr/local/bin/jfrog From 55f53990c6b23d30c232b69a51b525177db7407f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Mon, 11 Sep 2023 16:17:17 +0300 Subject: [PATCH 122/151] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 86f22c2..eac606f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ ENV JFROG_CLI_OFFER_CONFIG false ENV BINTRAY_LICENCES MIT ARG test -RUN echo $**test** +RUN echo $test RUN /jfrog-cli/jfrog bt config --licenses $BINTRAY_LICENCES From f5efbcd92fe68f679da05af9a23fd6faaacc054d Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Tue, 12 Sep 2023 12:50:48 +0300 Subject: [PATCH 123/151] Delete test-tr.txt --- test-tr.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 test-tr.txt diff --git a/test-tr.txt b/test-tr.txt deleted file mode 100644 index c070cfb..0000000 --- a/test-tr.txt +++ /dev/null @@ -1 +0,0 @@ -terminate From b5c05979cfd6980f777b9dbcfe3104ed7fd275e1 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:15:10 +0300 Subject: [PATCH 124/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index 190a180..3e67fe1 100644 --- a/test123.txt +++ b/test123.txt @@ -1 +1,2 @@ 123 +123 From 8da27907d1d530b16494ade25908d8727d1ef60e Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:15:18 +0300 Subject: [PATCH 125/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index 3e67fe1..dfdc2b9 100644 --- a/test123.txt +++ b/test123.txt @@ -1,2 +1,3 @@ 123 123 +123 From f05dea254af11cde8016c756753815f955a582e9 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:15:31 +0300 Subject: [PATCH 126/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index dfdc2b9..310be06 100644 --- a/test123.txt +++ b/test123.txt @@ -1,3 +1,4 @@ 123 123 123 +123 From d60f2dff7d8c1b3e18d324f9801414185def9262 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:17:54 +0300 Subject: [PATCH 127/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index 310be06..7a699d6 100644 --- a/test123.txt +++ b/test123.txt @@ -2,3 +2,4 @@ 123 123 123 +123 From 25ab613fb11436f5c179732be01cc5991bc0e94f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:18:00 +0300 Subject: [PATCH 128/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index 7a699d6..3f4e5eb 100644 --- a/test123.txt +++ b/test123.txt @@ -3,3 +3,4 @@ 123 123 123 +123 From 109e5f1fb166b2a70ff9a649a6d16cef3a5acc32 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:19:18 +0300 Subject: [PATCH 129/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index 3f4e5eb..d51c391 100644 --- a/test123.txt +++ b/test123.txt @@ -4,3 +4,4 @@ 123 123 123 +123 From cdedc9c42b4a3919c33aabc9eab516ef2ef39fd7 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:24:24 +0300 Subject: [PATCH 130/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index d51c391..90ee0e4 100644 --- a/test123.txt +++ b/test123.txt @@ -5,3 +5,4 @@ 123 123 123 +123 From 6304b774a2d5ddd7317cf797dcc2511f77b664e7 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:26:59 +0300 Subject: [PATCH 131/151] Create test.txt --- test.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..190a180 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +123 From 976596d5a3b4837e90d3fe004a0c60eccf0a4580 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:51:28 +0300 Subject: [PATCH 132/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index 90ee0e4..b03cc2e 100644 --- a/test123.txt +++ b/test123.txt @@ -6,3 +6,4 @@ 123 123 123 +123 From 43d5997510ed821353e5ebe26440dbe26bdafa6d Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:51:46 +0300 Subject: [PATCH 133/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index b03cc2e..02d18c3 100644 --- a/test123.txt +++ b/test123.txt @@ -7,3 +7,4 @@ 123 123 123 +123 From 296590d70d0bcc5c8c411456a3c4072976c6ec32 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:53:33 +0300 Subject: [PATCH 134/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index 02d18c3..c8250c2 100644 --- a/test123.txt +++ b/test123.txt @@ -8,3 +8,4 @@ 123 123 123 +123 From 0a847a987e4ce2ff71e76bd352128a733d9aa70b Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 12:55:42 +0300 Subject: [PATCH 135/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index c8250c2..3cb9dbc 100644 --- a/test123.txt +++ b/test123.txt @@ -9,3 +9,4 @@ 123 123 123 +123 From 8ad7ce624b8917710fef58c55eac1ea2c5c1d54f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 13:18:07 +0300 Subject: [PATCH 136/151] Update test123.txt --- test123.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test123.txt b/test123.txt index 3cb9dbc..a204c91 100644 --- a/test123.txt +++ b/test123.txt @@ -10,3 +10,4 @@ 123 123 123 +123 From 71626cc85ebb32f39b9d4c3af7056c60b2301be1 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 13:42:02 +0300 Subject: [PATCH 137/151] Create codefrsh.yml --- codefrsh.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 codefrsh.yml diff --git a/codefrsh.yml b/codefrsh.yml new file mode 100644 index 0000000..71d704c --- /dev/null +++ b/codefrsh.yml @@ -0,0 +1,11 @@ +version: "1.0" +stages: + - clone +steps: + clone: + title: Cloning repository + type: git-clone + repo: alina-codefresh/onprem-2.0 + git: github-2 + stage: clone + revision: main From b0adfb075ebb4d468683b2fb35b0aad77fe9ff0c Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 20 Sep 2023 13:42:45 +0300 Subject: [PATCH 138/151] Create codefresh.yml --- codefresh.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 codefresh.yml diff --git a/codefresh.yml b/codefresh.yml new file mode 100644 index 0000000..71d704c --- /dev/null +++ b/codefresh.yml @@ -0,0 +1,11 @@ +version: "1.0" +stages: + - clone +steps: + clone: + title: Cloning repository + type: git-clone + repo: alina-codefresh/onprem-2.0 + git: github-2 + stage: clone + revision: main From 89cb9cc22c3a72425dce0370d79618bbc5568be3 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 15 Dec 2023 11:07:19 +0200 Subject: [PATCH 139/151] Create test-push-commit.txt --- test-push-commit.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test-push-commit.txt diff --git a/test-push-commit.txt b/test-push-commit.txt new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/test-push-commit.txt @@ -0,0 +1 @@ +test From 28a15a27e0b175e076287368f689bcd08f5452d1 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 15 Dec 2023 11:37:29 +0200 Subject: [PATCH 140/151] Create test-onprem.txt --- test-onprem.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test-onprem.txt diff --git a/test-onprem.txt b/test-onprem.txt new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/test-onprem.txt @@ -0,0 +1 @@ +test From 857e64462d754b26e9276b8233730f058949441b Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Fri, 13 Sep 2024 16:20:05 +0300 Subject: [PATCH 141/151] Create composition.yaml --- composition.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 composition.yaml diff --git a/composition.yaml b/composition.yaml new file mode 100644 index 0000000..21f0473 --- /dev/null +++ b/composition.yaml @@ -0,0 +1,20 @@ +version: '3' +services: + app: + image: wordpress + links: + - db:mysql + ports: + - 80 + restart: always + + db: + image: mysql + ports: + - 3306 + environment: + MYSQL_ROOT_PASSWORD: wordpress + MYSQL_USER: wordpress + MYSQL_PASSWORD: wordpress + MYSQL_DATABASE: wordpress + restart: always From eb4694663f1f82a7810028812565ea9960f37128 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Sat, 2 Nov 2024 13:40:14 +0200 Subject: [PATCH 142/151] Rename docker-compose.yaml to docker-compose.yml --- docker-compose.yaml => docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename docker-compose.yaml => docker-compose.yml (96%) diff --git a/docker-compose.yaml b/docker-compose.yml similarity index 96% rename from docker-compose.yaml rename to docker-compose.yml index a27eb9b..76724e6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yml @@ -14,4 +14,4 @@ services: web: networks: - web: \ No newline at end of file + web: From d6d98d1df07d0a514f76261d6b5ceeb3eeb06965 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Sat, 2 Nov 2024 13:47:22 +0200 Subject: [PATCH 143/151] Rename docker-compose.yml to docker-compose.yaml --- docker-compose.yml => docker-compose.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docker-compose.yml => docker-compose.yaml (100%) diff --git a/docker-compose.yml b/docker-compose.yaml similarity index 100% rename from docker-compose.yml rename to docker-compose.yaml From ffb798c7a66e2cd5c2cb6a8bfb2077b014ad90fa Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Tue, 26 Nov 2024 15:39:07 +0200 Subject: [PATCH 144/151] Create test-manual.txt --- test-manual.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test-manual.txt diff --git a/test-manual.txt b/test-manual.txt new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/test-manual.txt @@ -0,0 +1 @@ +test From 8afffe74df44a5900c671207a9ce14a6646d061a Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Tue, 26 Nov 2024 15:42:33 +0200 Subject: [PATCH 145/151] Update test-manual.txt --- test-manual.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test-manual.txt b/test-manual.txt index 9daeafb..fea32dd 100644 --- a/test-manual.txt +++ b/test-manual.txt @@ -1 +1,2 @@ test +trigger From 5b8a9c2cdca5d682df0f7b29f0ad12ab5bcf1d66 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Wed, 11 Dec 2024 16:13:14 +0200 Subject: [PATCH 146/151] Update codefresh.yml --- codefresh.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index 71d704c..642e426 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -5,7 +5,7 @@ steps: clone: title: Cloning repository type: git-clone - repo: alina-codefresh/onprem-2.0 - git: github-2 + repo: alina-codefresh/on-prem-2.6.0 + git: github-7 stage: clone revision: main From 68639ea59529a1fa624836b95713773c3c11803f Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Thu, 12 Dec 2024 11:09:40 +0200 Subject: [PATCH 147/151] Rename docker-compose.yaml to docker-compose.yml --- docker-compose.yaml => docker-compose.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docker-compose.yaml => docker-compose.yml (100%) diff --git a/docker-compose.yaml b/docker-compose.yml similarity index 100% rename from docker-compose.yaml rename to docker-compose.yml From 43c55f6936a403777f9d5d9fe0e45c4455cd0e37 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Thu, 20 Mar 2025 16:56:49 +0200 Subject: [PATCH 148/151] Update codefresh.yml --- codefresh.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index 642e426..3d93f0e 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -5,7 +5,7 @@ steps: clone: title: Cloning repository type: git-clone - repo: alina-codefresh/on-prem-2.6.0 - git: github-7 + repo: alina-codefresh/on-prem-2.7.0 + git: github-8 stage: clone revision: main From 6020af22ef4f85705c8e227e482975287f1eb156 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Thu, 15 May 2025 12:06:57 +0300 Subject: [PATCH 149/151] Update codefresh.yml --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index 3d93f0e..bda6d5b 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -6,6 +6,6 @@ steps: title: Cloning repository type: git-clone repo: alina-codefresh/on-prem-2.7.0 - git: github-8 + git: github-1 stage: clone revision: main From c5e7ad2d78dd916b4dbc34c57dfc5c38185b3e2e Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Tue, 27 May 2025 15:42:28 +0300 Subject: [PATCH 150/151] Update codefresh.yml --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index bda6d5b..9ef7021 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -5,7 +5,7 @@ steps: clone: title: Cloning repository type: git-clone - repo: alina-codefresh/on-prem-2.7.0 + repo: alina-codefresh/on-prem-2.8.0 git: github-1 stage: clone revision: main From 05485f855fc36c2b9b7999d4b72932613c4ff918 Mon Sep 17 00:00:00 2001 From: alina-codefresh Date: Tue, 27 May 2025 15:44:02 +0300 Subject: [PATCH 151/151] Update codefresh.yml --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index 9ef7021..4377c3f 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -6,6 +6,6 @@ steps: title: Cloning repository type: git-clone repo: alina-codefresh/on-prem-2.8.0 - git: github-1 + git: github-2.8.0-token stage: clone revision: main