Skip to content

Latest commit

 

History

History
executable file
·
91 lines (77 loc) · 3.56 KB

README.md

File metadata and controls

executable file
·
91 lines (77 loc) · 3.56 KB

Koffer Collector | Operators

Koffer Collector OLM Operators Plugin leverages the Koffer Engine runtime container to enable streamlined low side enumeration and capture of all required artifacts for deploying OpenShift Operator Hub and supported disconnected operators. Primarily built to enable airgaped environments in a standard registry < to > mirror workflow model conventional to more typical connected local mirror techniques.

Features:

  • Low side injestion direct to "pre-hydrated" registry stateful path
  • High side sha256 verification of artifacts bundle before standup
  • High side artifacts served via generic docker registry container

Capabilities:

  • Build custom operator catalog index images
  • Generate imageContentSourcePolicy yaml definitions
  • Generate raw list of operator set image dependencies (mirror.list)
  • Build offline carry bundle for quarantine / airgap travel
  • Mirror images direct to accessible docker v2 compliant registry
  • CloudCtl ready bundle of artifacts

Getting Started:

1. Local run requirements

  • RHEL8, Fedora 33+, or CoreOS 3.6.8+
  • Packages:
    • podman 1.9+
    • fuse-overlayfs
  • A minimum of 32GB free storage
  • sudo privileges for nested container build support

2. Run Koffer Engine with Remote Config

mkdir ${HOME}/bundle; \
sudo podman run -it --rm --pull always \
    --privileged --device /dev/fuse \
    --volume ${HOME}/bundle:/root/bundle:z \
  quay.io/cloudctl/koffer:v00.21.0221-extra bundle \
    --config https://git.io/Jt5uF

3. Check Bundle

 du -sh ${HOME}/bundle/koffer-bundle.operators-*.tar;

4. Unpack the bundle

  • Copy the bundle to the restricted side deployment node
  • NOTE: sha256sum checking requires correct paths & may take a while for large bundles
 cd ${HOME}/bundle;
 echo "$(cat koffer-bundle.operators-*.tar.sha256)" | sha256sum --check --status;
 sudo tar -xvf ${HOME}/bundle/koffer-bundle.operators-*.tar -C /root;

5. Operators are ready to deploy via CloudCtl - Trusted Platform Delivery Kit

  • Modify the mainfests
cd /root/platform/mirror/manifests/redhat-catalog-index-manifests
sed -i 's/localhost/registry.$(vpc_name).$(name_domain)/g' *
  • Apply the mainfests
podman exec -it konductor connect
oc patch OperatorHub cluster --type json -p '[{"op": "add", "path": "/spec/disableAllDefaultSources", "value": true}]'

oc apply -f /root/platform/mirror/manifests/redhat-catalog-index-manifests/olm-icsp.yaml 
oc apply -f /root/platform/mirror/manifests/redhat-catalog-index-manifests/rh-catalog-source.yaml

Roadmap

  • Adopt OPM utility
  • Adopt koffer.yml declarative artifact gather
  • Support redhat, marketplace, certified, and community operator catalogs
  • Publish as part of Ansible Galaxy CodeSparta Collection
  • Rewrite python OPM wrapper as ansible module with deprication plan
  • Automate bundle upload & image availability via ShipperD Operator

References

Special Credit: