Documentation ¶
Index ¶
Constants ¶
View Source
const ( AssetPathRootCAKey = "tls/root-ca.key" AssetPathRootCACert = "tls/root-ca.crt" AssetPathKubeCAKey = "tls/kube-ca.key" AssetPathKubeCACert = "tls/kube-ca.crt" AssetPathAPIServerKey = "tls/apiserver.key" AssetPathAPIServerCert = "tls/apiserver.crt" AssetPathServiceAccountPrivKey = "tls/service-account.key" AssetPathServiceAccountPubKey = "tls/service-account.pub" AssetPathAdminKey = "tls/admin.key" AssetPathAdminCert = "tls/admin.crt" AssetPathAggregatorCACert = "tls/aggregator-ca.crt" AssetPathApiserverProxyKey = "tls/apiserver-proxy.key" AssetPathApiserverProxyCert = "tls/apiserver-proxy.crt" )
View Source
const ( AssetPathEtcdClientCA = "tls/etcd-client-ca.crt" AssetPathEtcdClientKey = "tls/etcd-client.key" AssetPathEtcdClientCert = "tls/etcd-client.crt" AssetPathEtcdPeerCA = "tls/etcd-peer-ca.crt" AssetPathEtcdPeerKey = "tls/etcd-peer.key" AssetPathEtcdPeerCert = "tls/etcd-peer.crt" AssetPathEtcdServerKey = "tls/etcd-server.key" AssetPathEtcdServerCert = "tls/etcd-server.crt" )
View Source
const ( AssetAdminKubeConfig = "auth/admin.kubeconfig" AssetKubeConfig = "auth/kubeconfig" AssetTLSKubeConfig = "tls/kubeconfig" )
Variables ¶
View Source
var KubeConfigTemplate = []byte(`apiVersion: v1
kind: Config
clusters:
- name: local
cluster:
server: {{ .ServerURL }}
certificate-authority-data: {{ .CACert | base64 }}
users:
- name: admin
user:
client-certificate-data: {{ .AdminCert | base64 }}
client-key-data: {{ .AdminKey | base64 }}
contexts:
- context:
cluster: local
user: admin
`)
Functions ¶
This section is empty.
Types ¶
type TLSAssetsRenderOptions ¶
type TLSAssetsRenderOptions struct { AltNames tlsutil.AltNames // contains filtered or unexported fields }
func NewTLSAssetsRenderer ¶
func NewTLSAssetsRenderer(hostname string) *TLSAssetsRenderOptions
Source Files ¶
Click to show internal directories.
Click to hide internal directories.