#!/bin/bash
#
# Copyright (c) 2019-2020 Oracle and/or its affiliates. All rights reserved.
# Licensed under the GNU General Public License Version 2 as shown at https://oss.oracle.com/licenses/GPL-2.

whitelist="get
descibe
"

set -e

act="$1"
shift

if echo "$whitelist" | grep -q -x "$act"; then
	kubectl "$act" pod "$@"
	exit $?
fi

echo "$act cannot be performed by this script"
exit 1
