Skip to content

v2.0.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@Breee Breee released this 10 Mar 07:22
· 637 commits to main since this release

Summary

Managed Resources are now identified by their unique identifying properties instead of relying on their non-deterministic UUID.
Effectively changing the logic how the "external-name" is managed:

  1. If external-name is set: try to resolve resource by UUID (get UUID from external-name)
  2. If resource can be resolved by UUID: return UUID
  3. If resource can NOT be resolved by UUID OR external-name is NOT set:
    try to resolve resource by identifying properties (realmId, clientId, etc.)
  4. If resource can be resolved by identifying properties: return UUID of resolved resource
  5. return that resource does not exist

This approach makes it easy to pick-up management of existing resources that already exists without knowing the UUID.

With that RC we would like to get input from the community and offer users an opportunity to experiment with that changed approach

Example:

apiVersion: role.keycloak.crossplane.io/v1alpha1
kind: Role
metadata:
  annotations:
    # Here we reference the role  by  "<realm>/<role_name>"
    crossplane.io/external-name: master/uma_authorization
  name: builtin-master-realm-role-uma-authorization
spec:
  deletionPolicy: Orphan
  forProvider:
    name: uma_authorization
    realmId: master
  managementPolicies:
  - Observe
  providerConfigRef:
    name: keycloak-provider-config

Fixes: #126

What's Changed

  • fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.36.0 by @renovate in #233
  • chore(deps): update github-actions by @renovate in #234
  • fix(deps): update github.com/keycloak/terraform-provider-keycloak digest to 9ee4f2d by @renovate in #235
  • fix(deps): update github.com/keycloak/terraform-provider-keycloak digest to 0cda82d by @renovate in #236
  • fix(deps): update github.com/keycloak/terraform-provider-keycloak digest to 3d98f19 by @renovate in #237
  • chore(deps): update alpine docker tag to v3.21.3 by @renovate in #238
  • chore(deps): update dependency go to v1.24.0 by @renovate in #232
  • chore(deps): update dependency python-keycloak to v5.3.1 - autoclosed by @renovate in #231
  • chore(deps): update actions/cache digest to 0c907a7 by @renovate in #239
  • fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.36.1 by @renovate in #240
  • fix(deps): update github.com/keycloak/terraform-provider-keycloak digest to 2fb6ec2 by @renovate in #241
  • chore(deps): update actions/upload-artifact digest to 4cec3d8 by @renovate in #242
  • chore(deps): update zeebe-io/backport-action action to v3.2.0 by @renovate in #243
  • chore(deps): update github-actions by @renovate in #244
  • chore(deps): update codecov/codecov-action digest to 0565863 by @renovate in #245
  • chore(deps): update actions/cache digest to d4323d4 by @renovate in #246
  • chores(deps): bump terraform provider to 5.1.1 by @Breee in #247
  • chore(deps): update docker/setup-qemu-action digest to 2910929 by @renovate in #248
  • fix(deps): update github.com/keycloak/terraform-provider-keycloak digest to c732685 by @renovate in #253
  • Improvement/update-linting by @consooo in #255

New Contributors

Full Changelog: v1.11.0...v2.0.0-rc.1