Go client: NetworkIpRef requires Kind property which doesn't exist in v1alpha.ResourceRef type #675
Closed
3 tasks done
Labels
bug
Something isn't working
Checklist
Bug Description
NetworkIpRef is v1alpha.ResourceRef type but the CRD for ComputeInstance requires also the Kind property, which is not part of v1alpha1.ResourceRef, this makes impossible to create ComputeInstance resource when it needs a ComputeAddress reference.
Validation fails with:
Invalid value: "":"spec.networkInterface.networkIpRef" must validate one and only one schema (oneOf). Found none valid, spec.networkInterface.networkIpRef.kind: Required value
Tested on v1.89.0 of the go client release
Additional Diagnostic Information
Kubernetes Cluster Version
Client Version: v1.20.1 Server Version: v1.23.5-gke.2400
Config Connector Version
v1.89.0
Config Connector Mode
namespaced mode (default)
Log Output
Invalid value: "":"spec.networkInterface.networkIpRef" must validate one and only one schema (oneOf). Found none valid, spec.networkInterface.networkIpRef.kind: Required value
Steps to reproduce the issue
create a ComputeInstance object which refers a ComputeAddress in the networkInterface with go-client release v1.89.0 (latest available)
YAML snippets
No response
The text was updated successfully, but these errors were encountered: