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

Add healthcheck to aws-iam-authenticator #8991

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

rdrgmnzs
Copy link
Contributor

This builds on PR #8423 by @rifelpet

A 5.0.1 version of aws-iam-authenticator has not been released as of the creation of this PR, however I had the need to create internal version with the health check and decided to create the PR as a reminder to merger it in the future.

@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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Apr 26, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rdrgmnzs

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 size/S Denotes a PR that changes 10-29 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 26, 2020
@rdrgmnzs rdrgmnzs force-pushed the aws-authenticator-update branch from 12413fc to 09f418d Compare April 26, 2020 09:37
@rifelpet
Copy link
Member

An alpha was just released with the CRD fixes: https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/tag/v0.5.1-alpha.1 i'll try to do some testing soon

@rdrgmnzs
Copy link
Contributor Author

@rifelpet sg, I've actually been running a internal build from master for about 3 weeks now with no issues.

@rifelpet
Copy link
Member

rifelpet commented Jul 1, 2020

@rdrgmnzs 0.5.1 was just released, care to rebase this so we can get it merged?

https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/tag/v0.5.1

volumeMounts:
- name: config
mountPath: /etc/aws-iam-authenticator/
- name: state
mountPath: /var/aws-iam-authenticator/
- name: output
mountPath: /etc/kubernetes/aws-iam-authenticator/

Copy link
Member

Choose a reason for hiding this comment

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

Maybe add this line back?

@rdrgmnzs rdrgmnzs force-pushed the aws-authenticator-update branch from 09f418d to 733bed6 Compare July 9, 2020 19:10
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. area/addons and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 9, 2020
@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 9, 2020
@rdrgmnzs rdrgmnzs force-pushed the aws-authenticator-update branch from 8376f77 to e20f3ba Compare July 9, 2020 19:23
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jul 9, 2020
@rdrgmnzs rdrgmnzs changed the title WIP: Add healthcheck to aws-iam-authenticator Add healthcheck to aws-iam-authenticator Jul 9, 2020
@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 Jul 9, 2020
@rifelpet
Copy link
Member

rifelpet commented Jul 9, 2020

Confirmed this path is valid.

$ curl -k -v https://localhost:21362/healthz
...
> GET /healthz HTTP/1.1
> Host: localhost:21362
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Thu, 09 Jul 2020 20:05:03 GMT
< Content-Length: 2
< Content-Type: text/plain; charset=utf-8
<
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact
ok

and matches this commit from 2017 that was only recently added to authenticator: kubernetes-sigs/aws-iam-authenticator@47f0d8e#diff-09856fe9becddf0199651f451409356aR250-R252

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 9, 2020
@k8s-ci-robot k8s-ci-robot merged commit 04ec3dd into kubernetes:master Jul 10, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone Jul 10, 2020
@rifelpet
Copy link
Member

@rdrgmnzs now that I think about this more, I think we might have a similar issue as #9500 where the /healthz endpoint was only introduced in 0.5.0 but users may have overridden the image with a <0.5.0 version. When they upgrade to this version of kops, the livenessProbe will be added but will fail.

How do you think we should handle that?

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. area/addons 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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants