Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInstallControlPlaneArgs = InstallControlPlaneArgs{
	Namespace:                                 "kuma-system",
	ControlPlane_image_pullPolicy:             "IfNotPresent",
	ControlPlane_image_registry:               "kong-docker-kuma-docker.bintray.io",
	ControlPlane_image_repository:             "kuma-cp",
	ControlPlane_image_tag:                    kuma_version.Build.Version,
	ControlPlane_service_name:                 "kuma-control-plane",
	ControlPlane_envVars:                      map[string]string{},
	ControlPlane_injectorFailurePolicy:        "Ignore",
	DataPlane_image_registry:                  "kong-docker-kuma-docker.bintray.io",
	DataPlane_image_repository:                "kuma-dp",
	DataPlane_image_tag:                       kuma_version.Build.Version,
	DataPlane_initImage_registry:              "kong-docker-kuma-docker.bintray.io",
	DataPlane_initImage_repository:            "kuma-init",
	DataPlane_initImage_tag:                   kuma_version.Build.Version,
	Cni_enabled:                               false,
	Cni_chained:                               false,
	Cni_net_dir:                               "/etc/cni/multus/net.d",
	Cni_bin_dir:                               "/var/lib/cni/bin",
	Cni_conf_name:                             "kuma-cni.conf",
	Cni_image_registry:                        "docker.io",
	Cni_image_repository:                      "lobkovilya/install-cni",
	Cni_image_tag:                             "0.0.2",
	ControlPlane_mode:                         core.Standalone,
	ControlPlane_zone:                         "",
	ControlPlane_globalRemoteSyncService_type: "LoadBalancer",
	Ingress_enabled:                           false,
	Ingress_mesh:                              "default",
	Ingress_drainTime:                         "30s",
	Ingress_service_type:                      "LoadBalancer",
}
View Source
var DefaultInstallDNSArgs = InstallDNSArgs{
	Namespace: "kuma-system",
	Service:   "kuma-control-plane",
	Port:      "5653",
}
View Source
var DefaultMetricsTemplateArgs = metricsTemplateArgs{
	Namespace:               "kuma-metrics",
	KumaPrometheusSdImage:   "kong-docker-kuma-docker.bintray.io/kuma-prometheus-sd",
	KumaPrometheusSdVersion: kuma_version.Build.Version,
	KumaCpAddress:           "grpc://kuma-control-plane.kuma-system:5676",
	WithoutPrometheus:       false,
	WithoutGrafana:          false,
}
View Source
var InstallCpTemplateFilesFn = InstallCpTemplateFiles
View Source
var (
	// overridable by unit tests
	NewSelfSignedCert = tls.NewSelfSignedCert
)

Functions

func InstallCpTemplateFiles

func InstallCpTemplateFiles(args InstallControlPlaneArgs) (data.FileList, error)

func NewInstallCmd

func NewInstallCmd(pctx *kumactl_cmd.RootContext) *cobra.Command

Types

type ExcludePrefixesFilter

type ExcludePrefixesFilter struct {
	Prefixes []string
}

func (ExcludePrefixesFilter) Filter

func (f ExcludePrefixesFilter) Filter(name string) bool

type ImageEnvSecret

type ImageEnvSecret struct {
	Env    string
	Secret string
	Key    string
}

type InstallControlPlaneArgs

type InstallControlPlaneArgs struct {
	Namespace                                    string            `helm:"namespace"`
	ControlPlane_image_pullPolicy                string            `helm:"controlPlane.image.pullPolicy"`
	ControlPlane_image_registry                  string            `helm:"controlPlane.image.registry"`
	ControlPlane_image_repository                string            `helm:"controlPlane.image.repository"`
	ControlPlane_image_tag                       string            `helm:"controlPlane.image.tag"`
	ControlPlane_service_name                    string            `helm:"controlPlane.service.name"`
	ControlPlane_tls_general_secret              string            `helm:"controlPlane.tls.general.secretName"`
	ControlPlane_tls_general_caBundle            string            `helm:"controlPlane.tls.general.caBundle"`
	ControlPlane_tls_apiServer_secret            string            `helm:"controlPlane.tls.apiServer.secretName"`
	ControlPlane_tls_apiServer_clientCertsSecret string            `helm:"controlPlane.tls.apiServer.clientCertsSecretName"`
	ControlPlane_tls_kdsGlobalServer_secret      string            `helm:"controlPlane.tls.kdsGlobalServer.secretName"`
	ControlPlane_tls_kdsRemoteClient_secret      string            `helm:"controlPlane.tls.kdsRemoteClient.secretName"`
	ControlPlane_injectorFailurePolicy           string            `helm:"controlPlane.injectorFailurePolicy"`
	ControlPlane_secrets                         []ImageEnvSecret  `helm:"controlPlane.secrets"`
	ControlPlane_envVars                         map[string]string `helm:"controlPlane.envVars"`
	DataPlane_image_registry                     string            `helm:"dataPlane.image.registry"`
	DataPlane_image_repository                   string            `helm:"dataPlane.image.repository"`
	DataPlane_image_tag                          string            `helm:"dataPlane.image.tag"`
	DataPlane_initImage_registry                 string            `helm:"dataPlane.initImage.registry"`
	DataPlane_initImage_repository               string            `helm:"dataPlane.initImage.repository"`
	DataPlane_initImage_tag                      string            `helm:"dataPlane.initImage.tag"`
	ControlPlane_kdsGlobalAddress                string            `helm:"controlPlane.kdsGlobalAddress"`
	Cni_enabled                                  bool              `helm:"cni.enabled"`
	Cni_chained                                  bool              `helm:"cni.chained"`
	Cni_net_dir                                  string            `helm:"cni.netDir"`
	Cni_bin_dir                                  string            `helm:"cni.binDir"`
	Cni_conf_name                                string            `helm:"cni.confName"`
	Cni_image_registry                           string            `helm:"cni.image.registry"`
	Cni_image_repository                         string            `helm:"cni.image.repository"`
	Cni_image_tag                                string            `helm:"cni.image.tag"`
	ControlPlane_mode                            string            `helm:"controlPlane.mode"`
	ControlPlane_zone                            string            `helm:"controlPlane.zone"`
	ControlPlane_globalRemoteSyncService_type    string            `helm:"controlPlane.globalRemoteSyncService.type"`
	Ingress_enabled                              bool              `helm:"ingress.enabled"`
	Ingress_mesh                                 string            `helm:"ingress.mesh"`
	Ingress_drainTime                            string            `helm:"ingress.drainTime"`
	Ingress_service_type                         string            `helm:"ingress.service.type"`
	WithoutKubernetesConnection                  bool              // there is no HELM equivalent, HELM always require connection to Kubernetes
}

type InstallDNSArgs

type InstallDNSArgs struct {
	Namespace string
	Service   string
	Port      string
}

type NoneFilter

type NoneFilter struct {
}

func (NoneFilter) Filter

func (f NoneFilter) Filter(name string) bool