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

Add options for skipping default tags #1474

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikael-lindstrom
Copy link

Description of your changes

The PR introduces the argument --skip-default-tags which makes the provider skip setting the default tags:

  • crossplane-kind
  • crossplane-name
  • crossplane-providerconfig

This is useful for "S3-compatible" services such as Scality Ring which implements all the required API for Crossplane except for tags. Currently the provider fails to create a bucket in Scality Ring since the tag API returns 501 NotImplemented.

Unfortunately this introduces changes to a lot of generated files since hack/main.go.tmpl is modified but the change is small. Unsure if there is a better way to solve this.

Fixes #1141

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

This has been tested against localstack and works as previously without --skip-default-tags, when it's set it correctly skips setting the default crossplane tags for S3 buckets.

We are running this change in production for a week now and it's working fine with the option --skip-default-tags added to the DeploymentRuntimeConfig against Scality Ring which does not support tags.

Signed-off-by: Mikael Lindström <[email protected]>
Copy link

github-actions bot commented Dec 6, 2024

This provider repo does not have enough maintainers to address every pull request. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Dec 6, 2024
Copy link

This pull request is being closed since there has been no activity for 14 days since marking it as stale. If you're still working on this, feel free to reopen the PR or create a new one!

@github-actions github-actions bot closed this Dec 21, 2024
@erikgb
Copy link

erikgb commented Jan 24, 2025

/reopen

@turkenf turkenf reopened this Jan 27, 2025
@tenstad
Copy link

tenstad commented Jan 27, 2025

Would really like this feature, as the "S3-compatible" Cloudian also does not support tags on IAM Policy and User.

@github-actions github-actions bot removed the stale label Jan 28, 2025
@tenstad
Copy link

tenstad commented Feb 13, 2025

If it's not possible to get this option into the provider config without severe drawbacks, it LGTM!

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.

Option to disable default tags
4 participants