← harnesscd-example-apps

Update manifest files for podinfo

2bef303e65726555b1f0c33744e09a4aecada1e5 · Dewan Ahmed · Jan 5, 2024 11:22

+15 −9 · 6 files changed

  • podinfo/harness-gitops/application.yml +2 −2
  • podinfo/harness-gitops/environment-prod.yml +8 −1
  • podinfo/harness-gitops/github-connector.yml +1 −2
  • podinfo/harness-gitops/repository.yml +1 −1
  • podinfo/harness-gitops/service.yml +2 −2
  • podinfo/harness-gitops/trigger.yml +1 −1
diff --git a/podinfo/harness-gitops/application.yml b/podinfo/harness-gitops/application.yml
index d946e2e..21e4f10 100644
--- a/podinfo/harness-gitops/application.yml
+++ b/podinfo/harness-gitops/application.yml
@@ -11,9 +11,9 @@ gitops:
         harness.io/envRef: ""
     spec:
       source:
-        repoURL: https://github.com/YOUR_GITHUB_USERNAME/harnesscd-example-apps
+        repoURL: https://github.com/GITHUB_USERNAME/harnesscd-example-apps
         path: podinfo/configs/git-generator-files-discovery
-        targetRevision: main
+        targetRevision: master
       destination:
         server: https://kubernetes.default.svc
         namespace: default
diff --git a/podinfo/harness-gitops/environment-prod.yml b/podinfo/harness-gitops/environment-prod.yml
index 8b13789..49bb812 100644
--- a/podinfo/harness-gitops/environment-prod.yml
+++ b/podinfo/harness-gitops/environment-prod.yml
@@ -1 +1,8 @@
-
+environment:
+  name: prod
+  identifier: prod
+  tags: {}
+  type: Production
+  orgIdentifier: default
+  projectIdentifier: default_project
+  variables: []
diff --git a/podinfo/harness-gitops/github-connector.yml b/podinfo/harness-gitops/github-connector.yml
index 3c91223..7b61a9e 100644
--- a/podinfo/harness-gitops/github-connector.yml
+++ b/podinfo/harness-gitops/github-connector.yml
@@ -2,12 +2,11 @@ connector:
   name: github-connector
   identifier: githubconnector
   description: ""
-  accountIdentifier: YOUR_HARNESS_ACCOUNT_ID
   orgIdentifier: default
   projectIdentifier: default_project
   type: Github
   spec:
-    url: https://github.com/GITHUB_USERNAME/harness-gitops-workshop
+    url: https://github.com/GITHUB_USERNAME/harnesscd-example-apps
     authentication:
       type: Http
       spec:
diff --git a/podinfo/harness-gitops/repository.yml b/podinfo/harness-gitops/repository.yml
index 04ab77f..41bdbe4 100644
--- a/podinfo/harness-gitops/repository.yml
+++ b/podinfo/harness-gitops/repository.yml
@@ -5,7 +5,7 @@ gitops:
     orgIdentifier: default
     type: repository
     repo:
-        repo: https://github.com/harness-community/harnesscd-example-apps
+        repo: https://github.com/GITHUB_USERNAME/harnesscd-example-apps
         type: git
         connectionType: HTTPS_ANONYMOUS
     agentIdentifier: AGENT_NAME
\ No newline at end of file
diff --git a/podinfo/harness-gitops/service.yml b/podinfo/harness-gitops/service.yml
index 4513c56..7a3da70 100644
--- a/podinfo/harness-gitops/service.yml
+++ b/podinfo/harness-gitops/service.yml
@@ -17,7 +17,7 @@ service:
                   gitFetchType: Branch
                   paths:
                     - podinfo/configs/git-generator-files-discovery/cluster-config/engineering/<+env.name>/config.json
-                  branch: main
+                  branch: master
         - manifest:
             identifier: podinfodeployment
             type: DeploymentRepo
@@ -29,6 +29,6 @@ service:
                   gitFetchType: Branch
                   paths:
                     - podinfo/configs/git-generator-files-discovery/git-generator-files.yaml
-                  branch: main
+                  branch: master
     type: Kubernetes
   gitOpsEnabled: true
diff --git a/podinfo/harness-gitops/trigger.yml b/podinfo/harness-gitops/trigger.yml
index 694a0ac..8673d15 100644
--- a/podinfo/harness-gitops/trigger.yml
+++ b/podinfo/harness-gitops/trigger.yml
@@ -24,7 +24,7 @@ trigger:
               value: podinfo/configs/git-generator-files-discovery/
             - key: targetBranch
               operator: Equals
-              value: main
+              value: master
           headerConditions: []
           actions: []
   inputYaml: |