How to install HyperShift with a custom image

  1. Build and push a custom image build to your own repository.

    1
    2
    3
    4
      export QUAY_ACCOUNT=example
    
      make build
      make RUNTIME=podman IMG=quay.io/${QUAY_ACCOUNT}/hypershift:latest docker-build docker-push
    
  2. Install HyperShift using the custom image:

    1
    2
    3
    4
    5
      hypershift install \
        --oidc-storage-provider-s3-bucket-name $BUCKET_NAME \
        --oidc-storage-provider-s3-credentials $AWS_CREDS \
        --oidc-storage-provider-s3-region $REGION \
        --hypershift-image quay.io/${QUAY_ACCOUNT}/hypershift:latest \
    
  3. (Optional) If your repository is private, create a secret:

      oc create secret --namespace hypershift generic hypershift-operator-pull-secret \
        --from-file=.dockerconfig=/my/pull-secret --type=kubernetes.io/dockerconfig
    

    Then update the operator ServiceAccount in the hypershift namespace:

      oc patch serviceaccount --namespace hypershift operator \
        -p '{"imagePullSecrets": [{"name": "hypershift-operator-pull-secret"}]}'