mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 09:59:43 +00:00
argocd: add cue plugin
This commit is contained in:
parent
afb9d9370e
commit
3c33347a6f
1 changed files with 22 additions and 0 deletions
|
|
@ -13,6 +13,28 @@ data:
|
||||||
config:
|
config:
|
||||||
clientID: $dex.github.clientId
|
clientID: $dex.github.clientId
|
||||||
clientSecret: $dex.github.clientSecret
|
clientSecret: $dex.github.clientSecret
|
||||||
|
configManagementPlugins: |
|
||||||
|
- name: cue
|
||||||
|
init:
|
||||||
|
command: ["python3"]
|
||||||
|
args:
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
try:
|
||||||
|
f = open('/tmp/cue')
|
||||||
|
print('cue is installed already')
|
||||||
|
except IOError:
|
||||||
|
print('installing cue ...')
|
||||||
|
import urllib.request
|
||||||
|
url = 'https://github.com/cuelang/cue/releases/download/v0.3.0-beta.5/cue_0.3.0-beta.5_Linux_x86_64.tar.gz'
|
||||||
|
urllib.request.urlretrieve(url, '/tmp/cue.tar.gz')
|
||||||
|
import tarfile
|
||||||
|
a = tarfile.open('/tmp/cue.tar.gz')
|
||||||
|
a.extract('cue', '/tmp/')
|
||||||
|
print(' ... done')
|
||||||
|
generate:
|
||||||
|
command: ["/tmp/cue"]
|
||||||
|
args: ["cmd", "dump", "./..."]
|
||||||
repositories: |
|
repositories: |
|
||||||
- name: grafana
|
- name: grafana
|
||||||
type: helm
|
type: helm
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue