Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubectl container image added #2060

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

rcmadhankumar
Copy link
Contributor

No description provided.

dcermak pushed a commit that referenced this pull request Nov 26, 2024
Copy link

github-actions bot commented Nov 26, 2024

Created a staging project on OBS for Tumbleweed: home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-2060
Changes pushed to branch Tumbleweed-2060 as commit 46b15ab52f71a1792b687b9c562cf2991fc42f97
Build succeeded ✅

Build Results

Repository images in home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-2060 for x86_64: current state: published
Build results:

package name status build log
kubectl-image ⛔ excluded live log

Repository images in home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-2060 for aarch64: current state: published
Build results:

package name status build log
kubectl-image ⛔ excluded live log

Repository containerfile in home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-2060 for x86_64: current state: published
Build results:

package name status build log
kubectl-image ✅ succeeded live log

Repository containerfile in home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-2060 for aarch64: current state: published
Build results:

package name status build log
kubectl-image ✅ succeeded live log

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=tumbleweed TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-2060/ tox -- -n auto
The following images can be pulled from the staging project:
  • registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-2060/containerfile/opensuse/kubectl:latest

Comment on lines +12 to +13
for os_version in KUBECTL_SUPPORTED_OS_VERSIONS:
KUBECTL_CONTAINERS.append(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coding style nit: in most other containers we use the list comprehension style, e.g.

KUBECTL_CONTAINERS = [
  ApplicationStackContainer(....)
  for os_version in (OsVersion.TUMBLEWEED,)
]

instead of for/append.

ApplicationStackContainer(
name="kubectl",
os_version=os_version,
version=get_pkg_version("kubernetes", os_version),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make this a placeholder so that not every version update is triggering a git commit.

os_version=os_version,
version=get_pkg_version("kubernetes", os_version),
license="MPL-2.0",
is_latest=True,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only in "os_version in CAN_BE_LATEST_OS_VERSION"

maybe you could simply copy&paste https://github.com/SUSE/BCI-dockerfile-generator/blob/main/src/bci_build/package/cosign.py and simply search and replace "cosign" with "kubernetes-client" to get started?

version=get_pkg_version("kubernetes", os_version),
license="MPL-2.0",
is_latest=True,
pretty_name="Kubectl Client",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a multistage missing, e.g. from_target_image.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not strictly necessary, building on base is fine

is_latest=True,
pretty_name="Kubectl Client",
package_list=["kubernetes-client"],
entrypoint=["kubectl"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logo_url?

Copy link
Member

@dirkmueller dirkmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see inline comments

dcermak pushed a commit that referenced this pull request Nov 26, 2024
Comment on lines +8 to +10
KUBECTL_SUPPORTED_OS_VERSIONS = [
OsVersion.TUMBLEWEED,
]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We ship kubernetes-client in SLES as well:

Suggested change
KUBECTL_SUPPORTED_OS_VERSIONS = [
OsVersion.TUMBLEWEED,
]
from bci_build.os_version import ALL_NONBASE_OS_VERSIONS
KUBECTL_SUPPORTED_OS_VERSIONS = ALL_NONBASE_OS_VERSIONS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants