fixtures

package
v3.9.9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemplateAlwaysValidate = `` /* 367-byte string literal not displayed */

	TemplateNeverValidate = `` /* 359-byte string literal not displayed */

	TemplateNeverValidateTwice = `` /* 462-byte string literal not displayed */

	TemplateUnsupportedVersion = `` /* 370-byte string literal not displayed */

	TemplateInvalidYAML = `` /* 371-byte string literal not displayed */

	TemplateMarshalError = `
kind: ConstraintTemplate
apiVersion: templates.gatekeeper.sh/v1beta1
metadata:
  name: alwaysvalidate
spec: [a, b, c]
`

	TemplateCompileError = `` /* 355-byte string literal not displayed */

	ConstraintAlwaysValidate = `
kind: AlwaysValidate
apiVersion: constraints.gatekeeper.sh/v1beta1
metadata:
  name: always-pass
`

	ConstraintExcludedNamespace = `` /* 162-byte string literal not displayed */

	ConstraintIncludedNamespace = `` /* 154-byte string literal not displayed */

	ConstraintClusterScope = `` /* 146-byte string literal not displayed */

	ConstraintNamespaceSelector = `` /* 184-byte string literal not displayed */

	ConstraintNeverValidate = `
kind: NeverValidate
apiVersion: constraints.gatekeeper.sh/v1beta1
metadata:
  name: always-fail
`

	ConstraintNeverValidateTwice = `
kind: NeverValidateTwice
apiVersion: constraints.gatekeeper.sh/v1beta1
metadata:
  name: always-fail-twice
`

	ConstraintInvalidYAML = `
kind: AlwaysValidate
apiVersion: constraints.gatekeeper.sh/v1beta1
metadata:
  name: always-pass
  {}: {}
`

	ConstraintWrongTemplate = `
kind: Other
apiVersion: constraints.gatekeeper.sh/v1beta1
metadata:
  name: other
`

	Object = `
kind: Object
apiVersion: group.sh/v1
metadata:
  name: object
`
	ObjectMultiple = `` /* 131-byte string literal not displayed */

	ObjectIncluded = `
kind: Object
apiVersion: group.sh/v1
metadata:
  name: object
  namespace: included
`

	ObjectExcluded = `
kind: Object
apiVersion: group.sh/v1
metadata:
  name: object
  namespace: excluded
`

	ObjectNamespaceScope = `
kind: Object
apiVersion: group.sh/v1
metadata:
  name: object
  namespace: foo
`

	ObjectClusterScope = `
kind: Object
apiVersion: group.sh/v1
metadata:
  name: object
`

	ObjectInvalid = `
kind Object
apiVersion: group.sh/v1
metadata:
  name: object`

	ObjectEmpty = ``

	ObjectInvalidInventory = `
kind: Object
metadata:
  name: object
---
kind: Object
apiVersion: group.sh/v1
metadata:
  name: object`

	NamespaceSelected = `
kind: Namespace
apiVersion: /v1
metadata:
  name: foo
  labels:
    bar: qux
`
	NamespaceNotSelected = `
kind: Namespace
apiVersion: /v1
metadata:
  name: foo
  labels:
    bar: bar
`

	TemplateReferential = `` /* 1662-byte string literal not displayed */

	ConstraintReferential = `` /* 162-byte string literal not displayed */

	ObjectReferentialInventory = `` /* 159-byte string literal not displayed */

	ObjectReferentialAllow = `` /* 165-byte string literal not displayed */

	ObjectReferentialDeny = `` /* 162-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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