Skip to content

Commit

Permalink
error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven27 authored and Sven27 committed Dec 12, 2024
1 parent 5726418 commit f56d534
Showing 1 changed file with 133 additions and 111 deletions.
244 changes: 133 additions & 111 deletions emp/custom-registry/emp_image_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,117 +18,120 @@ set -eu
IMAGES=""
#Upstream Images
IMAGES="$IMAGES public.ecr.aws/platform9/calico/apiserver:master"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/kube-controllers:master"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/node:master"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/pod2daemon-flexvol:master"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/cni:master"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/typha:master"
IMAGES="$IMAGES public.ecr.aws/platform9/pause:3.6"
IMAGES="$IMAGES public.ecr.aws/platform9/tigera/operator:master"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/apiserver:v3.28.0"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/kube-controllers:v3.28.0"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/node:v3.28.0"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/pod2daemon-flexvol:v3.28.0"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/cni:v3.28.0"
IMAGES="$IMAGES public.ecr.aws/platform9/calico/typha:v3.28.0"
IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-importer:v1.59.1"
IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-cloner:v1.59.1"
IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-uploadserver:v1.59.1"
IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-apiserver:v1.59.1"
IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-controller:v1.59.1"
IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-operator:v1.59.1"
IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-uploadproxy:v1.59.1"
IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-controller:v1.15.0"
IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-cainjector:v1.15.0"
IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-webhook:v1.15.0"
IMAGES="$IMAGES public.ecr.aws/platform9/provider-aws/cloud-controller-manager:v1.27.1"
IMAGES="$IMAGES public.ecr.aws/platform9/coredns/coredns:v1.11.1"
IMAGES="$IMAGES public.ecr.aws/platform9/kas-network-proxy/proxy-agent:v0.0.32"
IMAGES="$IMAGES public.ecr.aws/platform9/metrics-server/metrics-server:v0.6.3"
IMAGES="$IMAGES public.ecr.aws/platform9/autoscaling/addon-resizer:1.8.14"
IMAGES="$IMAGES public.ecr.aws/platform9/kube-proxy:v1.26.6"
IMAGES="$IMAGES public.ecr.aws/platform9/envoyproxy/envoy:v1.26.1"
IMAGES="$IMAGES public.ecr.aws/platform9/platform9/virtvnc:v1"
IMAGES="$IMAGES public.ecr.aws/platform9/platform9/multus:v3.7.2-pmk-2644970"
IMAGES="$IMAGES public.ecr.aws/platform9/kubebuilder/kube-rbac-proxy:v0.11.0"
IMAGES="$IMAGES public.ecr.aws/platform9/platform9/luigi-plugins:v0.5.5"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-attacher:v4.5.0-eks-1-29-7"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-provisioner:v4.0.0-eks-1-29-7"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-resizer:v1.10.0-eks-1-29-7"
IMAGES="$IMAGES public.ecr.aws/platform9/ebs-csi-driver/aws-ebs-csi-driver:v1.29.1"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/livenessprobe:v2.12.0-eks-1-29-7"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/node-driver-registrar:v2.10.0-eks-1-29-7"
IMAGES="$IMAGES public.ecr.aws/platform9/amazon/aws-efs-csi-driver:v1.5.5"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/livenessprobe:v2.9.0-eks-1-27-latest"
IMAGES="$IMAGES public.ecr.aws/platform9/kube-state-metrics/kube-state-metrics:v2.12.0"
IMAGES="$IMAGES public.ecr.aws/platform9/prometheus/node-exporter:v1.8.0"
IMAGES="$IMAGES public.ecr.aws/platform9/prometheus/prometheus:v2.52.0"
IMAGES="$IMAGES public.ecr.aws/platform9/prometheus-operator/prometheus-config-reloader:v0.73.2"
IMAGES="$IMAGES public.ecr.aws/platform9/grafana/promtail:2.9.3"
IMAGES="$IMAGES public.ecr.aws/platform9/tigera/operator:v1.34.0"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-provisioner:v3.4.0-eks-1-27-latest"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/node-driver-registrar:v2.7.0-eks-1-27-latest"
IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-controller:v1.14.4"
IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-webhook:v1.14.4"
IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-cainjector:v1.14.4"
IMAGES="$IMAGES public.ecr.aws/platform9/pause:3.1"
IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-apiserver:v1.59.1"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-provisioner:v3.4.0-eks-1-27-latest"
IMAGES="$IMAGES public.ecr.aws/platform9/sig-storage/snapshot-controller:v8.0.1"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/node-driver-registrar:v2.7.0-eks-1-27-latest"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-snapshotter/csi-snapshotter:v7.0.1-eks-1-29-7"
IMAGES="$IMAGES public.ecr.aws/platform9/aws-ebs-csi-driver:0.2.0"

#Builder changes
#Kubevirt images
IMAGES="$IMAGES public.ecr.aws/platform9/virt-exportproxy:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/fedora-with-test-tooling-container-disk:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/disks-images-provider:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/network-slirp-binding:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/virt-controller:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/virt-handler:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/virt-exportserver:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/pr-helper:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/example-cloudinit-hook-sidecar:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/cirros-custom-container-disk-demo:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/virtio-container-disk:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/alpine-ext-kernel-boot-demo:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/alpine-with-test-tooling-container-disk:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/libguestfs-tools:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/example-hook-sidecar:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/example-disk-mutation-hook-sidecar:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/alpine-container-disk-demo:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/cirros-container-disk-demo:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/vm-killer:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/winrmcli:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/sidecar-shim:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/network-passt-binding:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/virt-operator:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/virt-api:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/virt-launcher:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/conformance:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/fedora-realtime-container-disk:1.1.189"
IMAGES="$IMAGES public.ecr.aws/platform9/nfs-server:1.1.189"

IMAGES="$IMAGES public.ecr.aws/platform9/evm-stack-controller-manager:1.0.372"
IMAGES="$IMAGES public.ecr.aws/platform9/pmk-vpc-cni:1.1.152"
IMAGES="$IMAGES public.ecr.aws/platform9/emp-pmk-init:1.1.185"
IMAGES="$IMAGES public.ecr.aws/platform9/eks-vol-watcher:1.0.372"
IMAGES="$IMAGES public.ecr.aws/platform9/cni-metrics-helper:1.1.152"
IMAGES="$IMAGES public.ecr.aws/platform9/emp-webhook-eks:1.1.21"
IMAGES="$IMAGES public.ecr.aws/platform9/evm-vpc-cni:1.1.80"
IMAGES="$IMAGES public.ecr.aws/platform9/evm-autoscaler:1.1.125"
IMAGES="$IMAGES public.ecr.aws/platform9/emp-pod-webhook:1.1.220"
IMAGES="$IMAGES public.ecr.aws/platform9/pmk-vpc-cni-init:1.1.152"
IMAGES="$IMAGES public.ecr.aws/platform9/evm-vpc-cni-init:1.1.80"

#Charts
IMAGES="$IMAGES public.ecr.aws/platform9/emp-helm-charts/eks-cluster-chart:1.1.704"
IMAGES="$IMAGES public.ecr.aws/platform9/emp-helm-charts/baremetal-chart:1.1.814"
IMAGES="$IMAGES public.ecr.aws/platform9/emp-helm-charts/cert-manager:1.14.4"
IMAGES="$IMAGES public.ecr.aws/platform9/emp-helm-charts/promtail:6.15.5"
IMAGES="$IMAGES public.ecr.aws/platform9/emp-helm-charts/promtail-temp:6.15.5"

# IMAGES="$IMAGES public.ecr.aws/platform9/calico/kube-controllers:master"
# IMAGES="$IMAGES public.ecr.aws/platform9/calico/node:master"
# IMAGES="$IMAGES public.ecr.aws/platform9/calico/pod2daemon-flexvol:master"
# IMAGES="$IMAGES public.ecr.aws/platform9/calico/cni:master"
# IMAGES="$IMAGES public.ecr.aws/platform9/calico/typha:master"
# IMAGES="$IMAGES public.ecr.aws/platform9/pause:3.6"
# IMAGES="$IMAGES public.ecr.aws/platform9/tigera/operator:master"
# IMAGES="$IMAGES public.ecr.aws/platform9/calico/apiserver:v3.28.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/calico/kube-controllers:v3.28.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/calico/node:v3.28.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/calico/pod2daemon-flexvol:v3.28.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/calico/cni:v3.28.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/calico/typha:v3.28.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-importer:v1.59.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-cloner:v1.59.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-uploadserver:v1.59.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-apiserver:v1.59.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-controller:v1.59.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-operator:v1.59.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-uploadproxy:v1.59.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-controller:v1.15.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-cainjector:v1.15.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-webhook:v1.15.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/provider-aws/cloud-controller-manager:v1.27.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/coredns/coredns:v1.11.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/kas-network-proxy/proxy-agent:v0.0.32"
# IMAGES="$IMAGES public.ecr.aws/platform9/metrics-server/metrics-server:v0.6.3"
# IMAGES="$IMAGES public.ecr.aws/platform9/autoscaling/addon-resizer:1.8.14"
# IMAGES="$IMAGES public.ecr.aws/platform9/kube-proxy:v1.26.6"
# IMAGES="$IMAGES public.ecr.aws/platform9/envoyproxy/envoy:v1.26.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/platform9/virtvnc:v1"
# IMAGES="$IMAGES public.ecr.aws/platform9/platform9/multus:v3.7.2-pmk-2644970"
# IMAGES="$IMAGES public.ecr.aws/platform9/kubebuilder/kube-rbac-proxy:v0.11.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/platform9/luigi-plugins:v0.5.5"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-attacher:v4.5.0-eks-1-29-7"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-provisioner:v4.0.0-eks-1-29-7"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-resizer:v1.10.0-eks-1-29-7"
# IMAGES="$IMAGES public.ecr.aws/platform9/ebs-csi-driver/aws-ebs-csi-driver:v1.29.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/livenessprobe:v2.12.0-eks-1-29-7"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/node-driver-registrar:v2.10.0-eks-1-29-7"
# IMAGES="$IMAGES public.ecr.aws/platform9/amazon/aws-efs-csi-driver:v1.5.5"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/livenessprobe:v2.9.0-eks-1-27-latest"
# IMAGES="$IMAGES public.ecr.aws/platform9/kube-state-metrics/kube-state-metrics:v2.12.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/prometheus/node-exporter:v1.8.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/prometheus/prometheus:v2.52.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/prometheus-operator/prometheus-config-reloader:v0.73.2"
# IMAGES="$IMAGES public.ecr.aws/platform9/grafana/promtail:2.9.3"
# IMAGES="$IMAGES public.ecr.aws/platform9/tigera/operator:v1.34.0"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-provisioner:v3.4.0-eks-1-27-latest"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/node-driver-registrar:v2.7.0-eks-1-27-latest"
# IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-controller:v1.14.4"
# IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-webhook:v1.14.4"
# IMAGES="$IMAGES public.ecr.aws/platform9/jetstack/cert-manager-cainjector:v1.14.4"
# IMAGES="$IMAGES public.ecr.aws/platform9/pause:3.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/kubevirt/cdi-apiserver:v1.59.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-provisioner:v3.4.0-eks-1-27-latest"
# IMAGES="$IMAGES public.ecr.aws/platform9/sig-storage/snapshot-controller:v8.0.1"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/node-driver-registrar:v2.7.0-eks-1-27-latest"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-distro/kubernetes-csi/external-snapshotter/csi-snapshotter:v7.0.1-eks-1-29-7"
# IMAGES="$IMAGES public.ecr.aws/platform9/aws-ebs-csi-driver:0.2.0"

# #Builder changes
# #Kubevirt images
# IMAGES="$IMAGES public.ecr.aws/platform9/virt-exportproxy:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/fedora-with-test-tooling-container-disk:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/disks-images-provider:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/network-slirp-binding:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/virt-controller:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/virt-handler:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/virt-exportserver:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/pr-helper:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/example-cloudinit-hook-sidecar:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/cirros-custom-container-disk-demo:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/virtio-container-disk:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/alpine-ext-kernel-boot-demo:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/alpine-with-test-tooling-container-disk:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/libguestfs-tools:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/example-hook-sidecar:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/example-disk-mutation-hook-sidecar:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/alpine-container-disk-demo:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/cirros-container-disk-demo:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/vm-killer:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/winrmcli:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/sidecar-shim:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/network-passt-binding:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/virt-operator:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/virt-api:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/virt-launcher:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/conformance:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/fedora-realtime-container-disk:1.1.189"
# IMAGES="$IMAGES public.ecr.aws/platform9/nfs-server:1.1.189"

# IMAGES="$IMAGES public.ecr.aws/platform9/evm-stack-controller-manager:1.0.372"
# IMAGES="$IMAGES public.ecr.aws/platform9/pmk-vpc-cni:1.1.152"
# IMAGES="$IMAGES public.ecr.aws/platform9/emp-pmk-init:1.1.185"
# IMAGES="$IMAGES public.ecr.aws/platform9/eks-vol-watcher:1.0.372"
# IMAGES="$IMAGES public.ecr.aws/platform9/cni-metrics-helper:1.1.152"
# IMAGES="$IMAGES public.ecr.aws/platform9/emp-webhook-eks:1.1.21"
# IMAGES="$IMAGES public.ecr.aws/platform9/evm-vpc-cni:1.1.80"
# IMAGES="$IMAGES public.ecr.aws/platform9/evm-autoscaler:1.1.125"
# IMAGES="$IMAGES public.ecr.aws/platform9/emp-pod-webhook:1.1.220"
# IMAGES="$IMAGES public.ecr.aws/platform9/pmk-vpc-cni-init:1.1.152"
# IMAGES="$IMAGES public.ecr.aws/platform9/evm-vpc-cni-init:1.1.80"

# #Charts
# IMAGES="$IMAGES public.ecr.aws/platform9/emp-helm-charts/eks-cluster-chart:1.1.704"
# IMAGES="$IMAGES public.ecr.aws/platform9/emp-helm-charts/baremetal-chart:1.1.814"
# IMAGES="$IMAGES public.ecr.aws/platform9/emp-helm-charts/cert-manager:1.14.4"
# IMAGES="$IMAGES public.ecr.aws/platform9/emp-helm-charts/promtail:6.15.5"
# IMAGES="$IMAGES public.ecr.aws/platform9/emp-helm-charts/promtail-temp:6.15.5"

READ_REPO=""
profile=""
region=""
n=""
CHART_NAME=""
CHART=""
Expand Down Expand Up @@ -540,6 +543,10 @@ while [ $# -gt 0 ]; do
while [[ $# -gt 0 ]]; do
case "$1" in
--type)
if [[ -z "${2:-}" ]]; then
fail "Please specify a type after --type"
exit 1
fi
READ_REPO="$2"
info "Registry Type: $READ_REPO" # Debugging
if [[ "$READ_REPO" != "ecr" && "$READ_REPO" != "artifactory" ]]; then
Expand All @@ -549,16 +556,28 @@ while [ $# -gt 0 ]; do
shift 2
;;
--profile)
if [[ -z "${2:-}" ]]; then
fail "Please specify a profile after --profile"
exit 1
fi
profile="$2"
debug "AWS Profile: $profile" # Debugging
shift 2
;;
--region)
if [[ -z "${2:-}" ]]; then
fail "Please specify a region after --region"
exit 1
fi
region="$2"
debug "AWS Region: $region" # Debugging
shift 2
;;
--n)
if [[ -z "${2:-}" ]]; then
fail "Please specify namespace after --n"
exit 1
fi
n="$2"
debug "Nmps $n"
shift 2
Expand All @@ -584,6 +603,9 @@ while [ $# -gt 0 ]; do
fail "For ECR, please provide --profile and --region"
exit 1
fi
if [[ -z "$n" ]]; then
warn "Namespace not given"
fi
info "Using '$CNT_CMD' to handle container images"
push_images_registry "$registry_url" "$n" "$profile" "$region"
info "ECR inputs validated: Profile=$profile, Region=$region" # Debugging
Expand Down

0 comments on commit f56d534

Please sign in to comment.