cmd

package
v0.0.0-...-7b8e0ff Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Copyright © 2019 Banzai Cloud

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDashboardCommand

func NewDashboardCommand(cli cli.CLI, options *DashboardOptions) *cobra.Command

func NewInstallCommand

func NewInstallCommand(cli cli.CLI) *cobra.Command

func NewUninstallCommand

func NewUninstallCommand(cli cli.CLI) *cobra.Command

func NewVersionCommand

func NewVersionCommand(cli cli.CLI) *cobra.Command

Types

type AuthMethod

type AuthMethod string

type DashboardOptions

type DashboardOptions struct {
	URI  string
	Port int
	// contains filtered or unexported fields
}

func NewDashboardOptions

func NewDashboardOptions() *DashboardOptions

type InstallOptions

type InstallOptions struct {
	// contains filtered or unexported fields
}

type UninstallOptions

type UninstallOptions struct {
	// contains filtered or unexported fields
}

type Values

type Values struct {
	NameOverride         string                      `json:"nameOverride,omitempty"`
	FullnameOverride     string                      `json:"fullnameOverride,omitempty"`
	ReplicaCount         int                         `json:"replicaCount"`
	UseNamespaceResource bool                        `json:"useNamespaceResource"`
	Resources            corev1.ResourceRequirements `json:"resources,omitempty"`

	Ingress struct {
		Enabled     bool              `json:"enabled"`
		Annotations map[string]string `json:"annotations"`
		Paths       struct {
			Application string `json:"application"`
			Web         string `json:"web"`
		} `json:"paths"`
		BasePath string   `json:"basePath"`
		Hosts    []string `json:"hosts"`
		TLS      []struct {
			SecretName string   `json:"secretName"`
			Hosts      []string `json:"hosts"`
		} `json:"tls"`
	} `json:"ingress"`

	Autoscaling struct {
		Enabled                           bool `json:"enabled"`
		MinReplicas                       int  `json:"minReplicas"`
		MaxReplicas                       int  `json:"maxReplicas"`
		TargetCPUUtilizationPercentage    int  `json:"targetCPUUtilizationPercentage"`
		TargetMemoryUtilizationPercentage int  `json:"targetMemoryUtilizationPercentage"`
	} `json:"autoscaling"`

	Application struct {
		helm.EnvironmentVariables
		Image   helm.Image `json:"image"`
		Service struct {
			Type string `json:"type"`
			Port int    `json:"port"`
		} `json:"service"`
	} `json:"application"`

	Web struct {
		helm.EnvironmentVariables
		Enabled   bool                        `json:"enabled"`
		Image     helm.Image                  `json:"image"`
		Resources corev1.ResourceRequirements `json:"resources,omitempty"`
		Service   struct {
			Type string `json:"type"`
			Port int    `json:"port"`
		} `json:"service"`
	} `json:"web"`

	Istio struct {
		Namespace          string `json:"namespace"`
		CRName             string `json:"CRName"`
		ServiceAccountName string `json:"serviceAccountName"`
	} `json:"istio"`

	Prometheus struct {
		Enabled     bool                        `json:"enabled"`
		Image       helm.Image                  `json:"image"`
		Resources   corev1.ResourceRequirements `json:"resources,omitempty"`
		ExternalURL string                      `json:"externalUrl"`
		Config      struct {
			Global struct {
				ScrapeInterval     string `json:"scrapeInterval"`
				ScrapeTimeout      string `json:"scrapeTimeout"`
				EvaluationInterval string `json:"evaluationInterval"`
			} `json:"global"`
		} `json:"config"`
		Service struct {
			Type string `json:"type"`
			Port int    `json:"port"`
		} `json:"service"`
	} `json:"prometheus"`

	Grafana struct {
		Enabled   bool                        `json:"enabled"`
		Image     helm.Image                  `json:"image"`
		Resources corev1.ResourceRequirements `json:"resources,omitempty"`
		Security  struct {
			Enabled       bool   `json:"enabled"`
			UsernameKey   string `json:"usernameKey,omitempty"`
			SecretName    string `json:"secretName,omitempty"`
			PassphraseKey string `json:"passphraseKey,omitempty"`
		} `json:"security"`
		ExternalURL string `json:"externalUrl"`
	} `json:"grafana"`

	Tracing struct {
		Enabled     bool   `json:"enabled"`
		ExternalURL string `json:"externalUrl"`
		Provider    string `json:"provider"`
		Jaeger      struct {
			Image     helm.Image                  `json:"image"`
			Resources corev1.ResourceRequirements `json:"resources,omitempty"`
			Memory    struct {
				MaxTraces string `json:"max_traces"`
			} `json:"memory"`
			SpanStorageType  string `json:"spanStorageType"`
			Persist          bool   `json:"persist"`
			StorageClassName string `json:"storageClassName"`
			AccessMode       string `json:"accessMode"`
		} `json:"jaeger"`
		Service struct {
			Annotations  map[string]string `json:"annotations"`
			Name         string            `json:"name"`
			Type         string            `json:"type"`
			ExternalPort int               `json:"externalPort"`
		} `json:"service"`
	} `json:"tracing"`

	IngressGateway struct {
		Service struct {
			Type string `json:"type"`
		} `json:"service"`
	} `json:"ingressgateway"`

	AuditSink struct {
		Enabled     bool                        `json:"enabled"`
		Image       helm.Image                  `json:"image"`
		Resources   corev1.ResourceRequirements `json:"resources"`
		Tolerations []corev1.Toleration         `json:"tolerations"`
		HTTP        struct {
			Timeout        string `json:"timeout"`
			RetryWaitMin   string `json:"retryWaitMin"`
			RetryWaitMax   string `json:"retryWaitMax"`
			RetryMax       int    `json:"retryMax"`
			PanicOnFailure bool   `json:"panicOnFailure"`
		} `json:"http"`
	} `json:"auditsink"`

	CertManager struct {
		Enabled bool `json:"enabled"`
	} `json:"certmanager"`

	Auth struct {
		Method AuthMethod `json:"method"`
	} `json:"auth"`

	Impersonation struct {
		Enabled bool `json:"enabled"`
		Config  struct {
			Users           []string `json:"users"`
			Groups          []string `json:"groups"`
			ServiceAccounts []string `json:"serviceaccounts"`
			Scopes          []string `json:"scopes"`
		} `json:"config"`
	} `json:"impersonation"`
}

func (*Values) SetDefaults

func (values *Values) SetDefaults(releaseName, istioNamespace string)

Directories

Path Synopsis
cb
ts

Jump to

Keyboard shortcuts

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