backyards

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMode

type AuthMode string
const (
	AnonymousAuthMode     AuthMode = "anonymous"
	ImpersonationAuthMode AuthMode = "impersonation"
)

type Values

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

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

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

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

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

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

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

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

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

	IngressGateway struct {
		Enabled     bool `json:"enabled,omitempty"`
		MeshGateway struct {
			Enabled bool `json:"enabled,omitempty"`
		} `json:"meshgateway,omitempty"`
		Service struct {
			Type string `json:"type,omitempty"`
		} `json:"service,omitempty"`
	} `json:"ingressgateway,omitempty"`

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

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

	Auth struct {
		Mode AuthMode `json:"mode,omitempty"`
	} `json:"auth,omitempty"`

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

	ALS struct {
		Enabled   bool                        `json:"enabled,omitempty"`
		Image     helm.Image                  `json:"image,omitempty"`
		Resources corev1.ResourceRequirements `json:"resources,omitempty"`
		Service   struct {
			Type string `json:"type,omitempty"`
			Port int    `json:"port,omitempty"`
		} `json:"service,omitempty"`
		MTLS struct {
			Enabled bool `json:"enabled,omitempty"`
		} `json:"mtls,omitempty"`
		MultiCluster struct {
			Enabled bool `json:"enabled,omitempty"`
		} `json:"multiCluster,omitempty"`
	} `json:"als,omitempty"`

	KubeStateMetrics struct {
		Enabled   bool                        `json:"enabled,omitempty"`
		Replicas  int                         `json:"replicas,omitempty"`
		Image     helm.Image                  `json:"image,omitempty"`
		Resources corev1.ResourceRequirements `json:"resources,omitempty"`
		Ports     struct {
			Monitoring int `json:"monitoring,omitempty"`
			Telemetry  int `json:"telemetry,omitempty"`
		} `json:"ports,omitempty"`
		Service struct {
			MonitoringPort int `json:"monitoringPort,omitempty"`
			TelemetryPort  int `json:"telemetryPort,omitempty"`
		} `json:"service,omitempty"`
	} `json:"kubestatemetrics,omitempty"`
}

func (*Values) SetDefaults

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

Jump to

Keyboard shortcuts

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