templates

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

README

Description

  • Check VerticalPodAutoscaler described
  • Check PodDisruptionBudgets described
  • Check kube-rbac-proxy CA certificate exists Lint monitoring rules:
  • run promtool checks
  • render prometheus rules

Settings example

Module level

This linter has settings.

linters-settings:
  templates:
    # disable grafana-dashboards rule
    grafana-dashboards:
      disable: true
    exclude-rules:
      # exclude if target ref equals one of
      vpa:
        - kind: Deployment
          name: standby-holder-name
      # exclude if target ref equals one of
      pdb:
        - kind: Deployment
          name: standby-holder-name
      # exclude if service name equals one of
      service-port:
        - d8-control-plane-apiserver
      # exclude if object namespace equals one of
      kube-rbac-proxy:
        - d8-system
    impact: error

Documentation

Index

Constants

View Source
const (
	ID = "templates"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Templates

type Templates struct {
	ErrorList *errors.LintRuleErrorsList
	// contains filtered or unexported fields
}

Templates linter

func New

func New(cfg *config.ModuleConfig, errorList *errors.LintRuleErrorsList) *Templates

func (*Templates) Desc

func (l *Templates) Desc() string

func (*Templates) Name

func (l *Templates) Name() string

func (*Templates) Run

func (l *Templates) Run(m *module.Module)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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