Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package oc for openSUSE:Factory checked in at 2025-02-26 17:16:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/oc (Old) and /work/SRC/openSUSE:Factory/.oc.new.1873 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "oc" Wed Feb 26 17:16:24 2025 rev:4 rq:1248443 version:4.18.0 Changes: -------- --- /work/SRC/openSUSE:Factory/oc/oc.changes 2024-10-02 21:34:24.864950618 +0200 +++ /work/SRC/openSUSE:Factory/.oc.new.1873/oc.changes 2025-02-26 17:16:53.519116000 +0100 @@ -1,0 +2,109 @@ +Tue Feb 25 15:06:09 UTC 2025 - Johannes Kastl <opensuse_buildserv...@ojkastl.de> + +- remove leading v from version +- refactor spec to not hardcode kubernetes versions etc. + +------------------------------------------------------------------- +Tue Feb 25 13:26:00 UTC 2025 - opensuse_buildserv...@ojkastl.de + +- Update to version v4.18.0: + * Address `github.com/docker/docker` CVE + * OCPBUGS-38975: monitor should not exit for temp api disconnect + * fix oc adm node-image create --pxe command to copy the correct + artifacts + * OCPBUGS-45991: Mark --report and --pxe flags as experimental + * adm node-logs: Also parse logs when encountered with standard + html header + * Revert "OCPBUGS-37344: Skip inspection of the daemonset pods + running on data plane" + * OTA-1393: status: recognize the process of migration to + multi-arch + * make create and monitor logs more similar and uniform + * NO-JIRA: adm release: cleanups (#1914) + * pkg/cli/admin/upgrade/recommend: Fix "no updates to + <MAJOR>.<MINOR> available" error message + * pkg/cli/admin/upgrade/recommend: Expand "URL" to "Release URL" + * pkg/cli/admin/upgrade/recommend: "no known issues..." + placeholder + * upgrade status: show updating cluster operator names in the + output + * added report flag to force saving the report + * save automatically the report in case of failure + * added progress on create command using the workflow report + * manage error code from workflow report + * refactor for checking explicitly min supported version + * OTA-1224: status: simplify worker status line + * Fix newapp unit test failure by using different image + * pkg/cli/admin/upgrade/recommend: Treat Upgradeable=False as a + conditional update risk + * always retry in case of image pull error + * pkg/cli/admin/upgrade: Propagate --force for --to-multi-arch + * pkg/cli/admin/upgrade: Error on --to-multi-arch with + --to-latest + * add MCO owners file + * ensure mcs secret type before rotation + * Add test to check RsyncInclude for PXE and ISO + * OCPBUGS-43513: Show node-joiner container logs when error + occurs + * pkg/cli/admin/upgrade/recommend: Add --version option for + specific releases + * gather discovery when using inspect + * Do not allow new line in user in create user + * WRKLDS-1320: Support PXE files with "node-image create" + * Remove redundant defaulting message in description + * day2: additional rbac policy rules + * NO-JIRA: Use suggested functions instead of deprecated ones + (#1894) + * pkg/cli/admin/upgrade/recommend: Show most-recent update + options + * Change kube version in image components + * React to changes in kubectl/cmd.go + * React to interface changes in commands + * Bump k8s dependencies to 1.31.1 and go mod tidy/vendor + * Update to new go version 1.22.5 + * OWNERS_ALIASES: Update username of David Hurta + * pkg/cli/admin/upgrade/recommend/examples: Update examples + * nodeimage create: fix outputname flag + * Skip inspection of the daemonset pods running on data plane + * pkg/cli/admin/upgrade/recommend: Add end-to-end output test + coverage + * Update root-approvers of oc + * Check cast result in adm prune deployments to prevent panic + * Rename rsync'd ISO file to -output-name value + * Fixing -o flag in command example + * Add HOST env var in oc debug for sos report collects more + * OCPBUGS-38450: Fix copy artifacts for all CPU architectures + * Fixing line that should be commented out + * Updating ose-cli-artifacts-container image to be consistent + with ART for 4.18 Reconciling with + https://github.com/openshift/ocp-build-data/tree/827ab4ccce9cbbcf82c9dbaf6398b61d6cff8d7a/images/ose-cli-artifacts.yml + * Updating openshift-enterprise-deployer-container image to be + consistent with ART for 4.18 Reconciling with + https://github.com/openshift/ocp-build-data/tree/827ab4ccce9cbbcf82c9dbaf6398b61d6cff8d7a/images/openshift-enterprise-deployer.yml + * Updating ose-tools-container image to be consistent with ART + for 4.18 Reconciling with + https://github.com/openshift/ocp-build-data/tree/827ab4ccce9cbbcf82c9dbaf6398b61d6cff8d7a/images/ose-tools.yml + * pkg/cli/admin/upgrade/: Add `oc adm upgrade recommend` + subcommand + * Updating openshift-enterprise-cli-container image to be + consistent with ART for 4.18 Reconciling with + https://github.com/openshift/ocp-build-data/tree/827ab4ccce9cbbcf82c9dbaf6398b61d6cff8d7a/images/openshift-enterprise-cli.yml + * Update push targets of digest with new appended tags + * OTA-1292: upgrade-status: improve messages for + NotReady/DiskPressure/NetworkUnavailable + * pkg/cli/admin/upgrade: --to-latest help "next" -> "latest" + * OTA-1153: update-status: re-title "Operator Health" + * OTA-1309: hide the empty "Worker Upgrade" section + * node-joiner: use proxy settings when required + * OTA-1292: upgrade-status: handle the OS image annotation better + * make the idle command's scale update unconditional + * OTA-1292: upgrade-status: handle unschedulable nodes better + * upgrade-status: handle expected MCD state better + * OTA-1212: Hide or condense control plane sections once + successfully updated + * `upgrade status`: improve tests for missing annotations + * Adding examples for add-cluster-role-to-* and + remove-cluster-role-from-* so they show in the CLI docs + * upgrade-status: bubble up the reason for unavailable nodes + +------------------------------------------------------------------- Old: ---- oc-4.17.0.obscpio New: ---- oc-4.18.0.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ oc.spec ++++++ --- /var/tmp/diff_new_pack.TcDCCT/_old 2025-02-26 17:16:57.439280132 +0100 +++ /var/tmp/diff_new_pack.TcDCCT/_new 2025-02-26 17:16:57.463281137 +0100 @@ -1,7 +1,7 @@ # # spec file for package oc # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,25 +16,20 @@ # -%define __arch_install_post export NO_BRP_STRIP_DEBUG=true - -%define OC_KUBE_GIT_VERSION v1.28.2 -%define OC_KUBE_GIT_MAJOR_VERSION 1 -%define OC_KUBE_GIT_MINOR_VERSION 28 -%define OC_VERSION openshift-clients-4.14.0-202310201027 -%define OC_COMMIT 0c63f9da - Name: oc -Version: 4.17.0 +Version: 4.18.0 Release: 0 Summary: Openshift / OKD Client CLI License: Apache-2.0 URL: https://github.com/openshift/oc Source: oc-%{version}.tar.gz Source1: vendor.tar.gz -BuildRequires: go >= 1.21 +BuildRequires: bash-completion +BuildRequires: fish +BuildRequires: go >= 1.22.5 BuildRequires: krb5-devel BuildRequires: libgpgme-devel +BuildRequires: zsh # this package contains a kubectl link, so we need a Conflicts Conflicts: kubernetes-client @@ -42,7 +37,10 @@ Conflicts: kubernetes-client-provider %description -With OpenShift Client CLI (oc), you can create applications and manage OpenShift resources. It is built on top of kubectl which means it provides its full capabilities to connect with any kubernetes compliant cluster, and on top adds commands simplifying interaction with an OpenShift cluster. +With OpenShift Client CLI (oc), you can create applications and manage +OpenShift resources. It is built on top of kubectl which means it provides its +full capabilities to connect with any kubernetes compliant cluster, and on top +adds commands simplifying interaction with an OpenShift cluster. %package -n %{name}-bash-completion Summary: Bash Completion for %{name} @@ -82,28 +80,37 @@ %autosetup -p 1 -a 1 %build +# hash will be shortened by COMMIT_HASH:0:8 later +COMMIT_HASH="$(sed -n 's/commit: \(.*\)/\1/p' %_sourcedir/%{name}.obsinfo)" + DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ" BUILD_DATE=$(date -u -d "@${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u -r "${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u "${DATE_FMT}") + +OC_KUBE_GIT_VERSION="$(awk -F '"' '/^KUBE_GIT_VERSION/ {print $2}' Makefile)" +OC_KUBE_GIT_MAJOR_VERSION="$(awk -F '.' '/^KUBE_GIT_VERSION/ {gsub(/^.*v/, "", $1); print $1}' Makefile)" +OC_KUBE_GIT_MINOR_VERSION="$(awk -F '.' '/^KUBE_GIT_VERSION/ {print $2}' Makefile)" +OC_GO_TAGS="$(awk -F "'" '/^GO_BUILD_FLAGS :=/ {print $2}' Makefile)" + go build \ -mod=vendor \ -buildmode=pie \ -ldflags=" \ - -X k8s.io/component-base/version.gitMajor=%{OC_KUBE_GIT_MAJOR_VERSION} \ - -X k8s.io/component-base/version.gitMinor=%{OC_KUBE_GIT_MINOR_VERSION} \ - -X k8s.io/component-base/version.gitVersion=%{OC_KUBE_GIT_VERSION} \ - -X k8s.io/component-base/version.gitCommit=%{OC_COMMIT} \ + -X k8s.io/component-base/version.gitMajor=${OC_KUBE_GIT_MAJOR_VERSION} \ + -X k8s.io/component-base/version.gitMinor=${OC_KUBE_GIT_MINOR_VERSION} \ + -X k8s.io/component-base/version.gitVersion=${OC_KUBE_GIT_VERSION} \ + -X k8s.io/component-base/version.gitCommit=${COMMIT_HASH:0:8} \ -X k8s.io/component-base/version.buildDate=${BUILD_DATE} \ -X k8s.io/component-base/version.gitTreeState=clean \ -X github.com/openshift/oc/pkg/version.versionFromGit=v%{version} \ - -X github.com/openshift/oc/pkg/version.commitFromGit=%{OC_COMMIT} \ + -X github.com/openshift/oc/pkg/version.commitFromGit=${COMMIT_HASH:0:8} \ -X github.com/openshift/oc/pkg/version.gitTreeState=clean \ -X github.com/openshift/oc/pkg/version.buildDate=${BUILD_DATE}" \ - -tags='include_gcs include_oss containers_image_openpgp gssapi' \ + -tags="${OC_GO_TAGS}" \ -o bin/ ./cmd/oc ./tools/genman %install # Install the binary. -install -D -m 0755 bin/%{name} "%{buildroot}/%{_bindir}/%{name}" +install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name} # Install man1 man pages install -d -m 0755 %{buildroot}%{_mandir}/man1 @@ -124,9 +131,9 @@ %{buildroot}/%{_bindir}/kubectl completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/kubectl.fish # create the zsh completion file -mkdir -p %{buildroot}%{_datarootdir}/zsh_completion.d/ -%{buildroot}/%{_bindir}/%{name} completion zsh > %{buildroot}%{_datarootdir}/zsh_completion.d/_%{name} -%{buildroot}/%{_bindir}/kubectl completion zsh > %{buildroot}%{_datarootdir}/zsh_completion.d/_kubectl +mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions/ +%{buildroot}/%{_bindir}/%{name} completion zsh > %{buildroot}%{_datarootdir}/zsh/site-functions/_%{name} +%{buildroot}/%{_bindir}/kubectl completion zsh > %{buildroot}%{_datarootdir}/zsh/site-functions/_kubectl %check @@ -138,19 +145,14 @@ %{_mandir}/man1/oc* %files -n %{name}-bash-completion -%dir %{_datarootdir}/bash-completion/completions/ %{_datarootdir}/bash-completion/completions/%{name} %{_datarootdir}/bash-completion/completions/kubectl %files -n %{name}-fish-completion -%dir %{_datarootdir}/fish -%dir %{_datarootdir}/fish/vendor_completions.d %{_datarootdir}/fish/vendor_completions.d/%{name}.fish %{_datarootdir}/fish/vendor_completions.d/kubectl.fish %files -n %{name}-zsh-completion -%defattr(-,root,root) -%dir %{_datarootdir}/zsh_completion.d/ -%{_datarootdir}/zsh_completion.d/_%{name} -%{_datarootdir}/zsh_completion.d/_kubectl +%{_datarootdir}/zsh/site-functions/_%{name} +%{_datarootdir}/zsh/site-functions/_kubectl ++++++ _service ++++++ --- /var/tmp/diff_new_pack.TcDCCT/_old 2025-02-26 17:16:57.799295205 +0100 +++ /var/tmp/diff_new_pack.TcDCCT/_new 2025-02-26 17:16:57.823296210 +0100 @@ -3,10 +3,10 @@ <param name="url">https://github.com/openshift/oc</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">openshift-clients-4.17.0-202409111134</param> + <param name="revision">openshift-clients-v4.18.0-202502040032</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">enable</param> - <param name="versionrewrite-pattern">openshift-clients-(.*)-20..........</param> + <param name="versionrewrite-pattern">openshift-clients-v(.*)-20..........</param> </service> <service name="set_version" mode="manual"> </service> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.TcDCCT/_old 2025-02-26 17:16:57.999303580 +0100 +++ /var/tmp/diff_new_pack.TcDCCT/_new 2025-02-26 17:16:58.023304585 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/openshift/oc</param> - <param name="changesrevision">bc58b3a9c70cee7b03d1943e95b48ced9357711b</param></service></servicedata> + <param name="changesrevision">a50d4c0e41a6eff7aafe21dbe564359a0b622bb1</param></service></servicedata> (No newline at EOF) ++++++ oc-4.17.0.obscpio -> oc-4.18.0.obscpio ++++++ ++++ 341988 lines of diff (skipped) ++++++ oc.obsinfo ++++++ --- /var/tmp/diff_new_pack.TcDCCT/_old 2025-02-26 17:17:07.103684768 +0100 +++ /var/tmp/diff_new_pack.TcDCCT/_new 2025-02-26 17:17:07.111685104 +0100 @@ -1,5 +1,5 @@ name: oc -version: 4.17.0 -mtime: 1726046203 -commit: bc58b3a9c70cee7b03d1943e95b48ced9357711b +version: 4.18.0 +mtime: 1738624672 +commit: a50d4c0e41a6eff7aafe21dbe564359a0b622bb1 ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/oc/vendor.tar.gz /work/SRC/openSUSE:Factory/.oc.new.1873/vendor.tar.gz differ: char 5, line 1