← harnesscd-example-apps

Added the names according to the constant

3bb2555fb9d0f16887f46ef3397b262acc8a3ba5 · Debanitrkl · Aug 17, 2023 10:44

+9 −9 · 6 files changed

  • aws-lambda/harnesscd-pipeline/pipeline.yml +1 −1
  • aws-lambda/harnesscd-pipeline/service.yml +1 −1
  • google_cloud_function/1st_gen/service.yml +2 −2
  • google_cloud_function/2nd_gen/service.yml +2 −2
  • serverless-lambda/harnesscd-pipeline/aws-connector.yml +2 −2
  • serverless-lambda/harnesscd-pipeline/github-connector.yml +1 −1
diff --git a/aws-lambda/harnesscd-pipeline/pipeline.yml b/aws-lambda/harnesscd-pipeline/pipeline.yml
index b16250a..37def98 100644
--- a/aws-lambda/harnesscd-pipeline/pipeline.yml
+++ b/aws-lambda/harnesscd-pipeline/pipeline.yml
@@ -36,7 +36,7 @@ pipeline:
                   timeout: 10m
                   spec:
                     delegateSelectors:
-                      - docker-delegate
+                      - DELEGATE_NAME
             rollbackSteps:
               - step:
                   name: Aws Lambda rollback
diff --git a/aws-lambda/harnesscd-pipeline/service.yml b/aws-lambda/harnesscd-pipeline/service.yml
index c1655b1..10966d3 100644
--- a/aws-lambda/harnesscd-pipeline/service.yml
+++ b/aws-lambda/harnesscd-pipeline/service.yml
@@ -23,7 +23,7 @@ service:
           sources:
             - spec:
                 connectorRef: awslambda
-                bucketName: AWS_BUCKET
+                bucketName: CLOUD_BUCKET_NAME
                 region: REGION
                 filePath: hello_world.zip
               identifier: ArtifactIdentifier
diff --git a/google_cloud_function/1st_gen/service.yml b/google_cloud_function/1st_gen/service.yml
index 6de927d..6d5577e 100644
--- a/google_cloud_function/1st_gen/service.yml
+++ b/google_cloud_function/1st_gen/service.yml
@@ -24,8 +24,8 @@ service:
           sources:
             - spec:
                 connectorRef: gcpconnector
-                project: GCP_PROJECT_NAME
-                bucket: GCP_BUCKET_NAME
+                project: CLOUD_PROJECT_NAME
+                bucket: CLOUD_BUCKET_NAME
                 artifactPath: hello_world.zip
               identifier: hello_world
               type: GoogleCloudStorage
diff --git a/google_cloud_function/2nd_gen/service.yml b/google_cloud_function/2nd_gen/service.yml
index 50f556b..4971cd7 100644
--- a/google_cloud_function/2nd_gen/service.yml
+++ b/google_cloud_function/2nd_gen/service.yml
@@ -24,8 +24,8 @@ service:
           sources:
             - spec:
                 connectorRef: gcpconnector
-                project: <GCP_PROJECT>
-                bucket: <GCP_BUCKET>
+                project: CLOUD_PROJECT_NAME
+                bucket: CLOUD_BUCKET_NAME
                 artifactPath: helloHttp.zip
               identifier: hello_http
               type: GoogleCloudStorage
diff --git a/serverless-lambda/harnesscd-pipeline/aws-connector.yml b/serverless-lambda/harnesscd-pipeline/aws-connector.yml
index 2cfbf17..2d19521 100644
--- a/serverless-lambda/harnesscd-pipeline/aws-connector.yml
+++ b/serverless-lambda/harnesscd-pipeline/aws-connector.yml
@@ -13,12 +13,12 @@ connector:
       spec:
         accessKey: AWS_ACCESS_KEY
         secretKeyRef: AWS_PERMANENT_ACCESS_TOKEN
-      region: REGION_FOR_USERS_ROLES
+      region: REGION
     awsSdkClientBackOffStrategyOverride:
       type: FixedDelayBackoffStrategy
       spec:
         fixedBackoff: 1
         retryCount: 2
     delegateSelectors:
-      - docker-delegate
+      - DELEGATE_NAME
     executeOnDelegate: true
\ No newline at end of file
diff --git a/serverless-lambda/harnesscd-pipeline/github-connector.yml b/serverless-lambda/harnesscd-pipeline/github-connector.yml
index 5ea644d..f5c2c3b 100644
--- a/serverless-lambda/harnesscd-pipeline/github-connector.yml
+++ b/serverless-lambda/harnesscd-pipeline/github-connector.yml
@@ -20,6 +20,6 @@ connector:
       spec:
         tokenRef: harness_gitpat
     delegateSelectors:
-      - harness-serverless-delegate
+      - DELEGATE_NAME
     executeOnDelegate: true
     type: Repo