Migrate APIRule from Version v1beta1 to Version v2 ​
APIRule custom resource (CR) v1beta1 is deleted. You must migrate all your APIRule CRs to version v2. Learn how to perform the migration.
WARNING
APIRule CRD v2 is the latest stable version. Version v1beta1 is removed in release 3.4 of the API Gateway module.
- You can no longer create, edit, or delete APIRules
v1beta1. All existingv1beta1APIRule configurations continue to function as expected. To make any changes, migrate to versionv2. - Reconciliation and migration of APIRules
v1beta1will be disabled with release 3.9. Once reconciliation is disabled, APIRulesv1beta1will continue to function as currently configured, but the API Gateway module will no longer own or manage them. - APIRules
v1beta1are no longer visible in the Kyma dashboard. You can still display them using kubectl, but the resources are displayed in the convertedv2format.
Required action: Migrate all your APIRule CRs to version
v2. For the complete timeline for SAP BTP, Kyma runtime, follow API Gateway What's New notes.
To migrate to version v2, follow the steps:
To identify which APIRules must be migrated, run the following command:
bashkubectl get apirules.gateway.kyma-project.io -A -o json | jq '.items[] | select(.metadata.annotations["gateway.kyma-project.io/original-version"] == "v1beta1") | {namespace: .metadata.namespace, name: .metadata.name}'If two or more of your APIRules target the same workload, apply an additional AuthorizationPolicy to avoid traffic disruption during migration. See Migrate Multiple APIRules Targeting the Same Workload from
v1beta1tov2.To retrieve the complete spec with the rules field of an APIRule in version
v1beta1, see Retrieving the Complete spec of an APIRule in Versionv1beta1.To migrate an APIRule from version
v1beta1to versionv2, follow the relevant guide:
For more information about APIRule v2, see also APIRule v2 Custom Resource and Changes Introduced in APIRule v2.