@@ -25,11 +25,11 @@ kubectl apply -f https://raw.githubusercontent.com/gianlucam76/jsonnet-controlle
2525## Using Flux GitRepository
2626
2727For instance, this Github repository https://github.com/gianlucam76/jsonnet-examples contains jsonnet files.
28- You can use Flux to sync from it and then simply post this [ JsonnetSource] ( https://github.com/gianlucam76/jsonnet-controller/blob/main/api/v1alpha1 /jsonnetsource_types.go ) CRD instance.
28+ You can use Flux to sync from it and then simply post this [ JsonnetSource] ( https://github.com/gianlucam76/jsonnet-controller/blob/main/api/v1beta1 /jsonnetsource_types.go ) CRD instance.
2929The jsonnet-controller will detect when Flux has synced the repo (and anytime there is a change), will programatically invoke jsonnet go module and store the outcome in its Status.Resources field.
3030
3131``` yaml
32- apiVersion : extension.projectsveltos.io/v1alpha1
32+ apiVersion : extension.projectsveltos.io/v1beta1
3333kind : JsonnetSource
3434metadata :
3535 name : jsonnetsource-flux
@@ -45,12 +45,12 @@ spec:
4545` ` `
4646
4747` ` ` yaml
48- apiVersion : extension.projectsveltos.io/v1alpha1
48+ apiVersion : extension.projectsveltos.io/v1beta1
4949kind : JsonnetSource
5050metadata :
5151 annotations :
5252 kubectl.kubernetes.io/last-applied-configuration : |
53- {"apiVersion":"extension.projectsveltos.io/v1alpha1 ","kind":"JsonnetSource","metadata":{"annotations":{},"name":"jsonnetsource-flux","namespace":"default"},"spec":{"kind":"GitRepository","name":"flux-system","namespace":"flux-system","path":"./variables/deployment.jsonnet","variables":{"deploymentName":"eng","namespace":"staging","replicas":"3"}}}
53+ {"apiVersion":"extension.projectsveltos.io/v1beta1 ","kind":"JsonnetSource","metadata":{"annotations":{},"name":"jsonnetsource-flux","namespace":"default"},"spec":{"kind":"GitRepository","name":"flux-system","namespace":"flux-system","path":"./variables/deployment.jsonnet","variables":{"deploymentName":"eng","namespace":"staging","replicas":"3"}}}
5454 creationTimestamp : " 2023-05-26T06:55:13Z"
5555 generation : 3
5656 name : jsonnetsource-flux
@@ -74,15 +74,15 @@ status:
7474Sveltos can used at this point to deploy resources in managed clusters:
7575
7676` ` ` yaml
77- apiVersion : config.projectsveltos.io/v1alpha1
77+ apiVersion : config.projectsveltos.io/v1beta1
7878kind : ClusterProfile
7979metadata :
8080 name : deploy-resources
8181spec :
8282 clusterSelector : env=fv
8383 templateResourceRefs :
8484 - resource :
85- apiVersion : extension.projectsveltos.io/v1alpha1
85+ apiVersion : extension.projectsveltos.io/v1beta1
8686 kind : JsonnetSource
8787 name : jsonnetsource-flux
8888 namespace : default
@@ -125,7 +125,7 @@ kubectl create configmap jsonnet --from-file=jsonnet.tar.gz=jsonnet.tar.gz
125125Then we can have JsonnetSource reference this ConfigMap instance
126126
127127``` yaml
128- apiVersion : extension.projectsveltos.io/v1alpha1
128+ apiVersion : extension.projectsveltos.io/v1beta1
129129kind : JsonnetSource
130130metadata :
131131 name : jsonnetsource-configmap
@@ -141,12 +141,12 @@ spec:
141141and the controller will programmatically execute jsonnet go module and store the outcome in Status.Results.
142142
143143` ` ` yaml
144- apiVersion : extension.projectsveltos.io/v1alpha1
144+ apiVersion : extension.projectsveltos.io/v1beta1
145145kind : JsonnetSource
146146metadata :
147147 annotations :
148148 kubectl.kubernetes.io/last-applied-configuration : |
149- {"apiVersion":"extension.projectsveltos.io/v1alpha1 ","kind":"JsonnetSource","metadata":{"annotations":{},"name":"jsonnetsource-configmap","namespace":"default"},"spec":{"kind":"ConfigMap","name":"jsonnet","namespace":"default","path":"./main.jsonnet","variables":{"namespace":"production"}}}
149+ {"apiVersion":"extension.projectsveltos.io/v1beta1 ","kind":"JsonnetSource","metadata":{"annotations":{},"name":"jsonnetsource-configmap","namespace":"default"},"spec":{"kind":"ConfigMap","name":"jsonnet","namespace":"default","path":"./main.jsonnet","variables":{"namespace":"production"}}}
150150 creationTimestamp : " 2023-05-26T08:28:48Z"
151151 generation : 1
152152 name : jsonnetsource-configmap
0 commit comments