v0.3.0
What's Changed
- feat: add workflow to publish tagged images of a branch and fix e2e route by @Lasserich in #4
- fix: rc workflow by @Lasserich in #6
- feat: change readme by @Lasserich in #7
Migration Notes
Note: changing any of these steps, especially the installation of the providers will severely mess up your setup. Be absolutely sure to check every time before doing any kubectl commands that these resources in fact have the apiGroup that you want to modify.
Full Changelog: https://github.com/SAP/crossplane-provider-cloudfoundry/commits/v0.3.0
Migration Steps:
These steps are applicable if you are using the SAP inner-source provider (version v2.2.5 or earlier) and you want to migrate the existing custom resources to use this provider:
- Copy manifests of the existing resources to your local machine
kubectl get Organization,Space,App,Orgmembers,Route,ServiceInstance,ServiceKey,Spacemembers,ProviderConfig,Domain -o yaml | yq 'del(.. | .status?)' > legacy-cf-resources.yaml
- Pause reconciliation of all resources via annotation (Synced = False)
kubectl annotate Organization,Space,App,Orgmembers,Route,ServiceInstance,ServiceKey,Spacemembers,ProviderConfig,Domain --all=true crossplane.io/paused="true"
- (manually) Modify the manifests on your local machine from step 1, according to resource-specific migration guide in the CRD browser. (Note: migration guides are available only internally at SAP )
- Install New Provider Version (Github.com v0.3.0) in your cluster.
- Apply the modified manifests of the new version, e.g.,
kubectl apply -f modified-legacy-cf-resources.yaml
- Ensure that the newly applied resources are synced.
- Remove the finalizers of the paused legacy resources (!!! Make sure these are your old resources !!! e.g.
kubectl describe <Resource>has to includeAPI Version: cloudfoundry.btp.orchestrate.cloud.sap/v1alpha1)
for resource in $(kubectl get Organization,Space,App,Orgmembers,Route,ServiceInstance,ServiceKey,Spacemembers,ProviderConfig,Domain -o name); do
kubectl patch $resource --type merge -p '{"metadata":{"finalizers":[]}}'
done
- Delete legacy resources
kubectl delete Organization,Space,App,Orgmembers,Route,ServiceInstance,ServiceKey,Spacemembers,ProviderConfig,Domain --all
- Delete legacy provider version