-
Notifications
You must be signed in to change notification settings - Fork 71
Display the predefined category tags for vSphere cluster tags #7721
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
base: main
Are you sure you want to change the base?
Display the predefined category tags for vSphere cluster tags #7721
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
KhizerRehan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feedback Added (PTAL)
|
|
||
| <mat-form-field fxFlex *ngIf="networks.length > 1"> | ||
| <mat-form-field fxFlex | ||
| *ngIf="networks.length > 1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This syntax will be soon deprecated. We can use updated control flow syntax
| this._clusterSpecService.cluster.spec.cloud.vsphere.folder = folder; | ||
| } | ||
|
|
||
| onLoadingTags(): void {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we using this?
| [kmPatternError]="tagValuesPatternError" | ||
| [kmRequired]="!!form.get(Controls.TagCategory).value" | ||
| fxFlex /> | ||
| <km-chip-autocomplete [formControlName]="Controls.Tags" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 Questions:
I think this is the first time in codebase we are using this custom element i can't find any other usages in other parts of codebase. Just Curios (seem little outdated) I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q2:
Compare to dev -> km-chip-list shows validations as we are passing
[kmPattern]="tagValuesPattern"
[kmPatternError]="tagValuesPatternError"
therefor i can see in dev validations works for cluster tags
With km-chip-autocomplete (Validations I guess missing) in component itself. Which IMO, we need to restrict user to provide any invalid tags.
25cfb99 to
7f4e262
Compare
What this PR does / why we need it:
Show the list of predefined category tags for vSphere cluster tags, and also keep the option to add other tags manually.
Which issue(s) this PR fixes:
Fixes #7395
What type of PR is this?
/kind feature
Does this PR introduce a user-facing change? Then add your Release Note here:
Documentation: