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

feat: add oz prefix name #283

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

Conversation

dnguy078
Copy link
Collaborator

@dnguy078 dnguy078 commented Jul 19, 2024

  • Would like to add an oz prefix as the default request-name. This would help allow us to filter oz pods from alerts.

@github-actions github-actions bot added the go Pull requests that update Go code label Jul 19, 2024
@dnguy078 dnguy078 changed the title add oz prefix name feat: add oz prefix name Jul 19, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10009263398

Details

  • 0 of 2 (0.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 38.51%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/cmd/ozctl/cmd/create_exec_access_request.go 0 1 0.0%
internal/cmd/ozctl/cmd/create_pod_access_request.go 0 1 0.0%
Totals Coverage Status
Change from base Build 9847183952: 0.0%
Covered Lines: 1091
Relevant Lines: 2833

💛 - Coveralls

@dnguy078 dnguy078 marked this pull request as ready for review July 19, 2024 14:36
@dnguy078 dnguy078 requested a review from diranged as a code owner July 19, 2024 14:36
@@ -108,7 +108,7 @@ func init() {
createExecAccessRequestCmd.Flags().
StringVarP(&waitTime, "wait", "w", "1m", "Duration to wait for the access request to be fully ready. Valid time units are: ns, us, ms, s, m, h.")
createExecAccessRequestCmd.Flags().
StringVarP(&requestNamePrefix, "request-name", "N", usernameEnv, "Prefix name to use when creating the `ExecAccessRequest` objects.")
StringVarP(&requestNamePrefix, "request-name", "N", fmt.Sprintf("oz-%s", usernameEnv), "Prefix name to use when creating the `ExecAccessRequest` objects.")
Copy link
Owner

Choose a reason for hiding this comment

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

  1. Labels should be used to isolate/filter for pods... not names.
  2. This should be a configurable property that is optional. The question is, shoudl it be a controller setting or an AccessTemplate setting?

Repository owner deleted a comment from gorangasic Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants