internal

package
v2.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright (c) Edgeless Systems GmbH

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Username string
	Password string
}

Credentials is template Data.

type Daemonset

type Daemonset struct {
	Enabled          bool `yaml:"enabled"`
	HostNetworking   bool `yaml:"hostNetworking"`
	MetricbeatConfig struct {
		MetricbeatYml string `yaml:"metricbeat.yml"`
	} `yaml:"metricbeatConfig"`
	ExtraEnvs    []any `yaml:"extraEnvs"`
	SecretMounts []any `yaml:"secretMounts"`
	NodeSelector any   `yaml:"nodeSelector"`
	Tolerations  []struct {
		Key      string `yaml:"key"`
		Operator string `yaml:"operator"`
		Effect   string `yaml:"effect"`
	} `yaml:"tolerations"`
	SecurityContext struct {
		Privileged bool `yaml:"privileged"`
		RunAsUser  int  `yaml:"runAsUser"`
	} `yaml:"securityContext"`
	ExtraVolumeMounts []struct {
		Name      string `yaml:"name"`
		MountPath string `yaml:"mountPath"`
		ReadOnly  bool   `yaml:"readOnly"`
	} `yaml:"extraVolumeMounts"`
	ExtraVolumes []struct {
		Name     string `yaml:"name"`
		HostPath struct {
			Path string `yaml:"path"`
			Type string `yaml:"type"`
		} `yaml:"hostPath"`
	} `yaml:"extraVolumes"`
}

Daemonset represents the nested daemonset for the Helm values.yml.

type FilebeatHelmValues

type FilebeatHelmValues struct {
	Image     string `yaml:"image"`
	ImageTag  string `yaml:"imageTag"`
	Daemonset struct {
		Enabled        bool `yaml:"enabled"`
		FilebeatConfig struct {
			FilebeatYml string `yaml:"filebeat.yml"`
		} `yaml:"filebeatConfig"`
		ExtraEnvs    []interface{} `yaml:"extraEnvs"`
		SecretMounts []interface{} `yaml:"secretMounts"`
		Tolerations  []struct {
			Key      string `yaml:"key"`
			Operator string `yaml:"operator"`
			Effect   string `yaml:"effect"`
		} `yaml:"tolerations"`
		SecurityContext struct {
			Privileged bool `yaml:"privileged"`
			RunAsUser  int  `yaml:"runAsUser"`
		} `yaml:"securityContext"`
		ExtraVolumeMounts []struct {
			Name      string `yaml:"name"`
			MountPath string `yaml:"mountPath"`
			ReadOnly  bool   `yaml:"readOnly"`
		} `yaml:"extraVolumeMounts"`
		ExtraVolumes []struct {
			Name     string `yaml:"name"`
			HostPath struct {
				Path string `yaml:"path"`
				Type string `yaml:"type"`
			} `yaml:"hostPath"`
		} `yaml:"extraVolumes"`
	} `yaml:"daemonset"`
}

FilebeatHelmValues repesents the Helm values.yml.

type FilebeatPreparer

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

FilebeatPreparer prepares the Filebeat Helm chart.

func NewFilebeatPreparer

func NewFilebeatPreparer(port int) *FilebeatPreparer

NewFilebeatPreparer returns a new FilebeatPreparer.

func (*FilebeatPreparer) Prepare

func (p *FilebeatPreparer) Prepare(dir string) error

Prepare prepares the Filebeat Helm chart by templating the filebeat.yml and inputs.yml files and placing them in the specified directory.

type FilebeatTemplateData

type FilebeatTemplateData struct {
	LogstashHost     string
	AddCloudMetadata bool
}

FilebeatTemplateData is template data.

type LogstashHelmValues

type LogstashHelmValues struct {
	Image          string `yaml:"image"`
	ImageTag       string `yaml:"imageTag"`
	LogstashConfig struct {
		LogstashYml      string `yaml:"logstash.yml"`
		Log4J2Properties string `yaml:"log4j2.properties"`
	} `yaml:"logstashConfig"`
	LogstashPipeline struct {
		LogstashConf string `yaml:"logstash.conf"`
	} `yaml:"logstashPipeline"`
	Service struct {
		Ports []struct {
			Name       string `yaml:"name"`
			Port       int    `yaml:"port"`
			Protocol   string `yaml:"protocol"`
			TargetPort int    `yaml:"targetPort"`
		} `yaml:"ports"`
	} `yaml:"service"`
	Tolerations []struct {
		Key      string `yaml:"key"`
		Operator string `yaml:"operator"`
		Effect   string `yaml:"effect"`
	} `yaml:"tolerations"`
}

LogstashHelmValues represents the values.yml file for the Logstash Helm chart.

type LogstashPreparer

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

LogstashPreparer prepares the Logstash Helm chart.

func NewLogstashPreparer

func NewLogstashPreparer(fields map[string]string, username, password string, port int) *LogstashPreparer

NewLogstashPreparer returns a new LogstashPreparer.

func (*LogstashPreparer) Prepare

func (p *LogstashPreparer) Prepare(dir string) error

Prepare prepares the Logstash Helm chart by templating the required files and placing them in the specified directory.

type MetricbeatHelmValues

type MetricbeatHelmValues struct {
	Image            string `yaml:"image"`
	ImageTag         string `yaml:"imageTag"`
	KubeStateMetrics struct {
		Enabled bool `yaml:"enabled"`
	} `yaml:"kube_state_metrics"`
	Deployment struct {
		Enabled bool `yaml:"enabled"`
	} `yaml:"deployment"`
	Daemonset        Daemonset `yaml:"daemonset"`
	ClusterRoleRules []struct {
		APIGroups       []string `yaml:"apiGroups,omitempty"`
		Resources       []string `yaml:"resources,omitempty"`
		Verbs           []string `yaml:"verbs"`
		NonResourceURLs []string `yaml:"nonResourceURLs,omitempty"`
	} `yaml:"clusterRoleRules"`
}

MetricbeatHelmValues repesents the Helm values.yml.

type MetricbeatPreparer

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

MetricbeatPreparer prepares the Metricbeat Helm chart.

func NewMetricbeatPreparer

func NewMetricbeatPreparer(port int) *MetricbeatPreparer

NewMetricbeatPreparer returns a new MetricbeatPreparer.

func (*MetricbeatPreparer) Prepare

func (p *MetricbeatPreparer) Prepare(dir string) error

Prepare prepares the Filebeat Helm chart by templating the metricbeat.yml file and placing it in the specified directory.

type MetricbeatTemplateData

type MetricbeatTemplateData struct {
	LogstashHost         string
	Port                 int
	CollectEtcdMetrics   bool
	CollectSystemMetrics bool
	CollectK8sMetrics    bool
	AddK8sMetadata       bool
	AddCloudMetadata     bool
}

MetricbeatTemplateData is template data.

Jump to

Keyboard shortcuts

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