#!/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.

if [ "$1" == "experimental" ]; then
	kubeadm init --config "$2" --experimental-upload-certs --certificate-key "$3"
else
	kubeadm init --config "$2" --upload-certs
fi
