Bump API version to v1alpha2

To accomodate the CR syntax changes.

Change-Id: Ie646a9c58655b0987a8fb0d4c914cd8b93190b1b
This commit is contained in:
James E. Blair 2021-04-06 13:58:31 -07:00
parent eff9f360f7
commit e5879666bd
6 changed files with 10 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
apiVersion: operator.zuul-ci.org/v1alpha1
apiVersion: operator.zuul-ci.org/v1alpha2
kind: Zuul
metadata:
name: zuul

View File

@ -16,5 +16,8 @@ spec:
status: {}
versions:
- name: v1alpha1
served: false
storage: false
- name: v1alpha2
served: true
storage: true

View File

@ -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

View File

@ -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"