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

Use application sets for ref implementation #19

Closed
wants to merge 3 commits into from
Closed
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
45 changes: 45 additions & 0 deletions ref/appset-local-charts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: local-charts
namespace: argocd
spec:
goTemplate: true
goTemplateOptions:
- missingkey=error
generators:
- matrix:
generators:
- git:
repoURL: "cnoe://configs"
revision: HEAD
files:
- path: "**/config.yaml"
- list:
elementsYaml: "{{ .packages | toJson }}"
selector:
matchExpressions:
- key: install
operator: In
values:
- "true"
template:
metadata:
name: "{{ .name }}"
labels:
environment: "{{ .environment }}"
cnoe.io/package-name: ref-impl
spec:
project: default
sources:
- repoURL: "cnoe://packages"
targetRevision: HEAD
path: "{{ .manifestPath }}"
destination:
server: https://kubernetes.default.svc
namespace: "{{ .namespace }}"
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
44 changes: 44 additions & 0 deletions ref/appset-local-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: local-charts
namespace: argocd
spec:
goTemplate: true
goTemplateOptions:
- missingkey=error
generators:
- matrix:
generators:
- git:
repoURL: "cnoe://configs"
revision: HEAD
files:
- path: "**/config.yaml"
- list:
elementsYaml: "{{ .packages | toJson }}"
selector:
matchExpressions:
- key: install
operator: In
values:
- "true"
template:
metadata:
name: "{{ .name }}"
labels:
environment: "{{ .environment }}"
spec:
project: default
sources:
- repoURL: "cnoe://packages"
targetRevision: HEAD
path: "{{ .manifestPath }}"
destination:
server: https://kubernetes.default.svc
namespace: "{{ .namespace }}"
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
18 changes: 18 additions & 0 deletions ref/configs/local/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
environment: local
packages:
- name: external-secrets
namespace: external-secrets
install: "true"
manifestPath: "external-secrets/manifests"
# - name: keycloak
# namespace: keycloak
# install: "true"
# manifestPath: "keycloak/manifests"
# - name: argo-workflows
# namespace: argo
# install: "true"
# manifestPath: "argo-workflows/manifests/dev"
# - name: backstage
# namespace: backstage
# install: "true"
# manifestPath: "backstage/manifests"
23 changes: 23 additions & 0 deletions ref/packages/argo-workflows/.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/
24 changes: 24 additions & 0 deletions ref/packages/argo-workflows/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: argo-workflows
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
Loading
Loading