Skip to content

Commit

Permalink
Merge pull request #4379 from zhzhuang-zju/automated-cherry-pick-of-#…
Browse files Browse the repository at this point in the history
…4376-upstream-release-1.8

Automated cherry pick of #4376: bump alpine to 3.18.5 to address CVE concerns
  • Loading branch information
karmada-bot authored Dec 6, 2023
2 parents 1f0fb52 + e462660 commit 6bdcd9c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cluster/images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:3.18.3
FROM alpine:3.18.5

ARG BINARY

Expand Down
2 changes: 1 addition & 1 deletion cluster/images/buildx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:3.18.3
FROM alpine:3.18.5

ARG BINARY
ARG TARGETPLATFORM
Expand Down
4 changes: 2 additions & 2 deletions pkg/karmadactl/cmdinit/kubernetes/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func init() {
karmadaRelease = releaseVer.ReleaseVersion()

DefaultCrdURL = fmt.Sprintf("https://github.com/karmada-io/karmada/releases/download/%s/crds.tar.gz", releaseVer.ReleaseVersion())
DefaultInitImage = "docker.io/alpine:3.15.1"
DefaultInitImage = "docker.io/alpine:3.18.5"
DefaultKarmadaSchedulerImage = fmt.Sprintf("docker.io/karmada/karmada-scheduler:%s", releaseVer.ReleaseVersion())
DefaultKarmadaControllerManagerImage = fmt.Sprintf("docker.io/karmada/karmada-controller-manager:%s", releaseVer.ReleaseVersion())
DefualtKarmadaWebhookImage = fmt.Sprintf("docker.io/karmada/karmada-webhook:%s", releaseVer.ReleaseVersion())
Expand Down Expand Up @@ -665,7 +665,7 @@ func (i *CommandInitOption) kubeControllerManagerImage() string {
// get etcd-init image
func (i *CommandInitOption) etcdInitImage() string {
if i.ImageRegistry != "" && i.EtcdInitImage == DefaultInitImage {
return i.ImageRegistry + "/alpine:3.15.1"
return i.ImageRegistry + "/alpine:3.18.5"
}
return i.EtcdInitImage
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/karmadactl/cmdinit/kubernetes/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func TestEtcdInitImage(t *testing.T) {
ImageRegistry: "my-registry",
EtcdInitImage: DefaultInitImage,
},
expected: "my-registry/alpine:3.15.1",
expected: "my-registry/alpine:3.18.5",
},
{
name: "EtcdInitImage is set to a non-default value",
Expand Down

0 comments on commit 6bdcd9c

Please sign in to comment.