modify and update crd
make uninstall (optional)
vim api/v1alpha1/xxx_types.go, define our own confiuration
make install
or make manifests, make generate (update deepcopy)
temporarily update operator without crd changed (use images "operator:test1" as example)
kubectl get deploy -A | grep smf | grep controller # find smf-operator deployment
kubectl edit deploy axyom-smf-controller-manager -n axyom-smf-system #then will go into vim , modify operator images (to "operator:test1")
deploy operator
make install (install crd) make deploy IMG=xxx (deploy operator)
check crd or operator installed successfully?
kubectl get crd kubectl explain .spec [--recursive=true] kubectl get po -A |grep kubectl get all -A
use operator
vim xx.yaml (based on config/crd yaml or explain crd get description for configuration) kubectl apply -f xx.yaml -n ns kubectl get all -n ns