-
Notifications
You must be signed in to change notification settings - Fork 21
Description
The networkEntityIdRef and networkEntityIdSelector don't work properly for InternetGateway and ServiceGateway - they only work reliably for NatGateway. It gets resolved if referenced by the OCID of service gateway/internet gateway . This defeats the purpose of declarative way.
YAML :
apiVersion: networking.oci.upbound.io/v1alpha1
kind: RouteTable
metadata:
name: public-snet-rt
spec:
forProvider:
compartmentId: ocid1.compartment.oc1..a...
vcnIdRef:
name: vcn-via-crossplane
displayName: public-snet-rt
routeRules:
- cidrBlock: 0.0.0.0/0
description: "Internet route via Internet Gateway"
networkEntityIdRef:
name: internetgway-cp
providerConfigRef:
name: default
kubectl describe routetable
Route Rules:
Cidr Block: 0.0.0.0/0
Description: Internet route via Internet Gateway
Network Entity Id Ref:
Name: internetgway-cp
Vcn Id Ref:
Name: vcn-via-crossplane
Management Policies:
*
Provider Config Ref:
Name: default
Status:
At Provider:
Conditions:
Last Transition Time: 2026-02-11T12:08:05Z
Message: cannot resolve references: mg.Spec.ForProvider.RouteRules[i3].NetworkEntityID: cannot get referenced resource: NatGateway.networking.oci.upbound.io "internetgway-cp" not found
Events:
Type Reason Age From Message
Warning CannotResolveResourceReferences 3s (x5 over 18s) managed/networking.oci.upbound.io/v1alpha1, kind=routetable cannot resolve references: mg.Spec.ForProvider.RouteRules[i3].NetworkEntityID: cannot get referenced resource: NatGateway.networking.oci.upbound.io "internetgway-cp" not found