-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SUSE Update Bot
committed
Dec 10, 2024
1 parent
c82aa5a
commit 5b33027
Showing
5 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Copyright (c) 2024 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 content of THIS FILE IS AUTOGENERATED and should not be manually modified. | ||
# It is maintained by the BCI team and generated by | ||
# https://github.com/SUSE/BCI-dockerfile-generator | ||
|
||
# Please submit bugfixes or comments via https://bugs.opensuse.org/ | ||
# You can contact the BCI team via https://github.com/SUSE/bci/discussions | ||
|
||
#!UseOBSRepositories | ||
|
||
#!BuildTag: suse/kubectl:%%kubectl_version%%-%RELEASE% | ||
#!BuildTag: suse/kubectl:%%kubectl_version%% | ||
#!BuildTag: suse/kubectl:1.28 | ||
#!BuildTag: suse/kubectl:1 | ||
#!BuildTag: suse/kubectl:latest | ||
#!BuildName: suse-kubectl-1.28 | ||
#!BuildVersion: 15.6.1.28 | ||
#!BuildRelease: 0 | ||
FROM registry.suse.com/bci/bci-micro:15.6 AS target | ||
FROM suse/sle15:15.6 AS builder | ||
COPY --from=target / /target | ||
|
||
RUN set -euo pipefail; \ | ||
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.28-client; \ | ||
zypper -n clean; \ | ||
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} | ||
FROM registry.suse.com/bci/bci-micro:15.6 | ||
COPY --from=builder /target / | ||
# Define labels according to https://en.opensuse.org/Building_derived_containers | ||
# labelprefix=com.suse.application.kubectl | ||
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions" | ||
LABEL org.opencontainers.image.title="SLE kubectl" | ||
LABEL org.opencontainers.image.description="Kuberneted CLI for communicating with a Kubernetes cluster's control plane, using the Kubernetes API." | ||
LABEL org.opencontainers.image.version="%%kubectl_version%%" | ||
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/" | ||
LABEL org.opencontainers.image.created="%BUILDTIME%" | ||
LABEL org.opencontainers.image.vendor="SUSE LLC" | ||
LABEL org.opencontainers.image.source="%SOURCEURL%" | ||
LABEL org.opencontainers.image.ref.name="%%kubectl_version%%-%RELEASE%" | ||
LABEL org.opensuse.reference="registry.suse.com/suse/kubectl:%%kubectl_version%%-%RELEASE%" | ||
LABEL org.openbuildservice.disturl="%DISTURL%" | ||
LABEL com.suse.supportlevel="l3" | ||
LABEL com.suse.eula="sle-eula" | ||
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15" | ||
LABEL com.suse.release-stage="released" | ||
# endlabelprefix | ||
LABEL org.opencontainers.image.base.name="%BASE_REFNAME%" | ||
LABEL org.opencontainers.image.base.digest="%BASE_DIGEST%" | ||
LABEL io.artifacthub.package.readme-url="%SOURCEURL%/README.md" | ||
LABEL io.artifacthub.package.logo-url="https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png" | ||
ENTRYPOINT ["kubectl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# kubectl Container Image | ||
|
||
[![SLSA](https://img.shields.io/badge/SLSA_(v1.0)-Build_L3-Green)](https://documentation.suse.com/sbp/server-linux/html/SBP-SLSA4/) | ||
[![Provenance: Available](https://img.shields.io/badge/Provenance-Available-Green)](https://documentation.suse.com/container/all/html/Container-guide/index.html#container-verify) | ||
|
||
Kubectl is a command line tool for communicating with a Kubernetes cluster's control plane, using the Kubernetes API. | ||
|
||
## How to use this Container Image | ||
|
||
To run commands inside the container for the current k8s cluster for which the kubeconfig is available in `/root/.kube.config`: | ||
|
||
```ShellSession | ||
podman run --rm --name kubectl\ | ||
registry.suse.com/suse/kubectl:1.28 get nodes | ||
``` | ||
|
||
To pass configuration of a remote k8s cluster to the container: | ||
|
||
```ShellSession | ||
podman run --rm --name kubectl\ | ||
-v /localpath/to/kubeconfig:/root/.kube/config:Z | ||
registry.suse.com/suse/kubectl:1.28 get nodes | ||
``` | ||
|
||
## Licensing | ||
|
||
`SPDX-License-Identifier: Apache-2.0` | ||
|
||
This documentation and the build recipe are licensed as Apache-2.0. | ||
The container itself contains various software components under various open source licenses listed in the associated | ||
Software Bill of Materials (SBOM). | ||
|
||
This image is based on [SUSE Linux Enterprise Server](https://www.suse.com/products/server/), a reliable, | ||
secure, and scalable server operating system built to power mission-critical workloads in physical and virtual environments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<services> | ||
<service mode="buildtime" name="docker_label_helper"/> | ||
<service mode="buildtime" name="kiwi_metainfo_helper"/> | ||
<service mode="buildtime" name="replace_using_package_version"> | ||
<param name="file">Dockerfile</param> | ||
<param name="regex">%%kubectl_version%%</param> | ||
<param name="package">kubernetes1.28-client</param> | ||
<param name="parse-version">patch</param> | ||
</service> | ||
</services> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
------------------------------------------------------------------- | ||
Tue Dec 10 09:16:58 UTC 2024 - SUSE Update Bot <[email protected]> | ||
|
||
- First version of the kubectl BCI |