Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Jul 30, 2024
1 parent 8f03353 commit 60e0f2b
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/argocd-apps/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: argocd-apps
description: Chart to deploy WBaaS apps in an "app-of-apps" pattern via ArgoCD
type: application
version: 0.1.0
appVersion: "1.0"
27 changes: 27 additions & 0 deletions charts/argocd-apps/templates/wbaas-ui.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ui
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: default
server: {{ .Values.clusterUrl }}
project: default
source:
path: charts/ui
repoURL: {{ .Values.repoUrls.charts }}
targetRevision: test/value-files
helm:
parameters:
- name: helm.debug
value: "true"
valueFiles:
- "values.local.yaml"

syncPolicy:
automated:
selfHeal: false
prune: true
3 changes: 3 additions & 0 deletions charts/argocd-apps/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
clusterUrl: https://kubernetes.default.svc

environment: production
23 changes: 23 additions & 0 deletions charts/argocd-config/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions charts/argocd-config/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: argocd-apps
description: The argo-cd apps configuration for wikibase.cloud
type: application
version: 0.1.0
appVersion: "0.0.1"
22 changes: 22 additions & 0 deletions charts/argocd-config/templates/applications.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: app-of-apps
spec:
destination:
server: https://kubernetes.default.svc
project: default
source:
path: charts/argocd-apps
repoURL: {{ .Values.repoUrls.main }}
targetRevision: de/argo-ui-simple # debug! needs to be set to HEAD
helm:
parameters:
- name: helm.debug
value: "true"
values: |
{{ toYaml .Values | indent 8 }}
syncPolicy:
automated:
prune: true
selfHeal: false
12 changes: 12 additions & 0 deletions charts/argocd-config/templates/projects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: local
spec:
description: The local deployment of wikibase.cloud
destinations:
- name: in-cluster
server: https://kubernetes.default.svc
sourceRepos:
- {{ .Values.repoUrls.main }}
- {{ .Values.repoUrls.charts }}
12 changes: 12 additions & 0 deletions charts/argocd-config/templates/repositories.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Secret
metadata:
labels:
argocd.argoproj.io/secret-type: repository
name: repo-charts
namespace: argocd
type: Opaque
data:
project: {{ "local" | b64enc }}
type: {{ "git" | b64enc }}
url: {{ .Values.repoUrls.main | b64enc }}
3 changes: 3 additions & 0 deletions charts/argocd-config/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
repoUrls:
main: https://github.com/wmde/wbaas-deploy
charts: https://github.com/wbstack/charts.git
10 changes: 10 additions & 0 deletions k8s/helmfile/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ releases:
################################
# ALL ENVIRONMENTS
################################
- name: argocd-config
namespace: argocd
chart: ../../charts/argocd-config
values:
- env/{{`{{ .Environment.Name }}`}}/base.yaml
- env/{{`{{ .Environment.Name }}`}}/private.yaml
- env/production/{{`{{ .Release.Name }}`}}.values.yaml.gotmpl
- env/{{`{{ .Environment.Name }}`}}/{{`{{ .Release.Name }}`}}.values.yaml.gotmpl
installed: {{ eq .Environment.Name "local" | toYaml }}

- name: redirects
namespace: default
chart: ./../../charts/redirects
Expand Down

0 comments on commit 60e0f2b

Please sign in to comment.