Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

Use k8s client library #188

Closed
Closed

Description

@aweiteka

We need to extend our custom client to sign images from inside a build pod:

  • Use env vars KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT
  • Use token from /var/run/secrets/kubernetes.io/serviceaccount/token
  • Use CA from /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
  • Use namespace /var/run/secrets/kubernetes.io/serviceaccount/namespace

Our openshift client is a custom client. It would be much better to use the upstream k8s client. This shouldn't significantly increase the size of the project.

Activity

  1. mtrmac commented on Jan 7, 2017

    @mtrmac
    Collaborator

    I would dearly love to get rid of those 1000 lines; but using the OpenShift client did increase the size of the binary, by at least 50 MB if I remember correctly.

    (That was an OpenShift client, using the OpenShift object types for the images etc, not a k8s client, though; perhaps that is something else entirely. It has also been more than 6 months since the original work, things might have changed.)

  2. aweiteka commented on Jan 12, 2017

    @aweiteka
    ContributorAuthor

    Basic testing looks like using the k8s go-client adds 45MB.

    $ ls -lh skopeo
    -rwxr-xr-x. 1 root root 18M Jan 12 15:19 skopeo
    $ ls -lh skopeo.kubeclient
    -rwxr-xr-x. 1 root root 63M Jan 12 15:17 skopeo.kubeclient
    
  3. added a commit that references this issue on Jan 24, 2017
  4. rhatdan commented on Apr 25, 2019

    @rhatdan
    Member

    @aweiteka @mtrmac @vrothberg What is the state of this issue. It is two years old, can we close it?

  5. vrothberg commented on Apr 25, 2019

    @vrothberg
    Member

    Let's close it. Feel free to reopen if the issue gets revived.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions