# Info: KCL Kubeconfig task schemas for provisioning (Provisioning) # Author: JesusPerezLorenzo # Release: 0.0.4 # Date: 15-12-2023 schema Kubeconfig: # Task to get kubernetes config file to set KUBECONFIG or .kunbe/config cluster: str # To get path sudo is required req_sudo: bool = True # Path to copy file target_path: str = "HOME/.kube/config" # source file path source_path: str = "/etc/kubernetes/admin.conf" # host to admin service or where ${source_path} can be found admin_host?: str # Cluster services admin hosts port to connect via SSH admin_port?: int # Cluster services admin user connect via SSH admin_user?: str ssh_key_path?: str check: len(cluster) > 0, "Check cluster value"