Bump API version to v1alpha2

To accomodate the CR syntax changes.

Change-Id: Ie646a9c58655b0987a8fb0d4c914cd8b93190b1b
changes/47/785047/14
James E. Blair 1 year ago
parent eff9f360f7
commit e5879666bd
  1. 4
      Makefile
  2. 4
      README.md
  3. 2
      deploy/crds/zuul-ci_v1alpha2_zuul_cr.yaml
  4. 3
      deploy/crds/zuul-ci_v1alpha2_zuul_crd.yaml
  5. 2
      playbooks/zuul-operator-functional/tasks/apply_cr.yaml
  6. 2
      zuul_operator/objects.py

@ -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…
Cancel
Save