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

stick to wego-admin admin user in gitops bootstrap command #3567

Merged
merged 5 commits into from
Nov 7, 2023

Conversation

waleedhammam
Copy link
Contributor

Closes #3506

What changed?

  • due to hardcoded rbacs to wego-admin username as admin here
    It's a limitation to create another user to be the admin

  • It would be difficult to replicate the permission for admin user and seems it's not intended to be that way in the code

How was this change implemented?

  • remove asking for username question and stick to wego-admin

How did you validate the change?

  • Explain how a reviewer can verify the change themselves

do gitops bootstrap and the wizard shall not ask for username and give indication that it'll be wego-admin

  • Integration tests -- what is covered, what cannot be covered;
    or, explain why there are no new tests

  • Unit tests -- what is covered, what cannot be covered; are
    there tests that fail without the change?

Release notes

Documentation Changes

Other follow ups

@waleedhammam waleedhammam added the exclude from release notes Use this label to exclude a PR from the release notes label Oct 30, 2023
@waleedhammam waleedhammam linked an issue Oct 30, 2023 that may be closed by this pull request
Copy link
Contributor

@enekofb enekofb left a comment

Choose a reason for hiding this comment

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

Looks good, please review that the acceptance test works.

What are your thoughts about the docs?

@@ -95,7 +95,6 @@ func TestBootstrapCmd(t *testing.T) {
flags: []string{kubeconfigFlag,
"--version=0.33.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

please update the version and run it so we keep it for ensuring some acceptance

@@ -7,8 +7,8 @@ import (
)

const (
installSuccessMsg = "WGE v%s is installed successfully\nYou can visit the UI at https://%s/"
portforwardMsg = "WGE v%s is installed successfully. To access the dashboard, run the following command to create portforward to the dasboard local domain http://localhost:8000"
installSuccessMsg = "WGE v%s is installed successfully\nYou can visit the UI at https://%s/ . admin username: `wego-admin`"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could review this part to make it clearer the info: may be a different msg.

@waleedhammam
Copy link
Contributor Author

Regarding the docs , luckily nothing refers this part

@waleedhammam waleedhammam merged commit d86f660 into main Nov 7, 2023
10 checks passed
@waleedhammam waleedhammam deleted the 3506-bootstrap-cli-rbac-for-admin-user branch November 7, 2023 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from release notes Use this label to exclude a PR from the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bootstrap cli: RBAC for admin user where no wego-admin but admin
2 participants