zuul-operator/zuul_operator
Michael Kelly 193ee88ac0
bug: Select scheduler pod based on instance name on update
smart_update() currently uses the label 'app.kubernetes.io/instance:
zuul' to select the scheduler pod(s) when attempting to kick a smart
update in the pod, however, the pods are created with
'app.kubernetes.io/instance: my-instance-name', which will cause us to
not find any scheduler pods to update.  Instead, we should use the
correct label expression for the query.

Once smart_update() was finding the scheduler pod correctly,
pod_exec() fails on an unnecessary call to load_kube_config().
Removing this enables the pod_exec() - which is only ever used by
smart_update() - to succeed.

Change-Id: I57e4e3dacac1df24a941dd23da6344b4243a0bed
2023-02-24 21:06:55 -08:00
..
templates web: Enable custom metadata for Service resources 2023-02-24 21:06:54 -08:00
__init__.py Flake8 cleanups 2021-07-23 10:27:10 -07:00
certmanager.py k8s: Clean up cert-manager installer 2023-02-24 21:06:54 -08:00
cmd.py kopf: Upgrade kopf to at least 1.35.0 2022-10-14 08:38:56 -07:00
objects.py Update CRD apiVersion to v1 (from v1beta) 2022-06-30 18:45:23 +00:00
operator.py k8s: Allow use of a default image version besides latest 2023-02-24 21:06:54 -08:00
pxc.py k8s: Provide an option to disable PXC operator installer 2023-02-24 21:06:54 -08:00
utils.py bug: Select scheduler pod based on instance name on update 2023-02-24 21:06:55 -08:00
version.py Use kopf operator framework 2021-07-20 13:16:07 -07:00
zookeeper.py Prefix managed resources with instance name 2023-02-24 21:06:09 -08:00
zuul.py bug: Select scheduler pod based on instance name on update 2023-02-24 21:06:55 -08:00