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

Add API endpoints for Nutanix categories #9466

Merged
merged 11 commits into from Mar 31, 2022

Conversation

embik
Copy link
Member

@embik embik commented Mar 29, 2022

What does this PR do / Why do we need it:
This PR adds the following KKP API endpoints:

  • /v2/providers/nutanix/{dc}/categories for category keys
  • /v2/projects/{project_id}/clusters/{cluster_id}/providers/nutanix/categories for category keys via cluster credentials
  • /v2/providers/nutanix/{dc}/categories/{category}/values for category values
  • /v2/projects/{project_id}/clusters/{cluster_id}/providers/nutanix/categories/{category}/values for category values via cluster credentials

They are needed so the dashboard can offer autocompletion for Nutanix categories when creating MachineDeployments. That is important because categories do not exactly work like tags (in other providers): Only pre-existing category keys (names) and values can be used. So the dashboard should only offer categories and respective values that exist already.

Does this PR close any issues?:
Fixes #8927

Special notes for your reviewer:

Documentation:

Does this PR introduce a user-facing change?:

Add endpoints for querying Nutanix category data to KKP API

Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
@kubermatic-bot kubermatic-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. labels Mar 29, 2022
@kubermatic-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubermatic-bot kubermatic-bot added sig/api Denotes a PR or issue as being assigned to SIG API. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 29, 2022
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
@kubermatic-bot kubermatic-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 29, 2022
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
@embik embik marked this pull request as ready for review March 31, 2022 06:22
@kubermatic-bot kubermatic-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 31, 2022
@embik embik requested a review from maciaszczykm March 31, 2022 06:23
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
@kubermatic-bot kubermatic-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 31, 2022
@maciaszczykm
Copy link
Contributor

/lgtm
/approve

@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 31, 2022
@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: embik, maciaszczykm

The full list of commands accepted by this bot can be found here.

The pull request process is described 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
Copy link
Contributor

LGTM label has been added.

Git tree hash: c1fdf3bbf4454559702e04e4ec3d869e90916977

@kubermatic-bot kubermatic-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 31, 2022
@embik
Copy link
Member Author

embik commented Mar 31, 2022

/retest

@kubermatic-bot kubermatic-bot merged commit 48c0a33 into kubermatic:master Mar 31, 2022
@embik embik deleted the nutanix-categories-api branch March 31, 2022 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/api Denotes a PR or issue as being assigned to SIG API. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API endpoints for Nutanix category keys and values
3 participants