forked from suse-edge/Factory
		
	Compare commits
	
		
			10 Commits
		
	
	
		
			supportlvl
			...
			kube-rbac-
		
	
	| Author | SHA256 | Date | |
|---|---|---|---|
| 
						
						
							
						
						ff0e5f2b33
	
				 | 
					
					
						|||
| cf76ed917b | |||
| 
						
						
							
						
						eee07009bb
	
				 | 
					
					
						|||
| 
						
						
							
						
						a52af83ddd
	
				 | 
					
					
						|||
| 1492cfce52 | |||
| f3728884d9 | |||
| 8549134ddf | |||
| eae86c9ade | |||
| 39722e23e7 | |||
| 85c7658ab0 | 
@@ -194,3 +194,39 @@ staging_build:
 | 
			
		||||
      source_package: ironic-image
 | 
			
		||||
      source_project: isv:SUSE:Edge:Factory
 | 
			
		||||
      target_project: isv:SUSE:Edge:Factory:Staging
 | 
			
		||||
  - branch_package:
 | 
			
		||||
      source_package: cri-tools
 | 
			
		||||
      source_project: isv:SUSE:Edge:Factory
 | 
			
		||||
      target_project: isv:SUSE:Edge:Factory:Staging
 | 
			
		||||
  - branch_package:
 | 
			
		||||
      source_package: openstack-ironic-image
 | 
			
		||||
      source_project: isv:SUSE:Edge:Factory
 | 
			
		||||
      target_project: isv:SUSE:Edge:Factory:Staging
 | 
			
		||||
  - branch_package:
 | 
			
		||||
      source_package: crudini
 | 
			
		||||
      source_project: isv:SUSE:Edge:Factory
 | 
			
		||||
      target_project: isv:SUSE:Edge:Factory:Staging
 | 
			
		||||
  - branch_package:
 | 
			
		||||
      source_package: fakeroot
 | 
			
		||||
      source_project: isv:SUSE:Edge:Factory
 | 
			
		||||
      target_project: isv:SUSE:Edge:Factory:Staging
 | 
			
		||||
  - branch_package:
 | 
			
		||||
      source_package: ipcalc
 | 
			
		||||
      source_project: isv:SUSE:Edge:Factory
 | 
			
		||||
      target_project: isv:SUSE:Edge:Factory:Staging
 | 
			
		||||
  - branch_package:
 | 
			
		||||
      source_package: autoconf
 | 
			
		||||
      source_project: isv:SUSE:Edge:Factory
 | 
			
		||||
      target_project: isv:SUSE:Edge:Factory:Staging
 | 
			
		||||
  - branch_package:
 | 
			
		||||
      source_package: rancher-turtles-airgap-resources-chart
 | 
			
		||||
      source_project: isv:SUSE:Edge:Factory
 | 
			
		||||
      target_project: isv:SUSE:Edge:Factory:Staging
 | 
			
		||||
  - branch_package:
 | 
			
		||||
      source_package: rancher-turtles-chart
 | 
			
		||||
      source_project: isv:SUSE:Edge:Factory
 | 
			
		||||
      target_project: isv:SUSE:Edge:Factory:Staging
 | 
			
		||||
  - branch_package:
 | 
			
		||||
      source_package: kube-rbac-proxy-image
 | 
			
		||||
      source_project: isv:SUSE:Edge:Factory
 | 
			
		||||
      target_project: isv:SUSE:Edge:Factory:Staging
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										23
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								README.md
									
									
									
									
									
								
							@@ -13,3 +13,26 @@ Then run the `.obs/add_package.py` script to create the package in the OBS proje
 | 
			
		||||
This script is using the `osc` command behind the scenes, so ensure you have it installed and correctly configured, as well as you have the correct permissions to create a new package in the project.
 | 
			
		||||
 | 
			
		||||
You will then get asked to push your changes.
 | 
			
		||||
 | 
			
		||||
## Testing a fork or a development branch
 | 
			
		||||
 | 
			
		||||
You can create a project in your home space in OBS, use the same prjconf as the one of "isv:SUSE:Edge:Factory", and copy the repositories part of the metadata (adjust self references).
 | 
			
		||||
Then add a scmsync stanza to your metadata like this (adjust repository path and branch):
 | 
			
		||||
 | 
			
		||||
```xml
 | 
			
		||||
<scmsync>https://src.opensuse.org/suse-edge/Factory#main</scmsync>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Cutting a release version branch
 | 
			
		||||
 | 
			
		||||
1. Do the appropriate git branch command
 | 
			
		||||
2. Change the project path in `.obs/common.py` file (e.g. from `isv:SUSE:Edge:Factory` to `isv:SUSE:Edge:3.2`)
 | 
			
		||||
3. Change the branch reference in `.obs/common.py` file (e.g. from `main` to `3.2`)
 | 
			
		||||
4. Edit the `.obs/workflows.yml` file to change the references to the correct projects
 | 
			
		||||
5. Commit those changes to the new branch and push the new branch
 | 
			
		||||
6. Create the base and to-test projects (e.g. `isv:SUSE:Edge:3.2` and `isv:SUSE:Edge:3.2:ToTest`), use the `isv:SUSE:Edge:Factory` projects as example for metadata part
 | 
			
		||||
7. Use the prjconf of Factory in all those projects
 | 
			
		||||
8. Run the `.obs/sync_packages.py` script to create all the packages in the base project
 | 
			
		||||
9. Go take a few cups of coffee/tea/mate/... while waiting for OBS to build everything
 | 
			
		||||
10. Once built do an `osc release` of the project for it to be copied over in the `ToTest` section
 | 
			
		||||
11. Hand over to QA to test whatever is in `ToTest`. (You can continue to work on the base branch if needed meanwhile)
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ License:        Apache-2.0
 | 
			
		||||
URL:            https://github.com/metal3-io/cluster-api-provider-metal3
 | 
			
		||||
Source:         cluster-api-provider-metal3-%{version}.tar.gz
 | 
			
		||||
Source1:        vendor.tar.gz
 | 
			
		||||
BuildRequires:  golang(API) = 1.21
 | 
			
		||||
BuildRequires:  golang(API) = 1.22
 | 
			
		||||
ExcludeArch:    s390
 | 
			
		||||
ExcludeArch:    %{ix86}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ License:        Apache-2.0
 | 
			
		||||
URL:            https://github.com/rancher-sandbox/cluster-api-provider-rke2
 | 
			
		||||
Source:         cluster-api-provider-rke2-%{version}.tar.gz
 | 
			
		||||
Source1:        vendor.tar.gz
 | 
			
		||||
BuildRequires:  golang(API) = 1.21
 | 
			
		||||
BuildRequires:  golang(API) = 1.22
 | 
			
		||||
ExcludeArch:    s390
 | 
			
		||||
ExcludeArch:    %{ix86}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ 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.21
 | 
			
		||||
BuildRequires:  golang(API) = 1.22
 | 
			
		||||
ExcludeArch:    s390
 | 
			
		||||
ExcludeArch:    %{ix86}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ License:        Apache-2.0
 | 
			
		||||
URL:            https://github.com/metal3-io/ip-address-manager
 | 
			
		||||
Source:         ip-address-manager-%{version}.tar.gz
 | 
			
		||||
Source1:        vendor.tar.gz
 | 
			
		||||
BuildRequires:  golang(API) = 1.21
 | 
			
		||||
BuildRequires:  golang(API) = 1.22
 | 
			
		||||
ExcludeArch:    s390
 | 
			
		||||
ExcludeArch:    %{ix86}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										35
									
								
								kube-rbac-proxy-image/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								kube-rbac-proxy-image/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
# SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
#!BuildTag: %%IMG_PREFIX%%kube-rbac-proxy:%%kube-rbac-proxy_version%%
 | 
			
		||||
#!BuildTag: %%IMG_PREFIX%%kube-rbac-proxy:%%kube-rbac-proxy_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 kube-rbac-proxy; 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.kube-rbac-proxy
 | 
			
		||||
LABEL org.opencontainers.image.authors="SUSE LLC (https://www.suse.com/)"
 | 
			
		||||
LABEL org.opencontainers.image.title="SLE kube-rbac-proxy Container Image"
 | 
			
		||||
LABEL org.opencontainers.image.description="kube-rbac-proxy based on the SLE Base Container Image."
 | 
			
		||||
LABEL org.opencontainers.image.version="%%kube-rbac-proxy_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%%kube-rbac-proxy:%%kube-rbac-proxy_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 /
 | 
			
		||||
#Install kube-rbac-proxy
 | 
			
		||||
EXPOSE 8080
 | 
			
		||||
USER 65532:65532
 | 
			
		||||
ENTRYPOINT ["/kube-rbac-proxy"]
 | 
			
		||||
							
								
								
									
										19
									
								
								kube-rbac-proxy-image/_service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								kube-rbac-proxy-image/_service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
<services>
 | 
			
		||||
  <service mode="buildtime" name="kiwi_metainfo_helper"/>
 | 
			
		||||
  <service mode="buildtime" name="docker_label_helper"/>
 | 
			
		||||
  <service name="replace_using_package_version" mode="buildtime">
 | 
			
		||||
    <param name="file">Dockerfile</param>
 | 
			
		||||
    <param name="regex">%%kube-rbac-proxy_version%%</param>
 | 
			
		||||
    <param name="package">kube-rbac-proxy</param>
 | 
			
		||||
    <param name="parse-version">patch</param>
 | 
			
		||||
  </service>
 | 
			
		||||
  <service name="replace_using_env" mode="buildtime">
 | 
			
		||||
    <param name="file">Dockerfile</param>
 | 
			
		||||
    <param name="eval">IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %{?img_prefix})</param>
 | 
			
		||||
    <param name="var">IMG_PREFIX</param>
 | 
			
		||||
    <param name="eval">IMG_REPO=$(rpm --macros=/root/.rpmmacros -E %img_repo)</param>
 | 
			
		||||
    <param name="var">IMG_REPO</param>
 | 
			
		||||
    <param name="eval">SUPPORT_LEVEL=$(rpm --macros=/root/.rpmmacros -E %support_level)</param>
 | 
			
		||||
    <param name="var">SUPPORT_LEVEL</param>
 | 
			
		||||
  </service>
 | 
			
		||||
</services>
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 <service name="obs_scm">
 | 
			
		||||
    <param name="url">https://github.com/brancz/kube-rbac-proxy</param>
 | 
			
		||||
    <param name="scm">git</param>
 | 
			
		||||
    <param name="revision">v0.18.0</param>
 | 
			
		||||
    <param name="revision">v0.18.1</param>
 | 
			
		||||
    <param name="version">_auto_</param>
 | 
			
		||||
    <param name="versionformat">@PARENT_TAG@</param>
 | 
			
		||||
    <param name="changesgenerate">enable</param>
 | 
			
		||||
 
 | 
			
		||||
@@ -17,14 +17,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Name:           kube-rbac-proxy
 | 
			
		||||
Version:        0.18.0
 | 
			
		||||
Release:        0.18.0
 | 
			
		||||
Version:        0.18.1
 | 
			
		||||
Release:        0.18.1
 | 
			
		||||
Summary:        The kube-rbac-proxy is a small HTTP proxy for a single upstream
 | 
			
		||||
License:        Apache-2.0
 | 
			
		||||
URL:            https://github.com/brancz/kube-rbac-proxy
 | 
			
		||||
Source:         kube-rbac-proxy-%{version}.tar.gz
 | 
			
		||||
Source1:        vendor.tar.gz
 | 
			
		||||
BuildRequires:  golang(API) = 1.22
 | 
			
		||||
BuildRequires:  golang(API) = 1.23
 | 
			
		||||
ExcludeArch:    s390
 | 
			
		||||
ExcludeArch:    %{ix86}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -59,7 +59,7 @@ prometheus:
 | 
			
		||||
  # the image to be used for the kuberbacproxy container
 | 
			
		||||
  rbacProxy:
 | 
			
		||||
    repository: "%%IMG_REPO%%/%%IMG_PREFIX%%kube-rbac-proxy"
 | 
			
		||||
    tag: "v0.18.0"
 | 
			
		||||
    tag: "0.18.1"
 | 
			
		||||
    pullPolicy: IfNotPresent
 | 
			
		||||
 | 
			
		||||
  # Prometheus Operator PodMonitors
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
  <service mode="buildtime" name="kiwi_metainfo_helper"/>
 | 
			
		||||
  <service name="replace_using_env" mode="buildtime">
 | 
			
		||||
    <param name="file">Chart.yaml</param>
 | 
			
		||||
    <param name="eval">IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %img_prefix)</param>
 | 
			
		||||
    <param name="eval">IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %{?img_prefix})</param>
 | 
			
		||||
    <param name="var">IMG_PREFIX</param>
 | 
			
		||||
  </service>
 | 
			
		||||
</services>
 | 
			
		||||
 
 | 
			
		||||
@@ -2,14 +2,14 @@
 | 
			
		||||
  <service mode="buildtime" name="kiwi_metainfo_helper"/>
 | 
			
		||||
  <service name="replace_using_env" mode="buildtime">
 | 
			
		||||
    <param name="file">values.yaml</param>
 | 
			
		||||
    <param name="eval">IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %img_prefix)</param>
 | 
			
		||||
    <param name="eval">IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %{?img_prefix})</param>
 | 
			
		||||
    <param name="var">IMG_PREFIX</param>
 | 
			
		||||
    <param name="eval">IMG_REPO=$(rpm --macros=/root/.rpmmacros -E %img_repo)</param>
 | 
			
		||||
    <param name="var">IMG_REPO</param>
 | 
			
		||||
  </service>
 | 
			
		||||
  <service name="replace_using_env" mode="buildtime">
 | 
			
		||||
    <param name="file">Chart.yaml</param>
 | 
			
		||||
    <param name="eval">IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %img_prefix)</param>
 | 
			
		||||
    <param name="eval">IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %{?img_prefix})</param>
 | 
			
		||||
    <param name="var">IMG_PREFIX</param>
 | 
			
		||||
  </service>
 | 
			
		||||
</services>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user