Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ This repository contains example applications for demoing ArgoCD functionality.
to register this repository to your ArgoCD instance, or fork this repo and push your own commits
to explore ArgoCD and GitOps!




| Application | Description |
|-------------|-------------|
| [guestbook](guestbook/) | A hello word guestbook app as plain YAML |
Expand Down
26 changes: 0 additions & 26 deletions helm-guestbook/confi/values-mt.yaml

This file was deleted.

18 changes: 9 additions & 9 deletions helm-guestbook/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 3
replicaCount: 1

image:
repository: gcr.io/heptio-images/ks-guestbook-demo
Expand All @@ -13,7 +13,7 @@ containerPort: 80

service:
type: ClusterIP
port: 88
port: 80

ingress:
enabled: false
Expand All @@ -28,17 +28,17 @@ ingress:
# hosts:
# - chart-example.local

resources: {}
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi

nodeSelector: {}

Expand Down
Binary file added helm2/.DS_Store
Binary file not shown.
Binary file added helm2/app1/.DS_Store
Binary file not shown.
40 changes: 40 additions & 0 deletions helm2/app1/appset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: helm-k8s-app
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- git:
repoURL: https://github.com/wings-software/gitops-automation.git
revision: syncstepautomation-mirko
files:
- path: "helm2/app1/*/*/config.json"
template:
metadata:
name: syncstep-automation-app-{{.cluster.name}}
labels:
harness.io/envRef: '{{.envTag}}'
harness.io/serviceRef: '{{.serviceTag}}'
harness.io/buildRef: '{{.releaseTag}}'
spec:
project: 5b02f9dc
source:
chart: fluent-bit
repoURL: https://grafana.github.io/helm-charts
targetRevision: 2.6.0
helm:
values: |-
config:
port: '{{.cluster.port}}'
path: '{{.path.path}}'
basename: '{{.path.basename}}'
destination:
server: '{{.cluster.address}}'
namespace: '{{.envTag}}'
syncPolicy:
syncOptions:
- Validate=true
- CreateNamespace=true

11 changes: 11 additions & 0 deletions helm2/app1/prod/cluster11/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cluster" : {
"name" : "cluster11",
"address" : "https://35.233.139.33",
"port" : "5450"
},
"releaseTag" : "1.15",
"envTag" : "prod",
"replicas" : "1",
"serviceTag" : "helm"
}
11 changes: 11 additions & 0 deletions helm2/app1/prod/in-cluster/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cluster" : {
"name" : "incluster",
"address" : "https://35.233.139.33",
"port" : "5450"
},
"releaseTag" : "1.15",
"envTag" : "Prod",
"replicas" : "1",
"serviceTag" : "helm"
}
11 changes: 11 additions & 0 deletions helm2/app1/qa/cluster22/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cluster" : {
"name" : "cluster22",
"address" : "https://35.233.139.33",
"port" : "5450"
},
"releaseTag" : "1.15",
"envTag" : "qa",
"replicas" : "1",
"serviceTag" : "helm"
}
1 change: 1 addition & 0 deletions helm2/app1/qa/cluster22/test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

30 changes: 30 additions & 0 deletions helm2/cluster/appset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cluster-appset-all
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- clusters: {}
template:
metadata:
name: cluster-appset-all-{{.name}}
labels:
# harness.io/envRef: {{.values.env}}
harness.io/envRef: prod
harness.io/serviceRef: helm
spec:
project: f5384cd4
source:
path: helm-nginx
repoURL: https://github.com/wings-software/gitops-automation
targetRevision: appset-demo

destination:
server: '{{.server}}' # 'server' field of the secret
namespace: cluster-appset-all-{{.nameNormalized}}
syncPolicy:
syncOptions:
- Validate=true
- CreateNamespace=true