Closed dgrisonnet closed 1 year ago
This requires https://github.com/kubernetes/test-infra/pull/29683.
@dgrisonnet - Built an image off of this branch to test K8s v1.27 compatibility. Seems to work, except I see this regression again: https://github.com/kubernetes-sigs/prometheus-adapter/issues/525
Had to hot-patch the Helm produced manifest from the project to remove the '--logtostderr=true'
line it generates.
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. https://github.com/kubernetes/enhancements/issues/2845
I'll update the manifests in this repo to reflect that, but the helm chart will have to be fixed separately.
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!
[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
/retest
/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 --logtostderr=true
flag)
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 /assign
New changes are detected. LGTM label has been removed.
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.
/retest
@dgrisonnet
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.
Not sure why it worked for me then. I'm running v0.6.3
(Helm Chart v3.10.0
)
I updated to the latest commit today and it continues to work.
Not sure why it worked for me then. I'm running
v0.6.3
(Helm Chartv3.10.0
)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.
@dgrisonnet
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
$ helm search hub prometheus-adapter
URL CHART VERSION APP VERSION DESCRIPTION
https://artifacthub.io/packages/helm/prometheus... 4.2.0 v0.10.0 A Helm chart for k8s prometheus adapter
...
I don't know, the chart is maintained separately.
@justenwalker helm chart PR here: https://github.com/prometheus-community/helm-charts/pull/3641
@justenwalker helm chart PR here: prometheus-community/helm-charts#3641
Nice! Thanks @colinrgodsey
@justenwalker merged!
$ helm search hub prometheus-adapter
URL CHART VERSION APP VERSION DESCRIPTION
https://artifacthub.io/packages/helm/prometheus... 4.3.0 v0.11.0 A Helm chart for k8s prometheus adapter
This PR bumps the various dependency and add support for OpenAPI v3.
Fixes #581