Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta mgmt policy #137

Closed

Conversation

jwhitcraft
Copy link

Description of your changes

This enabled the using the Beta Management Policy Feature Flag

Fixes #136

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Built and tested in our test controlplane

Use the upstream feature flag to enable the Beta Management Policy support.

fixes: crossplane-contrib#136
Signed-off-by: Jon Whitcraft <[email protected]>
@MisterMX
Copy link
Collaborator

The provider uses https://github.com/crossplane/crossplane-runtime v1.14.x which is using the alpha feature flag. As long as we don't make the upgrade to v1.15 this change wont work.

@jwhitcraft
Copy link
Author

The provider uses https://github.com/crossplane/crossplane-runtime v1.14.x which is using the alpha feature flag. As long as we don't make the upgrade to v1.15 this change wont work.

From the looks of it, the feature went beta in 1.14.0rc1: crossplane/crossplane-runtime@55a8c10

o.Features.Enable(features.EnableAlphaManagementPolicies)
log.Info("Alpha feature enabled", "flag", features.EnableAlphaManagementPolicies)
o.Features.Enable(feature.EnableBetaManagementPolicies)
log.Info("Beta Management Policies feature enabled", "flag", feature.EnableBetaManagementPolicies)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

features.EnableAlphaManagementPolicies is a provider feature flag that does not come with the runtime. Changing this wont work.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i see, i guess i'll go back to the drawing board and see if i can get this provided updated to 1.15.x so we can use the beta feature flag.

@MisterMX
Copy link
Collaborator

Closing this, since the underlying issue #136 is solved.

@MisterMX MisterMX closed this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crossplane 1.15 trying to use Management Policies
2 participants