Versions in this module Expand all Collapse all v1 v1.0.0 Jul 24, 2018 Changes in this version + const CABundlePrefix + const CAFilePrefix + const CreateBootstrapPolicyFileCommand + const CreateClientCommandName + const CreateKeyPairCommandName + const CreateKubeConfigCommandName + const CreateMasterCertsCommandName + const CreateServerCertCommandName + const CreateSignerCertCommandName + const DecryptCommandName + const DefaultPolicyFile + const EncryptCommandName + const FrontProxyCAFilePrefix + const MasterFilePrefix + const NodeConfigCommandName + func BindCreateSignerCertOptions(options *CreateSignerCertOptions, flags *pflag.FlagSet, prefix string) + func BindSignerCertOptions(options *SignerCertOptions, flags *pflag.FlagSet, prefix string) + func CopyFile(src, dest string, permissions os.FileMode) error + func DefaultAPIClientCAFile(certDir string) string + func DefaultCABundleFile(certDir string) string + func DefaultCAFilename(certDir, prefix string) string + func DefaultCertFilename(certDir, prefix string) string + func DefaultEtcdClientCAFile(certDir string) string + func DefaultEtcdServingCertInfo(certDir string) configapi.CertInfo + func DefaultFrontProxySignerName() string + func DefaultKeyFilename(certDir, prefix string) string + func DefaultKubeConfigFilename(certDir, prefix string) string + func DefaultKubeletClientCAFile(certDir string) string + func DefaultMasterServingCertInfo(certDir string) configapi.CertInfo + func DefaultNodeClientCertInfo(nodeDir string) configapi.CertInfo + func DefaultNodeDir(nodeName string) string + func DefaultNodeKubeConfigFile(nodeDir string) string + func DefaultNodeServingCertInfo(nodeDir string) configapi.CertInfo + func DefaultRootCAFile(certDir string) string + func DefaultSerialFilename(certDir, prefix string) string + func DefaultServerCerts(certDir string) []configapi.CertInfo + func DefaultServiceAccountPrivateKeyFile(certDir string) string + func DefaultServiceAccountPublicKeyFile(certDir string) string + func DefaultServiceServingCertSignerName() string + func DefaultServiceSignerCAInfo(certDir string) configapi.CertInfo + func DefaultSignerName() string + func NewCommandCreateBootstrapPolicyFile(commandName string, fullName string, out io.Writer) *cobra.Command + func NewCommandCreateClient(commandName string, fullName string, out io.Writer) *cobra.Command + func NewCommandCreateKeyPair(commandName string, fullName string, out io.Writer) *cobra.Command + func NewCommandCreateKubeConfig(commandName string, fullName string, out io.Writer) *cobra.Command + func NewCommandCreateMasterCerts(commandName string, fullName string, out io.Writer) *cobra.Command + func NewCommandCreateServerCert(commandName string, fullName string, out io.Writer) *cobra.Command + func NewCommandCreateSignerCert(commandName string, fullName string, out io.Writer) *cobra.Command + func NewCommandDecrypt(commandName string, fullName, encryptFullName string, out io.Writer) *cobra.Command + func NewCommandEncrypt(commandName string, fullName string, out io.Writer, errout io.Writer) *cobra.Command + func NewCommandNodeConfig(commandName string, fullName string, out io.Writer) *cobra.Command + type ClientCertInfo struct + CertLocation configapi.CertInfo + Groups sets.String + UnqualifiedUser string + User string + func DefaultAPIClientCerts(certDir string) []ClientCertInfo + func DefaultAggregatorClientCertInfo(certDir string) ClientCertInfo + func DefaultClusterAdminClientCertInfo(certDir string) ClientCertInfo + func DefaultEtcdClientCerts(certDir string) []ClientCertInfo + func DefaultKubeletClientCerts(certDir string) []ClientCertInfo + func DefaultMasterEtcdClientCertInfo(certDir string) ClientCertInfo + func DefaultMasterKubeletClientCertInfo(certDir string) ClientCertInfo + func DefaultOpenshiftLoopbackClientCertInfo(certDir string) ClientCertInfo + func DefaultProxyClientCertInfo(certDir string) ClientCertInfo + func DefaultProxyClientCerts(certDir string) []ClientCertInfo + type CreateBootstrapPolicyFileOptions struct + File string + func (o CreateBootstrapPolicyFileOptions) CreateBootstrapPolicyFile() error + func (o CreateBootstrapPolicyFileOptions) Validate(args []string) error + type CreateClientCertOptions struct + CertFile string + ExpireDays int + Groups []string + KeyFile string + Output io.Writer + Overwrite bool + SignerCertOptions *SignerCertOptions + User string + func (o CreateClientCertOptions) CreateClientCert() (*crypto.TLSCertificateConfig, error) + func (o CreateClientCertOptions) Validate(args []string) error + type CreateClientOptions struct + APIServerCAFiles []string + APIServerURL string + BaseName string + ClientDir string + ExpireDays int + Groups []string + Output io.Writer + PublicAPIServerURL string + SignerCertOptions *SignerCertOptions + User string + func (o CreateClientOptions) CreateClientFolder() error + func (o CreateClientOptions) Validate(args []string) error + type CreateKeyPairOptions struct + Output io.Writer + Overwrite bool + PrivateKeyFile string + PublicKeyFile string + func (o CreateKeyPairOptions) CreateKeyPair() error + func (o CreateKeyPairOptions) Validate(args []string) error + type CreateKubeConfigOptions struct + APIServerCAFiles []string + APIServerURL string + CertFile string + ContextNamespace string + KeyFile string + KubeConfigFile string + Output io.Writer + PublicAPIServerURL string + func (o CreateKubeConfigOptions) CreateKubeConfig() (*clientcmdapi.Config, error) + func (o CreateKubeConfigOptions) Validate(args []string) error + type CreateMasterCertsOptions struct + APIServerCAFiles []string + APIServerURL string + CertDir string + ExpireDays int + Hostnames []string + Output io.Writer + Overwrite bool + PublicAPIServerURL string + SignerExpireDays int + SignerName string + func (o CreateMasterCertsOptions) CreateMasterCerts() error + func (o CreateMasterCertsOptions) Validate(args []string) error + type CreateNodeConfigOptions struct + APIServerCAFiles []string + APIServerURL string + AllowDisabledDocker bool + ClientCertFile string + ClientKeyFile string + DNSBindAddress string + DNSDomain string + DNSIP string + DNSRecursiveResolvConf string + ExpireDays int + Hostnames []string + ImageTemplate variable.ImageTemplate + KubeletArguments map[string][]string + ListenAddr flagtypes.Addr + NetworkPluginName string + NodeClientCAFile string + NodeConfigDir string + NodeName string + Output io.Writer + ServerCertFile string + ServerKeyFile string + SignerCertOptions *SignerCertOptions + VolumeDir string + func NewDefaultCreateNodeConfigOptions() *CreateNodeConfigOptions + func (o CreateNodeConfigOptions) CreateNodeFolder() (string, error) + func (o CreateNodeConfigOptions) IsCreateClientCertificate() bool + func (o CreateNodeConfigOptions) IsCreateServerCertificate() bool + func (o CreateNodeConfigOptions) MakeAPIServerCA(clientCopyOfCAFile string) error + func (o CreateNodeConfigOptions) MakeAndWriteServerCert(serverCertFile, serverKeyFile string) error + func (o CreateNodeConfigOptions) MakeClientCert(clientCertFile, clientKeyFile string) error + func (o CreateNodeConfigOptions) MakeKubeConfig(clientCertFile, clientKeyFile, clientCopyOfCAFile, kubeConfigFile string) error + func (o CreateNodeConfigOptions) MakeNodeClientCA(clientCopyOfCAFile string) error + func (o CreateNodeConfigOptions) MakeNodeConfig(serverCertFile, serverKeyFile, nodeClientCAFile, kubeConfigFile, ... string) error + func (o CreateNodeConfigOptions) MakeNodeJSON(nodeJSONFile string) error + func (o CreateNodeConfigOptions) UseNodeClientCA() bool + func (o CreateNodeConfigOptions) UseTLS() bool + func (o CreateNodeConfigOptions) Validate(args []string) error + type CreateServerCertOptions struct + CertFile string + ExpireDays int + Hostnames []string + KeyFile string + Output io.Writer + Overwrite bool + SignerCertOptions *SignerCertOptions + func (o CreateServerCertOptions) CreateServerCert() (*crypto.TLSCertificateConfig, error) + func (o CreateServerCertOptions) Validate(args []string) error + type CreateSignerCertOptions struct + CertFile string + ExpireDays int + KeyFile string + Name string + Output io.Writer + Overwrite bool + SerialFile string + func (o CreateSignerCertOptions) CreateSignerCert() (*crypto.CA, error) + func (o CreateSignerCertOptions) Validate(args []string) error + type DecryptOptions struct + DecryptedFile string + DecryptedWriter io.Writer + EncryptedData []byte + EncryptedFile string + EncryptedReader io.Reader + KeyFile string + func (o *DecryptOptions) Decrypt() error + func (o *DecryptOptions) Validate(args []string) error + type EncryptOptions struct + CleartextData []byte + CleartextFile string + CleartextReader io.Reader + EncryptedFile string + EncryptedWriter io.Writer + GenKeyFile string + KeyFile string + PromptWriter io.Writer + func (o *EncryptOptions) Encrypt() error + func (o *EncryptOptions) Validate(args []string) error + type SignerCertOptions struct + CertFile string + KeyFile string + SerialFile string + func NewDefaultSignerCertOptions() *SignerCertOptions + func (o *SignerCertOptions) CA() (*crypto.CA, error) + func (o *SignerCertOptions) Validate() error