Documentation
¶
Index ¶
- Constants
- func CreateDeployment(namespace string, bindingName string, labels map[string]string, sec Secrets) *appsv1.Deployment
- func CreateVmiSecrets(binding *v1beta1v8o.VerrazzanoBinding, secrets Secrets) error
- func DeletePomPusher(binding string, helper util.DeploymentHelper) error
- func GetFilebeatLabels(managedClusterName string) map[string]string
- func GetJournalbeatLabels(managedClusterName string) map[string]string
- func GetMonitoringComponentLabels(managedClusterName string, componentName string) map[string]string
- func GetMonitoringComponents() []string
- func GetMonitoringNamespace(componentName string) string
- func GetNodeExporterLabels(managedClusterName string) map[string]string
- func GetSystemClusterRoleBindings(managedClusterName string) []*rbacv1.ClusterRoleBinding
- func GetSystemClusterRoles(managedClusterName string) []*rbacv1.ClusterRole
- func GetSystemDeployments(managedClusterName, verrazzanoURI string, sec Secrets) []*appsv1.Deployment
- func GetSystemSecrets(sec Secrets) []*corev1.Secret
- func GetVmiPassword(secrets Secrets) (string, error)
- func LoggingConfigMaps(managedClusterName string) []*corev1.ConfigMap
- func NewVmiSecret(binding *v1beta1v8o.VerrazzanoBinding) *corev1.Secret
- func SystemDaemonSets(managedClusterName string, verrazzanoURI string) []*appsv1.DaemonSet
- type Secrets
Constants ¶
const FilebeatConfigData = `` /* 586-byte string literal not displayed */
FilebeatConfigData contains configuration used by Filebeats.
const FilebeatInputData = `- type: docker
containers.ids:
- "*"
processors:
- add_kubernetes_metadata:
in_cluster: true
`
FilebeatInputData contains configuration used as inputs for Filebeats.
const JournalbeatConfigData = `` /* 401-byte string literal not displayed */
JournalbeatConfigData contains configuration used by Journalbeats.
Variables ¶
This section is empty.
Functions ¶
func CreateDeployment ¶
func CreateDeployment(namespace string, bindingName string, labels map[string]string, sec Secrets) *appsv1.Deployment
CreateDeployment creates prometheus pusher deployment on all clusters, based on a VerrazzanoApplicationBinding.
func CreateVmiSecrets ¶
func CreateVmiSecrets(binding *v1beta1v8o.VerrazzanoBinding, secrets Secrets) error
CreateVmiSecrets creates/updates a VMI secret.
func DeletePomPusher ¶ added in v0.0.99
func DeletePomPusher(binding string, helper util.DeploymentHelper) error
DeletePomPusher deletes the Prometheus Pusher deployment.
func GetFilebeatLabels ¶
GetFilebeatLabels returns labels for Filebeats.
func GetJournalbeatLabels ¶
GetJournalbeatLabels returns labels for Journalbeats.
func GetMonitoringComponentLabels ¶
func GetMonitoringComponentLabels(managedClusterName string, componentName string) map[string]string
GetMonitoringComponentLabels returns labels for a given monitoring component.
func GetMonitoringComponents ¶
func GetMonitoringComponents() []string
GetMonitoringComponents returns list of monitoring components.
func GetMonitoringNamespace ¶
GetMonitoringNamespace return namespace for a given monitoring component.
func GetNodeExporterLabels ¶
GetNodeExporterLabels returns labels for Node Exporter.
func GetSystemClusterRoleBindings ¶
func GetSystemClusterRoleBindings(managedClusterName string) []*rbacv1.ClusterRoleBinding
GetSystemClusterRoleBindings gets all the cluster role bindings needed by Filebeats, Journalbeats, and NodeExporters in all the managed clusters.
func GetSystemClusterRoles ¶
func GetSystemClusterRoles(managedClusterName string) []*rbacv1.ClusterRole
GetSystemClusterRoles gets all the cluster roles needed by Filebeats, Journalbeats, and NodeExporters in all the clusters.
func GetSystemDeployments ¶
func GetSystemDeployments(managedClusterName, verrazzanoURI string, sec Secrets) []*appsv1.Deployment
GetSystemDeployments constructs the necessary Deployments for the specified ManagedCluster for the System VMI.
func GetSystemSecrets ¶
GetSystemSecrets the secrets to be created for Filebeats and Journalbeats.
func GetVmiPassword ¶
GetVmiPassword returns the password for the VMI secret.
func LoggingConfigMaps ¶
LoggingConfigMaps gets all the config maps needed by Filebeats and Journalbeats in all the managed cluster.
func NewVmiSecret ¶
func NewVmiSecret(binding *v1beta1v8o.VerrazzanoBinding) *corev1.Secret
NewVmiSecret creates the necessary Secrets for the given VerrazzanoBinding.
Types ¶
type Secrets ¶
type Secrets interface { Get(name string) (*corev1.Secret, error) Create(*corev1.Secret) (*corev1.Secret, error) Update(*corev1.Secret) (*corev1.Secret, error) List(ns string, selector labels.Selector) (ret []*corev1.Secret, err error) Delete(ns, name string) error GetVmiPassword() (string, error) }
Secrets defines the interface for handling secrets.