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

Get rid of argocd/config-management-plugin, add a test applicationset, switch argocd image to latest (2.8.0-rc7) #83

Merged
merged 33 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c5734a8
Create Dockerfile
cloudymax Aug 4, 2023
f2b87d5
Create jqenv.sh
cloudymax Aug 4, 2023
6d51b0b
Create README.md
cloudymax Aug 4, 2023
c69d916
Create vouch.yaml
cloudymax Aug 4, 2023
c88447c
Create README.md
cloudymax Aug 4, 2023
f1f53a9
add jesse's approach to the plugin generator
jessebot Aug 4, 2023
d42b3cd
add explanation of how to use the docker image
jessebot Aug 4, 2023
6debc36
remove cluster decision configmap and add a new one for the generator…
jessebot Aug 4, 2023
d972c2e
add an example secret to create for the plugin
jessebot Aug 4, 2023
11a9939
finish the setup of a simply generator plugin config, service, and de…
jessebot Aug 4, 2023
887b479
update test applicationset for vouch to be the new plugin generator
jessebot Aug 4, 2023
702ba16
update plugin to not use all caps and bump deployment version
jessebot Aug 4, 2023
6dbc8c0
add volume mount for token and envFrom a secret
jessebot Aug 4, 2023
d5be9d2
add example hostname env vars secret and update plugin deployment exa…
jessebot Aug 4, 2023
0cabc5d
add volume for plugin deployment
jessebot Aug 4, 2023
c087571
add secretName for plugin deployment
jessebot Aug 4, 2023
8f38a32
fix deployment namespace
jessebot Aug 4, 2023
ff9711e
fix secret plugin typo
jessebot Aug 4, 2023
182309b
update docker image to pull token from an env var instead of a volume
jessebot Aug 4, 2023
65ea084
fix secretRef to be secretKeyRef
jessebot Aug 4, 2023
404225f
update secret ref for token
jessebot Aug 4, 2023
87bbff1
update docker file and remove unused cmp
jessebot Aug 4, 2023
263eed1
set image pullpolicy to always for deployment
jessebot Aug 4, 2023
e8017df
fix spec.generators[0] error
jessebot Aug 4, 2023
a3f9786
remove comments from vouch test
jessebot Aug 4, 2023
aff4e31
fix yaml block for vouch
jessebot Aug 4, 2023
b72cd73
changes to quotes, maybe it helps?
jessebot Aug 4, 2023
727df2b
add go templating to vouch example
jessebot Aug 4, 2023
d3d7783
add go templating to vouch example : but less this time
jessebot Aug 4, 2023
217539b
set global.image.tag to v2.8.0-rc7 to gain plugin generator feature; …
jessebot Aug 4, 2023
c9dca49
remove jesse-approach to docker becuase it moved to another repo
jessebot Aug 4, 2023
7f81c28
remove generator plugin since its in a new repo now
jessebot Aug 4, 2023
47ba189
we don't need no stinkin' docker
jessebot Aug 4, 2023
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
16 changes: 0 additions & 16 deletions argocd/manifests/cluster-decision-confimap/configmap.yaml

This file was deleted.

This file was deleted.

84 changes: 0 additions & 84 deletions argocd/manifests/config-management-plugin/cmp-plugin.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions argocd/manifests/test-applicationset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# So I have an idea

![](https://media.giphy.com/media/ojpU1QtYzaVDa/giphy.gif)


```bash
export HOSTNAME="www.hats4dogs.biz"
export NAMESPACE="vouch"
export ENVIRONMENT="prod"

yq -i '.spec.generators[].list.elements[0].hostname = env(HOSTNAME)' vouch.yaml
yq -i '.spec.generators[].list.elements[0].namespace = env(NAMESPACE)' vouch.yaml
yq -i '.spec.generators[].list.elements[0].environment = env(ENVIRONMENT)' vouch.yaml

kubectl apply -f vouch.yaml -n argocd
```
43 changes: 43 additions & 0 deletions argocd/manifests/test-applicationset/vouch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: vouch
spec:
goTemplate: true
generators:
- plugin:
configMapRef:
name: argocd-generator-plugin-cm
input:
parameters:
key1: value1
template:
metadata:
name: vouch
spec:
project: default
source:
repoURL: 'https://vouch.github.io/helm-charts/'
targetRevision: 3.1.0
chart: vouch
helm:
values: |
image:
tag: 0.39.0
existingSecretName: vouch-existing-secret
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-staging
paths:
- /
hosts:
- {{.vouch_hostname}}
tls:
- secretName: vouch-tls
hosts:
- {{.vouch_hostname}}
destination:
server: "https://kubernetes.default.svc"
namespace: vouch
Loading
Loading