diff --git a/Dockerfile b/Dockerfile index e499411..eac606f 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 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/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/codefresh.yml b/codefresh.yml new file mode 100644 index 0000000..4377c3f --- /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/on-prem-2.8.0 + git: github-2.8.0-token + stage: clone + revision: main 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 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 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: 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: {} 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 diff --git a/test-manual.txt b/test-manual.txt new file mode 100644 index 0000000..fea32dd --- /dev/null +++ b/test-manual.txt @@ -0,0 +1,2 @@ +test +trigger 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 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 diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..190a180 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +123 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 @@ + diff --git a/test123.txt b/test123.txt new file mode 100644 index 0000000..a204c91 --- /dev/null +++ b/test123.txt @@ -0,0 +1,13 @@ +123 +123 +123 +123 +123 +123 +123 +123 +123 +123 +123 +123 +123