Bump API version to v1alpha2
To accomodate the CR syntax changes. Change-Id: Ie646a9c58655b0987a8fb0d4c914cd8b93190b1b
This commit is contained in:
parent
eff9f360f7
commit
e5879666bd
4
Makefile
4
Makefile
@ -2,7 +2,7 @@ image:
|
||||
podman build -f build/Dockerfile -t docker.io/zuul/zuul-operator .
|
||||
|
||||
install:
|
||||
kubectl apply -f deploy/crds/zuul-ci_v1alpha1_zuul_crd.yaml -f deploy/rbac.yaml -f deploy/operator.yaml
|
||||
kubectl apply -f deploy/crds/zuul-ci_v1alpha2_zuul_crd.yaml -f deploy/rbac.yaml -f deploy/operator.yaml
|
||||
|
||||
deploy-cr:
|
||||
kubectl apply -f deploy/crds/zuul-ci_v1alpha1_zuul_cr.yaml
|
||||
kubectl apply -f deploy/crds/zuul-ci_v1alpha2_zuul_cr.yaml
|
||||
|
@ -11,7 +11,7 @@ $ make image
|
||||
|
||||
```shell
|
||||
$ make install
|
||||
kubectl apply -f deploy/crds/zuul-ci_v1alpha1_zuul_crd.yaml -f deploy/rbac.yaml -f deploy/operator.yaml
|
||||
kubectl apply -f deploy/crds/zuul-ci_v1alpha2_zuul_crd.yaml -f deploy/rbac.yaml -f deploy/operator.yaml
|
||||
```
|
||||
|
||||
Look for operator pod and check it's output
|
||||
@ -33,7 +33,7 @@ $ kubectl logs zuul-operator-c64756f66-rbdmg
|
||||
|
||||
```
|
||||
$ kubectl apply -f - <<EOF
|
||||
apiVersion: operator.zuul-ci.org/v1alpha1
|
||||
apiVersion: operator.zuul-ci.org/v1alpha2
|
||||
kind: Zuul
|
||||
metadata:
|
||||
name: example-zuul
|
||||
|
@ -1,4 +1,4 @@
|
||||
apiVersion: operator.zuul-ci.org/v1alpha1
|
||||
apiVersion: operator.zuul-ci.org/v1alpha2
|
||||
kind: Zuul
|
||||
metadata:
|
||||
name: zuul
|
@ -16,5 +16,8 @@ spec:
|
||||
status: {}
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
served: false
|
||||
storage: false
|
||||
- name: v1alpha2
|
||||
served: true
|
||||
storage: true
|
@ -3,7 +3,7 @@
|
||||
k8s:
|
||||
namespace: "{{ namespace }}"
|
||||
definition:
|
||||
apiVersion: operator.zuul-ci.org/v1alpha1
|
||||
apiVersion: operator.zuul-ci.org/v1alpha2
|
||||
kind: Zuul
|
||||
metadata:
|
||||
name: zuul
|
||||
|
@ -66,7 +66,7 @@ class PerconaXtraDBCluster(NamespacedAPIObject):
|
||||
|
||||
|
||||
class ZuulObject(NamespacedAPIObject):
|
||||
version = "operator.zuul-ci.org/v1alpha1"
|
||||
version = "operator.zuul-ci.org/v1alpha2"
|
||||
endpoint = "zuuls"
|
||||
kind = "Zuul"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user