-
Notifications
You must be signed in to change notification settings - Fork 556
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
*: bump go to 1.20 and k8s deps to 0.27.2 #586
Conversation
This requires kubernetes/test-infra#29683. |
@dgrisonnet - Built an image off of this branch to test K8s v1.27 compatibility. Seems to work, except I see this regression again: #525 Had to hot-patch the Helm produced manifest from the project to remove the Possibly broken in a prior commit? |
This flag alongside others were removed from Kubernetes components in 1.26 and since prometheus-adapter is reusing code from the kube-apiserver, the same applies here. kubernetes/enhancements#2845 I'll update the manifests in this repo to reflect that, but the helm chart will have to be fixed separately. |
Thanks for that explanation! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dgrisonnet, olivierlemasle 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 |
/retest |
1 similar comment
/retest |
FWIW I confirmed this change worked for me. I did my own build of the docker images and re-packaged the helm chart (removing the |
In this PR's state, it shouldn't work on 1.27. Both when I tried it locally and in CI the pod is crashlooping because I need to update metrics-server to support 1.27 before this can go in. |
/triage accepted |
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
New changes are detected. LGTM label has been removed. |
#589 is required to support k8s 1.27 |
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
I added the OpenAPI v3 support to this PR directly since it requires client updates, but they require OpenAPI v3 support for the tests to pass. |
86e5dcd
to
a4aa32e
Compare
/retest |
Not sure why it worked for me then. I'm running I updated to the latest commit today and it continues to work. |
Have also been running this branch's changes for the past couple of weeks without crash. |
Now it should be all good, but before my change, if you didn't touch you the OpenAPI v3 feature gate on a 1.27 cluster, it wasn't working properly. |
I'm deploying on EKS so I do not have access to these feature gates (so they are likely the defaults) - maybe that's why it worked? |
@dgrisonnet is there any additional feedback or testing I can provide to validate this PR? Or is this waiting on approval from someone else? |
also stuck on an EKS 1.27 upgrade here. any new developments here on what's needed to move forward with this PR ? |
I am just waiting for a review from @olivierlemasle if possible |
Can @booleanbetrayal review it? |
I'd prefer having someone from kubernetes-sig signing it off, but if it still hasn't made any move next week, I'll merge it and create a new release. |
@dgrisonnet seems unlikely we'll get that review from @olivierlemasle ; IMO since we've got some independent tests from myself and @booleanbetrayal and its relatively straight forward my vote would be to merge. Only one note is that we're currently on Go 1.20.6 so it might be good to make that small tweak just to include the security fixes if its an easy enough change. https://github.com/kubernetes-sigs/prometheus-adapter/pull/586/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R11 |
@dgrisonnet thanks for closing this out! How does the helm chart for this get built; is that automatic? The current app version available is v0.10.0
|
I don't know, the chart is maintained separately. |
@justenwalker helm chart PR here: prometheus-community/helm-charts#3641 |
Nice! Thanks @colinrgodsey |
@justenwalker merged!
|
Changes since v0.10.0 Logging flags that are klog specific (`--log-dir`, `--log-file`, `--logtostderr`, `--alsologtostderr`, `--one-output`, `--stderrthreshold`, `--log-file-max-size`, `--skip-log-headers`, `--add-dir-header`, `--skip-headers`, `--log-backtrace-at`) were deprecated in v0.10.0 and are now **removed**. Improvements * Bump go to 1.20 and k8s deps to 0.27.2 (kubernetes-sigs#586, @dgrisonnet) * Add support for OpenAPI v3 (kubernetes-sigs#586, @dgrisonnet) * Update registry location to registry.k8s.io in the manifests (kubernetes-sigs#529, @dgrisonnet) * Update manifests in deploy/manifests to be in sync with the one in kube-prometheus (kubernetes-sigs#531, @JoaoBraveCoding) * Use golangci-lint to lint the codebase (kubernetes-sigs#540, @olivierlemasle) * Set MinVersion: tls.VersionTLS12 in prometheus client's TLSClientConfig (kubernetes-sigs#544, @olivierlemasle) * Refactor adding logging flags (kubernetes-sigs#546, @olivierlemasle) Bug fixes * Fix segfault when using --prometheus-token-file (kubernetes-sigs#538, @olivierlemasle) Documentation * Fix broken links in README.md (kubernetes-sigs#518, @sillyfrog) * Fix yaml in sample config & docs (kubernetes-sigs#559, @asherf)
This PR bumps the various dependency and add support for OpenAPI v3.
Fixes #581