Kubernetes Credentials

Jenkins Plugin Coverage Status Jenkins Plugin installs

Contains classes shared between the Kubernetes Plugin and the Kubernetes CLI Plugin:

  • an OpenShift username/password credentials that can fetch a valid Kubernetes token when needed
  • an OpenShift secret credentials, which is meant to hold a Kubernetes token

Those credentials are available through the UI and in pipelines. Also provides the implementation of various kinds of Kubernetes authentication, for example via kubeconfig files.

Prerequisites

  • A jenkins installation running version 2.387.3 or higher (with jdk11 or jdk17).

Building and Testing

To build the extension, run:

mvn clean package

and upload target/kubernetes-credentials.hpi to your Jenkins installation.

To run the tests:

mvn clean test

Releasing

mvn release:prepare release:perform