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

Remove promo flag and other dependent flags from the generatebundlefile CLI #1150

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

sp1999
Copy link
Member

@sp1999 sp1999 commented Aug 1, 2024

Description of changes:

This PR removes the following flags from the generatebundlefile CLI as they are no longer being used anywhere

  • promote
  • tag
  • copyImages
  • publicProfile
  • privateProfile
  • regionCheck

The regionCheck flag was being used only for non-regional packages release pipelines to verify that the bundles existed in the non-regional supported AWS regions listed here within the AWS Regions table. As we have migrated all the packages build and release pipelines to the regional packages beta account, we don't need this flag anymore.

The promo codebuild job is no longer required to promote the helm charts, bundles and certain images to public ECR as it is now being handled by the ECR Image replication job in all the packages build and release pipelines. So we are removing the promote flag from the CLI. All the remaining flags mentioned above were being used by the promote flag so they are also being removed as a result. Since there is just one account where we handle everything, we don't need any profile variables and so the corresponding publicProfile and privateProfile flags are also being removed.

In addition to that, this PR also removes lot of unused and unnecessary helper functions along with updating any go package dependencies in go.mod file. It also updates a lot of error messages to improve the logs for better debugging. For ex:- removing punctuation or new line characters at the end of the error message, updating error messages to not start with capital letters or "Error" keyword, etc

Testing:
make build

@eks-distro-bot eks-distro-bot added approved size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 1, 2024
@abhay-krishna
Copy link
Member

/lgtm
/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhay-krishna, sp1999

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [abhay-krishna,sp1999]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eks-distro-bot eks-distro-bot merged commit c2c469f into aws:main Aug 9, 2024
6 checks passed
@sp1999 sp1999 deleted the remove-promo-flag branch August 9, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants