← harnesscd-example-apps

GitOps YAML's for Helm and Kustomize

3366b45e1449102011e69cf7aa45a8e2b904e875 · OP (oppenheimer) · Sep 14, 2023 22:25

+90 · 6 files changed

  • helm-guestbook/harness-gitops/application.yml +23 −0
  • helm-guestbook/harness-gitops/cluster.yml +11 −0
  • helm-guestbook/harness-gitops/repository.yml +11 −0
  • kustomize-guestbook/harness-gitops/application.yml +23 −0
  • kustomize-guestbook/harness-gitops/cluster.yml +11 −0
  • kustomize-guestbook/harness-gitops/repository.yml +11 −0
diff --git a/helm-guestbook/harness-gitops/application.yml b/helm-guestbook/harness-gitops/application.yml
new file mode 100644
index 0000000..ce899eb
--- /dev/null
+++ b/helm-guestbook/harness-gitops/application.yml
@@ -0,0 +1,23 @@
+gitops:
+  name: gitops-helm-application
+  projectIdentifier: default_project
+  orgIdentifier: default
+  type: application
+  application:
+    metadata:
+      namespace: default
+      clusterName: gitops_cluster
+      labels:
+        harness.io/serviceRef: harnessguestbook
+        harness.io/envRef: harnessdevenv
+    spec:
+      source:
+        repoURL: https://github.com/harness-community/harnesscd-example-apps
+        path: helm-guestbook
+        targetRevision: master
+      destination:
+        server: https://kubernetes.default.svc
+        namespace: default
+  agentIdentifier: AGENT_NAME
+  clusterIdentifier: gitopscluster
+  repoIdentifier: gitopsrepo
\ No newline at end of file
diff --git a/helm-guestbook/harness-gitops/cluster.yml b/helm-guestbook/harness-gitops/cluster.yml
new file mode 100644
index 0000000..8638b84
--- /dev/null
+++ b/helm-guestbook/harness-gitops/cluster.yml
@@ -0,0 +1,11 @@
+gitops:
+  name: gitops_cluster
+  identifier: gitopscluster
+  projectIdentifier: default_project
+  orgIdentifier: default
+  type: cluster
+  cluster:
+    server: https://kubernetes.default.svc
+    config:
+      clusterConnectionType: IN_CLUSTER
+  agentIdentifier: AGENT_NAME
\ No newline at end of file
diff --git a/helm-guestbook/harness-gitops/repository.yml b/helm-guestbook/harness-gitops/repository.yml
new file mode 100644
index 0000000..04ab77f
--- /dev/null
+++ b/helm-guestbook/harness-gitops/repository.yml
@@ -0,0 +1,11 @@
+gitops:
+    name: gitops_repo
+    identifier: gitopsrepo
+    projectIdentifier: default_project
+    orgIdentifier: default
+    type: repository
+    repo:
+        repo: https://github.com/harness-community/harnesscd-example-apps
+        type: git
+        connectionType: HTTPS_ANONYMOUS
+    agentIdentifier: AGENT_NAME
\ No newline at end of file
diff --git a/kustomize-guestbook/harness-gitops/application.yml b/kustomize-guestbook/harness-gitops/application.yml
new file mode 100644
index 0000000..a883ea7
--- /dev/null
+++ b/kustomize-guestbook/harness-gitops/application.yml
@@ -0,0 +1,23 @@
+gitops:
+  name: gitops-kustomize-application
+  projectIdentifier: default_project
+  orgIdentifier: default
+  type: application
+  application:
+    metadata:
+      namespace: default
+      clusterName: gitops_cluster
+      labels:
+        harness.io/serviceRef: harnessguestbook
+        harness.io/envRef: harnessdevenv
+    spec:
+      source:
+        repoURL: https://github.com/harness-community/harnesscd-example-apps
+        path: kustomize-guestbook
+        targetRevision: master
+      destination:
+        server: https://kubernetes.default.svc
+        namespace: default
+  agentIdentifier: AGENT_NAME
+  clusterIdentifier: gitopscluster
+  repoIdentifier: gitopsrepo
\ No newline at end of file
diff --git a/kustomize-guestbook/harness-gitops/cluster.yml b/kustomize-guestbook/harness-gitops/cluster.yml
new file mode 100644
index 0000000..8638b84
--- /dev/null
+++ b/kustomize-guestbook/harness-gitops/cluster.yml
@@ -0,0 +1,11 @@
+gitops:
+  name: gitops_cluster
+  identifier: gitopscluster
+  projectIdentifier: default_project
+  orgIdentifier: default
+  type: cluster
+  cluster:
+    server: https://kubernetes.default.svc
+    config:
+      clusterConnectionType: IN_CLUSTER
+  agentIdentifier: AGENT_NAME
\ No newline at end of file
diff --git a/kustomize-guestbook/harness-gitops/repository.yml b/kustomize-guestbook/harness-gitops/repository.yml
new file mode 100644
index 0000000..04ab77f
--- /dev/null
+++ b/kustomize-guestbook/harness-gitops/repository.yml
@@ -0,0 +1,11 @@
+gitops:
+    name: gitops_repo
+    identifier: gitopsrepo
+    projectIdentifier: default_project
+    orgIdentifier: default
+    type: repository
+    repo:
+        repo: https://github.com/harness-community/harnesscd-example-apps
+        type: git
+        connectionType: HTTPS_ANONYMOUS
+    agentIdentifier: AGENT_NAME
\ No newline at end of file