Why can’t I override certain entities?
Immutable entities only support adoption in match mode and can’t be modified after adoption. This is the case for:
- Cloud Gateway resources: Networks, data plane group configurations, and transit gateways.
- Data plane client certificates.
You must adopt these entities in match mode and configure the resource to match the existing entity in Konnect.
Here’s an example of network adoption:
echo '
kind: KonnectCloudGatewayNetwork
apiVersion: konnect.konghq.com/v1alpha1
metadata:
name: adopt-konnect-network
namespace: default
spec:
adopt:
from: konnect
mode: match
konnect:
id: "'$NETWORK_ID'"
name: network1
cloud_gateway_provider_account_id: "'$CLOUD_GATEWAY_PROVIDER_ID'"
availability_zones:
- use1-az1
- use1-az2
- use1-az4
- use1-az5
- use1-az6
cidr_block: 10.0.0.1/24
region: us-east-1
konnect:
authRef:
name: konnect-api-auth
' | kubectl apply -f -