File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v1
22kind : Secret
33metadata :
44 name : gh-deploy-key # set a secret name for the SSH key
5- namespace : qretadeploy # qretadeploy is the namespace for running QretaDeploy
5+ namespace : qretadeploy # namespace for running QretaDeploy
66type : Opaque
77stringData :
88 id_ed25519 : |
@@ -17,6 +17,7 @@ metadata:
1717 namespace : qretadeploy
1818spec :
1919 name : qreta-gitops-deploy
20+ targetNamespace : qretadeploy
2021 repoUrl :
[email protected] :qretaio/QretaDeploy.git 2122 branch : main
2223 interval : " 30"
Original file line number Diff line number Diff line change 1- apiVersion : v1
2- kind : Namespace
3- metadata :
4- name : qretadeploy
5- ---
61apiVersion : kro.run/v1alpha1
72kind : ResourceGraphDefinition
83metadata :
138 kind : QretaDeploy
149 spec :
1510 name : string
11+ targetNamespace : string
1612 repoUrl : string
1713 branch : string
1814 folder : string | default="."
1915 sshKeys : string | default=""
2016 interval : string
2117 resources :
18+ - id : namespace
19+ template :
20+ apiVersion : v1
21+ kind : Namespace
22+ metadata :
23+ name : ${ schema.spec.targetNamespace }
2224 - id : script
2325 template :
2426 apiVersion : v1
2527 kind : ConfigMap
2628 metadata :
2729 name : qretadeploy-sh
30+ namespace : ${ schema.spec.targetNamespace }
2831 data :
2932 deploy.sh : |
3033 #!/bin/sh
5558 kind : Deployment
5659 metadata :
5760 name : ${ schema.spec.name }
58- namespace : qretadeploy
61+ namespace : ${ schema.spec.targetNamespace }
5962 annotations :
6063 reloader.stakater.com/auto : " true"
6164 spec :
@@ -105,7 +108,7 @@ spec:
105108 kind : ServiceAccount
106109 metadata :
107110 name : ${ schema.spec.name }
108- namespace : qretadeploy
111+ namespace : ${ schema.spec.targetNamespace }
109112 - id : clusterRoleBinding
110113 template :
111114 apiVersion : rbac.authorization.k8s.io/v1
@@ -119,4 +122,4 @@ spec:
119122 subjects :
120123 - kind : ServiceAccount
121124 name : ${ schema.spec.name }
122- namespace : qretadeploy
125+ namespace : ${ schema.spec.targetNamespace }
You can’t perform that action at this time.
0 commit comments