Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Import HRQ into HNC (disabled by default) #183

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

adrianludwin
Copy link
Contributor

This implementation of Hierarchical Resource Quotas (HRQs) is based on
the implementation from the GKE Hierarchy Controller. It's not a
straight import since the GKE version was deployed as a separate
workload, but I've made minimal adaptations to get it to fit into HNC.

Tested: This has only been very lightly tested in HNC so far. I've
imported all the integ tests and E2E tests, and they all pass, but I
certainly wouldn't recommend that anyone use it just yet. The default
manifest includes the HRQ CRD and permissions but nothing else (notably,
the HRQ webhooks), and one feature - the periodic resync of HRQ usages -
is not yet implemented (I'll do that in a followup PR).

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 5, 2022
@adrianludwin
Copy link
Contributor Author

/assign @rjbez17
/cc @erikgb

@k8s-ci-robot k8s-ci-robot requested a review from erikgb April 5, 2022 15:26
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Apr 5, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrianludwin

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

@k8s-ci-robot k8s-ci-robot requested review from srampal and tashimi April 5, 2022 15:26
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 5, 2022
Copy link
Contributor

@rjbez17 rjbez17 left a comment

Choose a reason for hiding this comment

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

I think I followed along and looks good to me, but it's pretty big. One thing that might be useful is some examples/docs, but I assume those will come shortly before the release?

@rjbez17
Copy link
Contributor

rjbez17 commented Apr 11, 2022

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 11, 2022
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 11, 2022
@rjbez17
Copy link
Contributor

rjbez17 commented Apr 11, 2022

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 11, 2022
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 11, 2022
This implementation of Hierarchical Resource Quotas (HRQs) is based on
the implementation from the GKE Hierarchy Controller.  It's not a
straight import since the GKE version was deployed as a separate
workload, but I've made minimal adaptations to get it to fit into HNC.

Tested: This has only been _very_ lightly tested in HNC so far. I've
imported all the integ tests and E2E tests, and they all pass, but I
certainly wouldn't recommend that anyone use it just yet (all existing
e2e tests pass too). The default manifest includes the HRQ CRD and
permissions but nothing else (notably, the HRQ webhooks), and one
feature - the periodic resync of HRQ usages - is not yet implemented
(I'll do that in a followup PR).
@rjbez17
Copy link
Contributor

rjbez17 commented Apr 11, 2022

/lgtm

@rjbez17
Copy link
Contributor

rjbez17 commented Apr 11, 2022

Third time's the charm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 11, 2022
@k8s-ci-robot k8s-ci-robot merged commit 529259d into kubernetes-retired:master Apr 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

3 participants