asset

package
v0.3.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssetPathCAKey                       = "tls/ca.key"
	AssetPathCACert                      = "tls/ca.crt"
	AssetPathAPIServerKey                = "tls/apiserver.key"
	AssetPathAPIServerCert               = "tls/apiserver.crt"
	AssetPathServiceAccountPrivKey       = "tls/service-account.key"
	AssetPathServiceAccountPubKey        = "tls/service-account.pub"
	AssetPathKubeletKey                  = "tls/kubelet.key"
	AssetPathKubeletCert                 = "tls/kubelet.crt"
	AssetPathKubeConfig                  = "auth/kubeconfig"
	AssetPathManifests                   = "manifests"
	AssetPathKubelet                     = "manifests/kubelet.yaml"
	AssetPathProxy                       = "manifests/kube-proxy.yaml"
	AssetPathKubeFlannel                 = "manifests/kube-flannel.yaml"
	AssetPathKubeFlannelCfg              = "manifests/kube-flannel-cfg.yaml"
	AssetPathAPIServerSecret             = "manifests/kube-apiserver-secret.yaml"
	AssetPathAPIServer                   = "manifests/kube-apiserver.yaml"
	AssetPathControllerManager           = "manifests/kube-controller-manager.yaml"
	AssetPathControllerManagerSecret     = "manifests/kube-controller-manager-secret.yaml"
	AssetPathControllerManagerDisruption = "manifests/kube-controller-manager-disruption.yaml"
	AssetPathScheduler                   = "manifests/kube-scheduler.yaml"
	AssetPathSchedulerDisruption         = "manifests/kube-scheduler-disruption.yaml"
	AssetPathKubeDNSDeployment           = "manifests/kube-dns-deployment.yaml"
	AssetPathKubeDNSSvc                  = "manifests/kube-dns-svc.yaml"
	AssetPathSystemNamespace             = "manifests/kube-system-ns.yaml"
	AssetPathCheckpointer                = "manifests/pod-checkpoint-installer.yaml"
	AssetPathEtcdOperator                = "manifests/etcd-operator.yaml"
	AssetPathEtcdSvc                     = "manifests/etcd-service.yaml"
	AssetPathKenc                        = "manifests/kenc.yaml"
	AssetPathKubeSystemSARoleBinding     = "manifests/kube-system-rbac-role-binding.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Name string
	Data []byte
}

type Assets

type Assets []Asset

func NewDefaultAssets

func NewDefaultAssets(conf Config) (Assets, error)

NewDefaultAssets returns a list of default assets, optionally configured via a user provided AssetConfig. Default assets include TLS assets (certs, keys and secrets), and k8s component manifests.

func (Assets) Get

func (as Assets) Get(name string) (Asset, error)

func (Assets) WriteFiles

func (as Assets) WriteFiles(path string) error

type Config

type Config struct {
	EtcdServers     []*url.URL
	APIServers      []*url.URL
	CACert          *x509.Certificate
	CAPrivKey       *rsa.PrivateKey
	AltNames        *tlsutil.AltNames
	PodCIDR         *net.IPNet
	ServiceCIDR     *net.IPNet
	APIServiceIP    net.IP
	DNSServiceIP    net.IP
	ETCDServiceIP   net.IP
	SelfHostKubelet bool
	SelfHostedEtcd  bool
	CloudProvider   string
}

AssetConfig holds all configuration needed when generating the default set of assets.

Directories

Path Synopsis
Package internal holds asset templates used by bootkube.
Package internal holds asset templates used by bootkube.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL