template

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const InspectResultTemplate = "inspectResult.tpl"

Variables

This section is empty.

Functions

func BinaryConfigMapTemplate

func BinaryConfigMapTemplate(name string, namespace string, binaryData []byte, onRely bool, labels map[string]string, reference ...metav1.OwnerReference) *corev1.ConfigMap

func BinaryFileConfigMapTemplate

func BinaryFileConfigMapTemplate(name string, namespace string, binaryData []byte, onRely bool, reference ...metav1.OwnerReference) *corev1.ConfigMap

func GeneratorJobTemplate

func GeneratorJobTemplate(Job JobTemplateOptions) *v1.Job

func GetClusterRoleBindingTemplate

func GetClusterRoleBindingTemplate() *rbacv1.ClusterRoleBinding

func GetClusterRoleTemplate

func GetClusterRoleTemplate() *rbacv1.ClusterRole

func GetInspectPlanTemplate

func GetInspectPlanTemplate() (*texttemplate.Template, error)

func GetInspectResultHtmlTemplate

func GetInspectResultHtmlTemplate() (*hemltemplate.Template, error)

func GetInspectRuleTemplate

func GetInspectRuleTemplate() (*texttemplate.Template, error)

func GetServiceAccountTemplate

func GetServiceAccountTemplate() *v1.ServiceAccount

Types

type JobTemplateOptions

type JobTemplateOptions struct {
	JobConfig    *conf.JobConfig
	JobName      string
	Task         *kubeeyev1alpha2.InspectTask
	NodeName     string
	NodeSelector map[string]string
	RuleType     string
}

Jump to

Keyboard shortcuts

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