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
4 changes: 4 additions & 0 deletions apps/go-microservice/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/polinchw/go-microservice-cd/overlays/dev
11 changes: 11 additions & 0 deletions apps/go-microservice/overlays/go-microservice/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"appName": "go-microservice",
"userGivenName": "go-microservice",
"destNamespace": "default",
"destServer": "https://kubernetes.default.svc",
"srcPath": "apps/go-microservice/overlays/go-microservice",
"srcRepoURL": "https://github.com/polinchw/auto-pilot.git",
"srcTargetRevision": "add-go-microservice",
"labels": null,
"annotations": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
95 changes: 95 additions & 0 deletions projects/go-microservice.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
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
name: go-microservice
namespace: argocd
spec:
clusterResourceWhitelist:
- group: '*'
kind: '*'
description: go-microservice 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: go-microservice
namespace: argocd
spec:
generators:
- git:
files:
- path: apps/**/go-microservice/config.json
repoURL: https://github.com/polinchw/auto-pilot.git
requeueAfterSeconds: 20
revision: add-go-microservice
template:
metadata: {}
spec:
destination: {}
project: ""
source:
repoURL: ""
- git:
files:
- path: apps/**/go-microservice/config_dir.json
repoURL: https://github.com/polinchw/auto-pilot.git
requeueAfterSeconds: 20
revision: add-go-microservice
template:
metadata: {}
spec:
destination: {}
project: ""
source:
directory:
exclude: '{{ exclude }}'
include: '{{ include }}'
jsonnet: {}
recurse: true
repoURL: ""
syncPolicy: {}
template:
metadata:
labels:
app.kubernetes.io/managed-by: argocd-autopilot
app.kubernetes.io/name: '{{ appName }}'
name: go-microservice-{{ userGivenName }}
namespace: argocd
spec:
destination:
namespace: '{{ destNamespace }}'
server: '{{ destServer }}'
ignoreDifferences:
- group: argoproj.io
jsonPointers:
- /status
kind: Application
project: go-microservice
source:
path: '{{ srcPath }}'
repoURL: '{{ srcRepoURL }}'
targetRevision: '{{ srcTargetRevision }}'
syncPolicy:
automated:
allowEmpty: true
prune: true
selfHeal: true
status: {}