Migrate APIRule from Version v1beta1 to Version v2 ​
APIRule custom resource (CR) v1beta1 has been deprecated and scheduled for deletion. You must migrate all your APIRule CRs to version v2. Learn more about the timeline and see 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.
- All existing
v1beta1APIRule configurations continue to function as expected. - APIRules
v1beta1are no longer visible in the Kyma dashboard. You can still display them using kubectl, but the resources are displayed in the convertedv2format. - You can no longer create new
v1beta1APIRules. You also can't delete or edit the existing APIRulesv1beta1. To make any changes, you must migrate to versionv2.
Required action: Migrate all your APIRule custom resources (CRs) to version v2. For the complete deletion timeline for SAP BTP, Kyma runtime, see APIRule Migration Timeline.
How to Migrate APIRules to Version v2 ​
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.
APIRule v1beta1 Migration Timeline ​
APIRule CRDs in versions v1beta1 and v2alpha1 have been deprecated and will be removed in upcoming releases. Due to the upcoming deletion, managing APIRules v1beta1 using Kyma dashboard is no longer possible. Additionally, you can't create APIRules v1beta1 in new clusters.
For the complete deletion timeline for SAP BTP, Kyma runtime, see APIRule Migration Timeline.