openstack-resource-controller
openstack-resource-controller copied to clipboard
RouterInterface objects do not get a status unless routerRef dependency is resolved
While writing dependencies tests for the routerinterface, I noticed that a routerinterface for which the subnetRef is yet to be created gets a status:
apiVersion: openstack.k-orc.cloud/v1alpha1
kind: RouterInterface
metadata:
creationTimestamp: "2025-03-19T12:55:36Z"
generation: 1
name: routerinterface-dependency
namespace: kuttl-test-cuddly-doberman
resourceVersion: "128404"
uid: a58cfb78-6065-4dfd-8eee-72d4f30c9ab0
spec:
routerRef: existing
subnetRef: non-existing
type: Subnet
status:
conditions:
- lastTransitionTime: "2025-03-19T12:55:44Z"
message: Waiting for Subnet/non-existing to be created
observedGeneration: 1
reason: Progressing
status: "False"
type: Available
- lastTransitionTime: "2025-03-19T12:55:44Z"
message: Waiting for Subnet/non-existing to be created
observedGeneration: 1
reason: Progressing
status: "True"
type: Progressing
While a an unresolved dependency for the routerRef gets us a routerinterface object without status:
apiVersion: openstack.k-orc.cloud/v1alpha1
kind: RouterInterface
metadata:
creationTimestamp: "2025-03-19T13:03:55Z"
generation: 1
name: routerinterface-dependency
namespace: kuttl-test-glorious-hornet
resourceVersion: "129106"
uid: 775ec5ad-a4e6-40d6-b930-c86aa45fd226
spec:
routerRef: non-existing
subnetRef: existing
type: Subnet