mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-25 18:53:44 +00:00
workflows: adopting azure/setup-kubectl
There are workflows that rely on `az aks install-cli` to get kubectl installed. There is a well-known problem on install-cli, related with API usage rate limit, that has recently caused the command to fail quite often. This is replacing install-cli with the azure/setup-kubectl github action which has no such as rate limit problem. While here, removed the install_cli() function from gha-run-k8s-common.sh so avoid developers using it by mistake in the future. Fixes #11463 Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
@@ -135,10 +135,6 @@ function install_bats() {
|
||||
sudo add-apt-repository --remove 'deb http://archive.ubuntu.com/ubuntu/ noble universe'
|
||||
}
|
||||
|
||||
function install_kubectl() {
|
||||
sudo az aks install-cli
|
||||
}
|
||||
|
||||
# Install the kustomize tool in /usr/local/bin if it doesn't exist on
|
||||
# the system yet.
|
||||
#
|
||||
|
@@ -576,7 +576,6 @@ function main() {
|
||||
install-bats) install_bats ;;
|
||||
install-kata-tools) install_kata_tools ;;
|
||||
install-kbs-client) install_kbs_client ;;
|
||||
install-kubectl) install_kubectl ;;
|
||||
get-cluster-credentials) get_cluster_credentials "" ;;
|
||||
deploy-csi-driver) return 0 ;;
|
||||
deploy-kata) deploy_kata ;;
|
||||
|
@@ -32,7 +32,6 @@ function main() {
|
||||
create-cluster) create_cluster ;;
|
||||
install-bats) install_bats ;;
|
||||
install-kata-tools) install_kata_tools ;;
|
||||
install-kubectl) install_kubectl ;;
|
||||
get-cluster-credentials) get_cluster_credentials ;;
|
||||
deploy-snapshotter) deploy_snapshotter ;;
|
||||
deploy-kata-aks) deploy_kata "aks" ;;
|
||||
|
Reference in New Issue
Block a user