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 . podman build -f build/Dockerfile -t docker.io/zuul/zuul-operator .
install: 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: 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 ```shell
$ make install $ 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 Look for operator pod and check it's output
@ -33,7 +33,7 @@ $ kubectl logs zuul-operator-c64756f66-rbdmg
``` ```
$ kubectl apply -f - <<EOF $ kubectl apply -f - <<EOF
apiVersion: operator.zuul-ci.org/v1alpha1 apiVersion: operator.zuul-ci.org/v1alpha2
kind: Zuul kind: Zuul
metadata: metadata:
name: example-zuul name: example-zuul

View File

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

View File

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

View File

@ -3,7 +3,7 @@
k8s: k8s:
namespace: "{{ namespace }}" namespace: "{{ namespace }}"
definition: definition:
apiVersion: operator.zuul-ci.org/v1alpha1 apiVersion: operator.zuul-ci.org/v1alpha2
kind: Zuul kind: Zuul
metadata: metadata:
name: zuul name: zuul

View File

@ -66,7 +66,7 @@ class PerconaXtraDBCluster(NamespacedAPIObject):
class ZuulObject(NamespacedAPIObject): class ZuulObject(NamespacedAPIObject):
version = "operator.zuul-ci.org/v1alpha1" version = "operator.zuul-ci.org/v1alpha2"
endpoint = "zuuls" endpoint = "zuuls"
kind = "Zuul" kind = "Zuul"