#!/bin/bash

export KUBECONFIG=$1

kubectl wait node --for=condition=ready --all --timeout=60s

kubectl -n imxc patch sa default -p '{"imagePullSecrets": [{"name": "regcred"}]}'
kubectl -n default patch sa default -p '{"imagePullSecrets": [{"name": "regcred"}]}'
