Skip to content

Conversation

@ahmadhamzh
Copy link
Contributor

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:

Show a list of predefined category tags for Vsphere when adding cluster tags.

Documentation:

NONE

@kubermatic-bot kubermatic-bot added kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. docs/none Denotes a PR that doesn't need documentation (changes). dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. labels Dec 4, 2025
@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from ahmadhamzh. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubermatic-bot kubermatic-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 4, 2025
Copy link
Contributor

@KhizerRehan KhizerRehan left a 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">
Copy link
Contributor

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 {}
Copy link
Contributor

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"
Copy link
Contributor

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

Copy link
Contributor

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

Image

With km-chip-autocomplete (Validations I guess missing) in component itself. Which IMO, we need to restrict user to provide any invalid tags.

Image

@ahmadhamzh ahmadhamzh force-pushed the 7395-dropdown-menue-for-cluster-tag branch from 25cfb99 to 7f4e262 Compare December 6, 2025 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. docs/none Denotes a PR that doesn't need documentation (changes). kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dropdown menu for cluster tags but they should be able to be filled in manually

3 participants