From 9ff2fc03b9265287c2e3770de1313ad9e86e2c7e3a0229ab4bc0362b0ca7ffcc Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Fri, 15 Nov 2024 16:09:04 +0000 Subject: [PATCH] Remove cluster-api core package/image Since #16 this is replaced by an alternate downstream image: registry.rancher.com/rancher/cluster-api-controller --- .obs/workflows.yml | 8 ---- cluster-api-controller-image/Dockerfile | 36 ----------------- cluster-api-controller-image/_service | 19 --------- cluster-api/_service | 23 ----------- cluster-api/cluster-api.spec | 51 ------------------------- 5 files changed, 137 deletions(-) delete mode 100644 cluster-api-controller-image/Dockerfile delete mode 100644 cluster-api-controller-image/_service delete mode 100644 cluster-api/_service delete mode 100644 cluster-api/cluster-api.spec diff --git a/.obs/workflows.yml b/.obs/workflows.yml index 5e1ed97..e2ec3b4 100644 --- a/.obs/workflows.yml +++ b/.obs/workflows.yml @@ -66,10 +66,6 @@ staging_build: source_package: frr-k8s source_project: isv:SUSE:Edge:Factory target_project: isv:SUSE:Edge:Factory:Staging - - branch_package: - source_package: cluster-api - source_project: isv:SUSE:Edge:Factory - target_project: isv:SUSE:Edge:Factory:Staging - branch_package: source_package: cluster-api-operator source_project: isv:SUSE:Edge:Factory @@ -122,10 +118,6 @@ staging_build: source_package: cdi-chart source_project: isv:SUSE:Edge:Factory target_project: isv:SUSE:Edge:Factory:Staging - - branch_package: - source_package: cluster-api-controller-image - source_project: isv:SUSE:Edge:Factory - target_project: isv:SUSE:Edge:Factory:Staging - branch_package: source_package: cluster-api-provider-metal3-image source_project: isv:SUSE:Edge:Factory diff --git a/cluster-api-controller-image/Dockerfile b/cluster-api-controller-image/Dockerfile deleted file mode 100644 index 8363552..0000000 --- a/cluster-api-controller-image/Dockerfile +++ /dev/null @@ -1,36 +0,0 @@ -# SPDX-License-Identifier: Apache-2.0 -#!BuildTag: %%IMG_PREFIX%%cluster-api-controller:v%%cluster-api_version%% -#!BuildTag: %%IMG_PREFIX%%cluster-api-controller:%%cluster-api_version%% -#!BuildTag: %%IMG_PREFIX%%cluster-api-controller:%%cluster-api_version%%-%RELEASE% -#!BuildVersion: 15.6 -ARG SLE_VERSION -FROM registry.suse.com/bci/bci-micro:$SLE_VERSION AS micro - -FROM registry.suse.com/bci/bci-base:$SLE_VERSION AS base -COPY --from=micro / /installroot/ -RUN zypper --installroot /installroot --non-interactive install --no-recommends cluster-api shadow; zypper -n clean; rm -rf /var/log/* - -FROM micro AS final -# Define labels according to https://en.opensuse.org/Building_derived_containers -# labelprefix=com.suse.application.cluster-api -LABEL org.opencontainers.image.authors="SUSE LLC (https://www.suse.com/)" -LABEL org.opencontainers.image.title="SLE cluster-api Container Image" -LABEL org.opencontainers.image.description="cluster-api based on the SLE Base Container Image." -LABEL org.opencontainers.image.version="%%cluster-api_version%%" -LABEL org.opencontainers.image.url="https://www.suse.com/products/server/" -LABEL org.opencontainers.image.created="%BUILDTIME%" -LABEL org.opencontainers.image.vendor="SUSE LLC" -LABEL org.opensuse.reference="%%IMG_REPO%%/%%IMG_PREFIX%%cluster-api:%%cluster-api_version%%-%RELEASE%" -LABEL org.openbuildservice.disturl="%DISTURL%" -LABEL com.suse.supportlevel="%%SUPPORT_LEVEL%%" -LABEL com.suse.eula="SUSE Combined EULA February 2024" -LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle" -LABEL com.suse.image-type="application" -LABEL com.suse.release-stage="released" -# endlabelprefix - -COPY --from=base /installroot / -RUN mv /usr/bin/cluster-api-controller /manager -# Use uid of nonroot user (65532) because kubernetes expects numeric user when applying pod security policies -USER 65532 -ENTRYPOINT [ "/manager" ] diff --git a/cluster-api-controller-image/_service b/cluster-api-controller-image/_service deleted file mode 100644 index fa2c067..0000000 --- a/cluster-api-controller-image/_service +++ /dev/null @@ -1,19 +0,0 @@ - - - - - Dockerfile - %%cluster-api_version%% - cluster-api - patch - - - Dockerfile - IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %{?img_prefix}) - IMG_PREFIX - IMG_REPO=$(rpm --macros=/root/.rpmmacros -E %img_repo) - IMG_REPO - SUPPORT_LEVEL=$(rpm --macros=/root/.rpmmacros -E %support_level) - SUPPORT_LEVEL - - diff --git a/cluster-api/_service b/cluster-api/_service deleted file mode 100644 index 7359647..0000000 --- a/cluster-api/_service +++ /dev/null @@ -1,23 +0,0 @@ - - - https://github.com/kubernetes-sigs/cluster-api - git - v1.8.4 - _auto_ - @PARENT_TAG@ - enable - steven.hardy@suse.com - v* - v(\d+\.\d+\.\d+) - yes - \1 - - - - *.tar - gz - - - - - diff --git a/cluster-api/cluster-api.spec b/cluster-api/cluster-api.spec deleted file mode 100644 index ac5383c..0000000 --- a/cluster-api/cluster-api.spec +++ /dev/null @@ -1,51 +0,0 @@ -# -# spec file for package cluster-api -# -# Copyright (c) 2023 SUSE LLC -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via https://bugs.opensuse.org/ -# - - -Name: cluster-api -Version: 1.8.4 -Release: 0 -Summary: Cluster API Core Controller -License: Apache-2.0 -URL: https://github.com/kubernetes-sigs/cluster-api -Source: cluster-api-%{version}.tar.gz -Source1: vendor.tar.gz -BuildRequires: golang(API) = 1.22 -ExcludeArch: s390 -ExcludeArch: %{ix86} - -%description - -Cluster API core controller - -%prep -%autosetup -a1 -n cluster-api-%{version} - -%build -go build \ - -mod=vendor \ - -buildmode=pie \ - -%install -install -D -m0755 cluster-api %{buildroot}%{_bindir}/cluster-api-controller - -%files -%license LICENSE -%doc README.md -%{_bindir}/cluster-api-controller - -%changelog