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

[multikueue] Add Path kubeConfig location type #1640

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

trasc
Copy link
Contributor

@trasc trasc commented Jan 25, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add Path location type for MultiKueue cluster KubeConfigs

Which issue(s) this PR fixes:

Relates to #693

Special notes for your reviewer:

Does this PR introduce a user-facing change?

MultiKueue: Add Path location type for cluster KubeConfigs.

@k8s-ci-robot
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

@k8s-ci-robot k8s-ci-robot 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. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 25, 2024
Copy link

netlify bot commented Jan 25, 2024

Deploy Preview for kubernetes-sigs-kueue ready!

Name Link
🔨 Latest commit fffb0c1
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/65b765b5983bdd00087c68a4
😎 Deploy Preview https://deploy-preview-1640--kubernetes-sigs-kueue.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 25, 2024
@trasc
Copy link
Contributor Author

trasc commented Jan 25, 2024

/hold

for #1631

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 25, 2024
@trasc trasc marked this pull request as ready for review January 25, 2024 10:38
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 25, 2024
@trasc trasc force-pushed the multikueue-kubeconfig-file branch from 7a9d840 to fffb0c1 Compare January 29, 2024 08:45
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 29, 2024
@trasc
Copy link
Contributor Author

trasc commented Jan 29, 2024

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 29, 2024
Copy link
Contributor

@mimowo mimowo left a comment

Choose a reason for hiding this comment

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

LGTM overall, one question regarding the not-so-clear change: https://github.com/kubernetes-sigs/kueue/pull/1640/files#r1469263382

Copy link
Contributor

@mimowo mimowo left a comment

Choose a reason for hiding this comment

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

/lgtm
/assign @alculquicondor @tenzen-y

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 29, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 9d0c6171359e5d7cfa8c64acf154933660f89896

Comment on lines +31 to +32
// Location is the path on the disk of kueue-controller-manager.
PathLocationType LocationType = "Path"
Copy link
Member

Choose a reason for hiding this comment

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

This Path location type is assumed to be the main story that we want to use credentials that existed on the Node. It means that the main use case is mounting credentials by hostPath volume, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Member

Choose a reason for hiding this comment

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

It makes sense. I think that we should mention here that we would suggest using the SecretLocationType as much as possible, and the PathLocationType is assumed to be used for mounting credentials from nodes via hostPath volumeMount.

However, since this is a non-blocking suggestion, I think that we can work on another PR. I leave on @trasc whether or not we work on it at this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SecretLocationType is the default value, we could present come pros/cons when we add the documentation.

Copy link
Member

Choose a reason for hiding this comment

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

Uhm, I don't like having such a test.
Should we generate this file in bin or tmp dir, then can we use the generated testdata?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will make the testing strategy more complicated, (create the temp file, replace the path in the needed clusters in tc.clusters, cleanup) .

Even if probably not used in kueue until now, the testdata approach is more or less standard in go,

Copy link
Member

Choose a reason for hiding this comment

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

Uhm, I understand that this is the standard approach, but as much as possible, I want to avoid having such testdata.

However, I don't want to block the merge of this PR due to this discussion. So, we probably can come back here when we have more testdata in the near future.

Copy link
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

/hold for #1640 (comment)

Comment on lines +31 to +32
// Location is the path on the disk of kueue-controller-manager.
PathLocationType LocationType = "Path"
Copy link
Member

Choose a reason for hiding this comment

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

It makes sense. I think that we should mention here that we would suggest using the SecretLocationType as much as possible, and the PathLocationType is assumed to be used for mounting credentials from nodes via hostPath volumeMount.

However, since this is a non-blocking suggestion, I think that we can work on another PR. I leave on @trasc whether or not we work on it at this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Uhm, I understand that this is the standard approach, but as much as possible, I want to avoid having such testdata.

However, I don't want to block the merge of this PR due to this discussion. So, we probably can come back here when we have more testdata in the near future.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 31, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tenzen-y, trasc

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 31, 2024
@trasc
Copy link
Contributor Author

trasc commented Feb 1, 2024

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 1, 2024
@k8s-ci-robot k8s-ci-robot merged commit d62d526 into kubernetes-sigs:main Feb 1, 2024
14 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.6 milestone Feb 1, 2024
@trasc trasc deleted the multikueue-kubeconfig-file branch February 1, 2024 07:07
@tenzen-y
Copy link
Member

/kind api-change

@k8s-ci-robot k8s-ci-robot added the kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API label Feb 12, 2024
@alculquicondor
Copy link
Contributor

/release-note-edit

MultiKueue: Add Path location type for cluster KubeConfigs.

kannon92 pushed a commit to openshift-kannon92/kubernetes-sigs-kueue that referenced this pull request Nov 19, 2024
* [multikueue] Add Path kubeconfig location type

* Fix after rebase
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", 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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants