#!/bin/bash

# ---------------------------------------------------------------------
# Copyright © 2021  Akeyless Security LTD.
#
# All rights reserved
# ----------------------------------------------------------------------

set -ef

AKEYLESS_SPHERE=akeyless
K8S_ENDPOINT="" # Your k8 cluster endpoint including port
DYNAMIC_SECRET_NAME="" # Full path to your K8s Dynamic Secret
BASTION_HOST="" # Your SSH bastion endpoint

AKEYLESS_PARAM="$@" $AKEYLESS_SPHERE connect -t ${K8S_ENDPOINT} -n ${DYNAMIC_SECRET_NAME} -v ${BASTION_HOST} --ssh-extra-args "non-interactive"
