Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoLocationsConfigured = errors.New("no policy locations configured")
View Source
var ErrResourceMustHaveKind = errors.New("resource does not have kind")
View Source
var ErrResourceMustHaveMetadata = errors.New("resource does not have metadata")
View Source
var ErrResourceMustHaveName = errors.New("resource does not have name")
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
func NewChecker ¶
func NewChecker(cfg config.ServerConfig) (*Checker, error)
func (*Checker) Check ¶
Check runs the conftest validation against an application in a given repository path. It generates a summary string with the results, which can later be posted as a GitLab comment. The validation checks resources against Zapier policies and provides feedback for warnings or errors as informational messages. Failure to pass a policy check currently does not block deploy.
Click to show internal directories.
Click to hide internal directories.