Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argocd: make chart versions configurable + cleanup #173

Merged
merged 10 commits into from
Dec 10, 2024
Merged
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
2 changes: 1 addition & 1 deletion charts/argocd-apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: argocd-apps
description: Chart to deploy WBaaS apps in an "app-of-apps" pattern via ArgoCD
type: application
version: 1.0.7
version: 1.1.0
appVersion: "1.0"
maintainers:
- name: WBstack
Expand Down
32 changes: 32 additions & 0 deletions charts/argocd-apps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# argocd-apps

Deploys actual `Application` manifests for Argo CD. This chart gets treated as it's own `Application`, the app-of-apps, by the chart [argocd-config](../argocd-config/README.md).

## Changelog
## 1.1.0
- move app chart versions to values file
- use helm chart notation instead for the ui
- remove git repo url for wbstack/charts

## 1.0.7
- add redis-2 manifest

## 1.0.6
- add redis manifest

## 1.0.5
- use wbaas-api chart v0.32.1

## 1.0.4
- use wbaas-api chart v0.32.0

## 1.0.3
- unspecified version bump

### 1.0.2
- add wbstack helm charts repo
- add wbaas-api manifest

### 1.0.1
- initial version in this repository
- includes wbaas-ui manifest
2 changes: 1 addition & 1 deletion charts/argocd-apps/templates/wbaas-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
project: {{ .Values.environment }}
sources:
- repoURL: {{ .Values.repoUrls.wbstack }}
targetRevision: 0.32.1
targetRevision: {{ .Values.chartVersions.wbaasApi }}
chart: api
helm:
valueFiles:
Expand Down
8 changes: 4 additions & 4 deletions charts/argocd-apps/templates/wbaas-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ spec:
project: {{ .Values.environment }}
sources:
- repoURL: {{ .Values.repoUrls.charts }}
path: charts/ui
targetRevision: HEAD
targetRevision: {{ .Values.chartVersions.wbaasUi }}
chart: ui
helm:
valueFiles:
- $values/k8s/argocd/{{ .Values.environment }}/ui.values.yaml
- $deployRepo/k8s/argocd/{{ .Values.environment }}/ui.values.yaml
- repoURL: {{ .Values.repoUrls.deploy }}
targetRevision: HEAD
ref: values
ref: deployRepo

syncPolicy:
automated:
Expand Down
5 changes: 3 additions & 2 deletions charts/argocd-apps/values.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
repoUrls:
deploy: https://github.com/wmde/wbaas-deploy
charts: https://github.com/wbstack/charts.git
wbstack: https://wbstack.github.io/charts
bitnami: https://charts.bitnami.com/bitnami
clusterUrl: https://kubernetes.default.svc
environment: production

chartVersions:
wbaasUi: 0.4.0
wbaasApi: 0.32.1
redis: 17.3.8
redis2: 20.3.0
redis2: 19.6.4
# "inherits" values from argocd-config chart
2 changes: 1 addition & 1 deletion charts/argocd-config/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: argocd-config
description: Chart to deploy ArgoCD configuration (including the argocd-apps chart)
type: application
version: 1.0.10
version: 1.1.0
appVersion: "1.0"
maintainers:
- name: WBstack
Expand Down
48 changes: 48 additions & 0 deletions charts/argocd-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# argocd-config

Configures permissions Argo CD and deploys the "app-of-apps" (see ../argocd-apps/README.md)

## Changelog
## 1.1.0
- read app-of-apps chart version from wbaas-deploy repo

## 1.0.11
- remove unused git repo URL to wbstack/charts

## 1.0.10
- use app-of-apps chart v1.0.7

## 1.0.9
- replace hardcoded app-of-apps repo URL with configurable value

## 1.0.8
- use app-of-apps chart v1.0.6
- remove wbstack charts git repo URL

## 1.0.7
- use app-of-apps chart v1.0.5
- add bitnami chart repo URL

## 1.0.6
- use app-of-apps chart v1.0.4
- add allowed destination `in-cluster-monitoring` (needed for wbaas-api deployment)
- add `clusterResourceWhitelist` with ClusterRole and ClusterRoleBinding (needed for wbaas-api deployment)

## 1.0.5
- just a version bump due to chart release concurrency bug https://phabricator.wikimedia.org/T307481

## 1.0.4
- use app-of-apps chart v1.0.3

## 1.0.3
- use configurable wbstack chart URL instead of hardcoded string

## 1.0.2
- specify app-of-apps chart name
- add wbstack chart url to values file

### 1.0.1
- use app-of-apps chart 1.0.1

### 1.0.0
- initial version in this repository
2 changes: 1 addition & 1 deletion charts/argocd-config/templates/app-of-apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
project: {{ .Values.environment }}
sources:
- repoURL: {{ .Values.repoUrls.wbstack }}
targetRevision: 1.0.7
targetRevision: {{ .Values.appOfAppsVersion }}
chart: argocd-apps
helm:
values: |
Expand Down
1 change: 0 additions & 1 deletion charts/argocd-config/templates/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ spec:
server: https://kubernetes.default.svc
sourceRepos:
- {{ .Values.repoUrls.deploy }}
- {{ .Values.repoUrls.charts }}
- {{ .Values.repoUrls.wbstack }}
- {{ .Values.repoUrls.bitnami }}
clusterResourceWhitelist:
Expand Down
3 changes: 2 additions & 1 deletion charts/argocd-config/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
environment: production

appOfAppsVersion: 1.1.0

repoUrls:
deploy: https://github.com/wmde/wbaas-deploy
charts: https://github.com/wbstack/charts.git
wbstack: https://wbstack.github.io/charts
bitnami: https://charts.bitnami.com/bitnami
Loading