mkokho / kubemrr

For blazingly fast kubernets ops
Apache License 2.0
143 stars 6 forks source link

Allow CA key to be read from certificate-authority-data in kube config #9

Open stephenpaulger opened 6 years ago

stephenpaulger commented 6 years ago

The kube config can contain certificate-authority-data whose value is a base64 encoded PEM file.

This PR adds allows that setting to be used.

With this change if both certificate-authority and certificate-authority-data are provided then certificate-authority-data will over-ride any certificate previously read for the certificate-authority setting.