-
Notifications
You must be signed in to change notification settings - Fork 113
chore: upgrade tidb CI image for go1.25 #3999
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ spec: | |
| fsGroup: 1000 | ||
| containers: | ||
| - name: golang | ||
| image: "hub.pingcap.net/wangweizhen/tidb_image:go12320241009" | ||
| image: "hub.pingcap.net/wangweizhen/tidb_image:go12520261210" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This image definition has two issues:
To improve this, the image should be moved to an official repository. Furthermore, the image tag should be parameterized instead of being hardcoded. This can be achieved through templating (e.g., Helm, Kustomize) or by using environment variable substitution in the Jenkins pipeline that processes this YAML file. |
||
| securityContext: | ||
| privileged: true | ||
| tty: true | ||
|
|
||
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.
This image definition raises two concerns:
hub.pingcap.net/wangweizhen/tidb_image:go12520261210is from a personal namespace (wangweizhen). For security and reliability, production CI pipelines should use images from an official, organization-managed repository. This ensures proper image provenance, security scanning, and availability.I recommend moving the image to an official repository and defining the image name as a variable within the script to be reused. For example: