Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.
 
 

Repository files navigation

Registry Puller Webhook

This repository contains code for a webhook which monitors the creation of ServiceAccounts within kubernetes namespaces and modifies those ServiceAccounts so they include an additional image pull secret. This is of use when trying to deploy containers referencing private repos.

Running the webhook

The following steps will install the webhook into an existing OpenShift deployment, instructions for kubernetes will be similar

  • download your secret and create a file called secret.yaml
  • make
  • oc new-project registry-puller
  • oc create configmap -n registry-puller registry-secret --from-file=secret.yaml

For OpenShift 3.11 execute

  • oc create -f registry-puller-3.11.yaml

For OpenShift 4.0 execute

  • oc create -f registry-puller-4.0.yaml

About

webhook for automatically attaching a pull secret to service accounts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages