-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove legacy GeoIP from image (#10500)
Signed-off-by: Jintao Zhang <[email protected]> Co-authored-by: Ricardo Katz <[email protected]>
- Loading branch information
1 parent
9db8fe5
commit 0055ba3
Showing
5 changed files
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,6 @@ RUN apk update \ | |
openssl \ | ||
pcre \ | ||
zlib \ | ||
geoip \ | ||
ca-certificates \ | ||
patch \ | ||
yajl \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
0055ba3
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.
Hello,
I am building a forked controller. Since I am building a custom Nginx base image as part of my pipeline, I've discovered a potential problem for the future Nginx controller releases.
This commit should had contained also a removal of the file watcher for the /etc/nginx/geoip directory, see
ingress-nginx/internal/ingress/controller/nginx.go
Line 183 in f59738c
The v1.9.4 controller works fine, because it uses an older Nginx base image version that still has this folder:
registry.k8s.io/ingress-nginx/nginx:v20231011-8b53cabe0@sha256:34881d62f71e8573fb765c40585dba28a1148206fbbe2c3871ad3f4e8c6e360f
However, once a newer controller is released that also needs a newer Nginx base image, the controller's startup shall fail since that folder is not going to be available anymore on newer base images. The error looks like:
F1029 16:12:33.043975 7 nginx.go:197] Error creating file watchers: lstat /etc/nginx/geoip/: no such file or directory
I am not an expert on Go, so I feel reluctant to create a PR myself. Please, pardon me if this is not the correct place to post this information.
Best Regards