Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Created September 21, 2016 21:21
Show Gist options
  • Save marcoceppi/88dbc09b743fc07770e6ae0d005b6ad3 to your computer and use it in GitHub Desktop.
Save marcoceppi/88dbc09b743fc07770e6ae0d005b6ad3 to your computer and use it in GitHub Desktop.
params = {
'kubeconfig': kubeconfig,
'server': server,
'certificate-authority': ca,
'enbed-tls': 'false',
}
cmd = ['kubectl', 'config', 'set-cluster'] + ['{}={}'.format(k, v) for k, v in params.items()]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment