What problem does it solve?
Automates creation of Kubernetes Secret and ServiceAccount manifests that store docker-registry authentication, removing manual manifest authoring and ensuring CI/CD pipelines can authenticate to container registries.
Core Features & Use Cases
- Generate dockerconfigjson: Build a valid docker config JSON from a registry host, username, and password and encode it in base64.
- Create Secret manifest: Produce a Kubernetes Secret of the dockerconfigjson type with appropriate annotations for the registry host.
- Create ServiceAccount manifest: Produce a ServiceAccount that references the created Secret so build systems can use the credentials.
- Use Case: Useful for Tekton or other CI systems that need registry credentials for image push or pull operations in automated pipelines.
Quick Start
Generate a Kubernetes docker-registry Secret named registry-credentials for host https://index.docker.io/v1/ with username USER and password PASS and output the Secret and ServiceAccount manifests into separate YAML files.