Skip to content

Commit

Permalink
Merge pull request #15250 from zetaab/automated-cherry-pick-of-#15249…
Browse files Browse the repository at this point in the history
…-upstream-release-1.26

Automated cherry pick of #15249: switch to use registry.k8s.io images for openstack
  • Loading branch information
k8s-ci-robot authored Mar 18, 2023
2 parents 9a3222a + 4a8100a commit 4f21832
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ spec:
operator: Exists
containers:
- name: openstack-cloud-controller-manager
image: "{{- if .ExternalCloudControllerManager.Image -}} {{ .ExternalCloudControllerManager.Image }} {{- else -}} docker.io/k8scloudprovider/openstack-cloud-controller-manager:{{OpenStackCCMTag}} {{- end -}}"
image: "{{- if .ExternalCloudControllerManager.Image -}} {{ .ExternalCloudControllerManager.Image }} {{- else -}} registry.k8s.io/provider-os/openstack-cloud-controller-manager:{{OpenStackCCMTag}} {{- end -}}"
args:
- /bin/openstack-cloud-controller-manager
{{- range $arg := CloudControllerConfigArgv }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ spec:
- mountPath: /var/lib/csi/sockets/pluginproxy/
name: socket-dir
- name: cinder-csi-plugin
image: "{{- if .CloudProvider.Openstack.BlockStorage.CSIPluginImage -}} {{ .CloudProvider.Openstack.BlockStorage.CSIPluginImage }} {{- else -}} docker.io/k8scloudprovider/cinder-csi-plugin:{{OpenStackCSITag}} {{- end -}}"
image: "{{- if .CloudProvider.Openstack.BlockStorage.CSIPluginImage -}} {{ .CloudProvider.Openstack.BlockStorage.CSIPluginImage }} {{- else -}} registry.k8s.io/provider-os/cinder-csi-plugin:{{OpenStackCSITag}} {{- end -}}"
args:
- /bin/cinder-csi-plugin
- "--endpoint=$(CSI_ENDPOINT)"
Expand Down
12 changes: 5 additions & 7 deletions upup/pkg/fi/cloudup/template_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,14 +813,12 @@ func (tf *TemplateFunctions) OpenStackCCMTag() string {
if err != nil {
tag = "latest"
} else {
if parsed.Minor == 23 {
tag = "v1.23.1"
} else if parsed.Minor == 24 {
if parsed.Minor == 24 {
tag = "v1.24.6"
} else if parsed.Minor == 25 {
tag = "v1.25.4"
tag = "v1.25.5"
} else if parsed.Minor == 26 {
tag = "v1.26.1"
tag = "v1.26.2"
} else {
// otherwise we use always .0 ccm image, if needed that can be overrided using clusterspec
tag = fmt.Sprintf("v%d.%d.0", parsed.Major, parsed.Minor)
Expand All @@ -840,9 +838,9 @@ func (tf *TemplateFunctions) OpenStackCSITag() string {
if parsed.Minor == 24 {
tag = "v1.24.6"
} else if parsed.Minor == 25 {
tag = "v1.25.4"
tag = "v1.25.5"
} else if parsed.Minor == 26 {
tag = "v1.26.1"
tag = "v1.26.2"
} else {
// otherwise we use always .0 csi image, if needed that can be overrided using cloud config spec
tag = fmt.Sprintf("v%d.%d.0", parsed.Major, parsed.Minor)
Expand Down

0 comments on commit 4f21832

Please sign in to comment.