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

UI: k8s auth openapi update #25218

Merged
merged 3 commits into from
Feb 5, 2024
Merged

UI: k8s auth openapi update #25218

merged 3 commits into from
Feb 5, 2024

Conversation

hashishaw
Copy link
Contributor

@hashishaw hashishaw commented Feb 5, 2024

This PR adds a new Kubernetes config param, use_annotations_as_alias_metadata. This was caught via one of the OpenAPI tests.

The new param was added in this PR and Vault is updated to consume the new version in this PR

Config form has param:
Screenshot 2024-02-05 at 11 47 26

@hashishaw hashishaw added the ui label Feb 5, 2024
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Feb 5, 2024
@hashishaw hashishaw added this to the 1.16.0-rc1 milestone Feb 5, 2024
@@ -605,6 +605,14 @@ const kubernetes = {
label: 'Token Reviewer JWT',
type: 'string',
},
useAnnotationsAsAliasMetadata: {
editType: 'boolean',
fieldGroup: 'default',
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the fieldGroup above is Kubernetes Options. I can't remember how this openAPI test is setup, does this need to match above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch -- the fieldGroup is coming from the OpenAPI response, so if it's default from there maybe that means the checkmark needs to be in the main fields instead. I'll check with eco

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Confirmed that the option should be in this section -- the kubernetes plugin authors probably don't know that the fieldgroup value is for organizing the options in the form

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for confirming and following up!

Copy link
Contributor

@hellobontempo hellobontempo left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix! So great to see these openAPI tests you added doing their job 🤩

I'm sure you did since the openAPI attr is added below, but looks like you ran enterprise tests locally - just double checking!

Copy link

github-actions bot commented Feb 5, 2024

Build Results:
All builds succeeded! ✅

@hashishaw hashishaw merged commit 588a43c into main Feb 5, 2024
72 checks passed
@hashishaw hashishaw deleted the ui/k8s-openapi-update branch February 5, 2024 19:29
Monkeychip pushed a commit that referenced this pull request Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants