Skip to content

Commit

Permalink
Merge pull request #22 from werniq/feature/argo-cd
Browse files Browse the repository at this point in the history
Feature: Introduce Argo CD
  • Loading branch information
werniq authored Oct 9, 2024
2 parents ed2c810 + 83fc4f7 commit bb7f9e6
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 17 deletions.
11 changes: 5 additions & 6 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,15 @@ tasks:
- helm repo add vertical-pod-autoscaler https://stevehipwell.github.io/helm-charts/

updateAndBuildChartDependencies:
desc: Update and build chart dependencies
desc: Update and build day-0 chart dependencies
cmds:
- helm dependency update ./go-gator
- helm dependency build ./go-gator
- helm dependency build ./day-0
- helm dependency update ./day-0

goGatorChartEcrBuild:
desc: Build Helm chart for ECR
deps:
- addChartDependencies
- updateAndBuildChartDependencies
cmds:
- helm package go-gator

Expand All @@ -152,6 +151,8 @@ tasks:

day0EcrBuild:
desc: Build Helm chart for ECR
deps:
- updateAndBuildChartDependencies
cmds:
- helm package day-0

Expand All @@ -167,5 +168,3 @@ tasks:
cmds:
- for: [ awsLogin, operator:docker-build, cronJob:publish, goGatorImageEcrPush, goGatorChartEcrPush, day0EcrPush ]
task: '{{.ITEM}}'
- helm uninstall go-gator -n go-gator
- kubectl delete namespace go-gator
19 changes: 19 additions & 0 deletions argo-cd/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: go-gator-apps
namespace: argocd
spec:
destination:
name: ''
namespace: news-aggregator
server: https://kubernetes.default.svc
source:
repoURL: https://github.com/werniq/go-gator
path: argo-cd/apps
targetRevision: feature/argo-cd
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
20 changes: 20 additions & 0 deletions argo-cd/apps/day-0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: go-gator-day-0-app
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/werniq/go-gator
path: day-0
targetRevision: feature/argo-cd
destination:
server: https://kubernetes.default.svc
namespace: go-gator
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
18 changes: 18 additions & 0 deletions argo-cd/apps/go-gator-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: go-gator-operator
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/werniq/go-gator
path: operator/config/default
targetRevision: feature/argo-cd
destination:
server: https://kubernetes.default.svc
namespace: go-gator
syncPolicy:
automated:
prune: false
selfHeal: true
18 changes: 18 additions & 0 deletions argo-cd/apps/go-gator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: go-gator-app
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/werniq/go-gator
path: go-gator
targetRevision: feature/argo-cd
destination:
server: https://kubernetes.default.svc
namespace: go-gator
syncPolicy:
automated:
prune: false
selfHeal: true
11 changes: 10 additions & 1 deletion day-0/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@ apiVersion: v2
name: day-0
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
version: 0.1.1
appVersion: "1.16.0"
dependencies:
- name: cert-manager
version: v1.15.3
repository: https://charts.jetstack.io
alias: cert-manager
condition: cert-manager.enabled
- name: vertical-pod-autoscaler
repository: https://stevehipwell.github.io/helm-charts/
version: 1.7.1
11 changes: 1 addition & 10 deletions go-gator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,5 @@ apiVersion: v2
name: go-gator
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
version: 0.1.1
appVersion: "1.16.0"
dependencies:
- name: cert-manager
version: v1.15.3
repository: https://charts.jetstack.io
alias: cert-manager
condition: cert-manager.enabled
- name: vertical-pod-autoscaler
repository: https://stevehipwell.github.io/helm-charts/
version: 1.7.1

0 comments on commit bb7f9e6

Please sign in to comment.