rbac

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: 4 Imported by: 0

README

Description

Checks RBACv1 (deprecated) rules

Settings example

Module level

linters-settings:
  rbac:
    exclude-rules:
      # exclude if object kind and object name equals
      wildcards:
        - kind: ClusterRole
          name: d8:deckhouse:webhook-handler
      # exclude if object kind and object name equals
      placement:
        - kind: ClusterRole
          name: d8:rbac-proxy
      # exclude binding subjects by name
      binding-subject:
        - cdi-sa
        - kubevirt-internal-virtualization-controller
        - kubevirt-internal-virtualization-handler
  impact: error

Documentation

Index

Constants

View Source
const (
	ID = "rbac"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Rbac

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

Rbac linter

func New

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

func (*Rbac) Desc

func (l *Rbac) Desc() string

func (*Rbac) Name

func (l *Rbac) Name() string

func (*Rbac) Run

func (l *Rbac) 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