-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Fix old tag of custom error pages used in example #7460
Fix old tag of custom error pages used in example #7460
Conversation
@DysphoricUnicorn: This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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. |
Hi @DysphoricUnicorn. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
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.
/ok-to-test
/lgtm
/trigger accept
Wondering if we should move this image to kubernetes repo as well (as I don’t know who have access to this quay.io repo) |
If we want to move it to kubernetes repo, we can just sync the image tags 😺 |
Is there anything I can do to help with that? I know, it's not a high priority change but if I can stop some other newcomer from running into this issue like I did, I definitely want to. |
@tao12345666333 didn't get your idea :) Was going to suggest to @DysphoricUnicorn to follow the same approach of other images: https://github.com/kubernetes/ingress-nginx/tree/main/images/httpbin
Once this gets merged, probably (see, probably because I don't know!!) cloudbuild would compile this image in staging and we can promote it. Actually this repo could make some good usage of a cleanup of everything outside k8s.gcr.io :) But coming back to this PR: @DysphoricUnicorn take a look into https://github.com/kubernetes/ingress-nginx/tree/main/images/httpbin, if you can create a really simple Makefile, to be called by cloudbuilds.yaml we can work on moving this to gcr :) |
Since the setup for the custom-error-messages was really different from the other images that are build using cloudbuild, I changed it to "fit in better"
I updated the Makefile and added a cloudbuild.yml I don't actually know enough about cloudbuild to verify the changes though. I did so to the best of my current knowledge and similar to how I build dockerfiles at my dayjob. |
@rikatz I mean, we can directly use tools like https://github.com/containers/skopeo to synchronize the original images to the new repo |
Did you get a chance to look at my changes yet? Since the automated build jobs succeeded (as well as my local test builds that I did before pushing) they are probably correct but if they aren't, I'll be glad to update the pr again. |
@DysphoricUnicorn adding this to milestone v1.0.1 to take a proper look |
@@ -12,10 +12,23 @@ | |||
# See the License for the specific language governing permissions and | |||
# limitations under the License. | |||
|
|||
FROM BASEIMAGE | |||
FROM golang:1.14-alpine as builder |
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.
Can we use go v1.17 here?
overall lgtm. We can add this image and later add it to the test-infra and promotion infra. @DysphoricUnicorn you can do that:
Feel free to ping me in Slack with further questions (I keep losing github notifications...) |
Since Go >= 1.16 required the use of modules, I also initialized the module using the name k8s.io/ingress-nginx/custom-error-pages
@@ -36,7 +36,7 @@ spec: | |||
spec: | |||
containers: | |||
- name: nginx-error-server | |||
image: quay.io/kubernetes-ingress-controller/custom-error-pages-amd64:0.3 | |||
image: gcr.io/k8s-staging-ingress-nginx/nginx-errors:0.48.1 |
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.
One last change:
The image path should be k8s.gcr.io/ingress-nginx/nginx-errors:0.48.1
Anyway, I'm ok to fix this later as we promote the image :)
Gonna approve and merge this. @DysphoricUnicorn as soon as this gets merged, gonna send the right tag here so you can open a PR for image promotion and fixing the customization file here. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DysphoricUnicorn, rikatz, tao12345666333 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 |
* Fix old tag of custom error pages used in example * Move nginx-errors to k8s registry Since the setup for the custom-error-messages was really different from the other images that are build using cloudbuild, I changed it to "fit in better" * Use Go version 1.17 for custom-error-pages Since Go >= 1.16 required the use of modules, I also initialized the module using the name k8s.io/ingress-nginx/custom-error-pages
What this PR does / why we need it:
The 0.4 update fixed an issue (#4039), which caused the error pages to be incorrectly displayed (or in the case of chromium not at all displayed) by web browsers.
Since I didn't check which tag is the current one, I actually wrote a fix for this issue, only to see that it was already fixed in 0.4 :/
I just updated the tag in the example manifest so that others won't run into the same issue
Types of changes
How Has This Been Tested?
I deployed the updated manifest to my production cluster and it works
Checklist: