Skip to content

Conversation

@wangchen615
Copy link
Contributor

@wangchen615 wangchen615 commented Feb 18, 2022

The PR updated the loadwatcher library to v0.2.2, which will fix the invalid self-signed SSL connection errors for Prometheus queries in certain environments, such as AWS, GCP, etc., as they disable insecure_skip_verify for all HTTPS requests.

Besides, it updates the invalid manifests/trimaran/scheduler-config.yaml with example pluginConfig.

@zorro786 @sci110680

/assign @Huang-Wei

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes and closes #266.

Special notes for your reviewer:

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 18, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @wangchen615. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 18, 2022
@Huang-Wei
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 18, 2022
} else {
insureSkipVerify := true
if args.MetricProvider.InsecureSkipVerify != "" {
insureSkipVerify = strings.ToLower(args.MetricProvider.InsecureSkipVerify) == "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

insecureSkipVerify

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for spotting this.

@wangchen615 wangchen615 force-pushed the master branch 3 times, most recently from 979d000 to a844ceb Compare February 18, 2022 02:54
@wangchen615
Copy link
Contributor Author

/test pull-scheduler-plugins-unit-test-master

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 24, 2022
@Huang-Wei
Copy link
Contributor

@wangchen615 the changeset looks weird. Could you rebase and ensure there is no commit like "Merge..."?

@wangchen615
Copy link
Contributor Author

@wangchen615 the changeset looks weird. Could you rebase and ensure there is no commit like "Merge..."?

@Huang-Wei yes. Sorry, I was just pulling updates for a test and mistakenly did a merge. Will do a rebase and re-add my changes.

@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 Feb 26, 2022
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 26, 2022
@wangchen615
Copy link
Contributor Author

@Huang-Wei and @zorro786 Now there is only one commit with necessary API changes in both types.go and defaults.go. Please help take another look.

Copy link
Contributor

@Huang-Wei Huang-Wei left a comment

Choose a reason for hiding this comment

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

@wangchen615 could you run hack/update-codegen.sh to ensure the conversion logic is covered. I'd expect some changes in the conversion codegen.

@wangchen615
Copy link
Contributor Author

@wangchen615 could you run hack/update-codegen.sh to ensure the conversion logic is covered. I'd expect some changes in the conversion codegen.

Hi, @Huang-Wei , as the generated code will remove some other plugins' code, I manually added back changes related to my code.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 3, 2022
metricProvider:
type: Prometheus
address: http://prometheus-k8s.monitoring.svc.cluster.local:9090
insecureSkipVerify: false
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you remove this and verify if it's defaulted to true?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Huang-Wei , we tested the default behavior in #L81 and #L132

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. Thanks.

@Huang-Wei
Copy link
Contributor

/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Huang-Wei, wangchen615

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 Mar 4, 2022
@k8s-ci-robot k8s-ci-robot merged commit 4cbdc59 into kubernetes-sigs:master Mar 4, 2022
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

Issue on prometheus as a metrics provider for trimaran in openshift 4.7 cluster.

4 participants