forked from goharbor/harbor-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
System robots #2
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: bupd <bupdprasanth@gmail.com> Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
This commit adds delete and get project robot accounts cmds Signed-off-by: bupd <bupdprasanth@gmail.com> Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
…obot create; missing import in view.go; merge conflict in prompt.go Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: bupd <bupdprasanth@gmail.com> Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: bupd <bupdprasanth@gmail.com> Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: bupd <bupdprasanth@gmail.com> Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: bupd <bupdprasanth@gmail.com> Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
…ke table fashion. Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
- display robot name, status, permissions count, creation time, expiration, and description in a table - render a second table showing each resource and its allowed actions as ✓/✗ - reuse existing table layout code for the non-interactive view - maintain interactive table model in path for toggling permissions TODO: extract the table Model into its own package and share between create and view Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
- display robot name, status, permissions count, creation time, expiration, and description in a table - render a second table showing each resource and its allowed actions as ✓/✗ - reuse existing table layout code for the non-interactive view - maintain interactive table model in create path for toggling permissions TODO: extract the table Model into its own package and share between create and view Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
This commit adds several improvements to robot account creation: Implements a general table grid view component for permission selection with interactive cell toggling and proper navigation Adds functionality to load robot account configurations from YAML files with support for wildcard actions and grouped resources Refactors the robot account creation flow to prioritize config files and only show the form when necessary Adds validation for project existence and robot name uniqueness when loading from config files Includes an example configuration file at robot-config.yaml demonstrating the YAML format with various permission patterns This enhancement improves automation capabilities by allowing robot accounts to be defined as code while maintaining the interactive UI when needed. Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
… list unavailable commands Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
…m permissions that are available in the harbor api Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
…le directly Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
This change allows robot configuration to be loaded from both YAML and JSON files. The system now automatically detects file type based on extension and processes accordingly, while maintaining the same validation and permission handling logic. Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Enhance the Long help text for all robot-related commands with detailed descriptions, consistent formatting, and comprehensive examples. This improves user experience by providing clearer instructions on how to use robot account management commands. Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
- Add support for system-level robots with abilities to span multiple projects - Implement interactive project selection loop with huh form prompts - Extend robot select view for system and project level grids This enhancement allows users to create system robots with permissions across multiple projects in one operation, eliminating the need for separate robot accounts per project. Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.