types

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Copyright Contributors to the Open Cluster Management project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	ComplianceType string                   `json:"complianceType,omitempty" yaml:"complianceType,omitempty"`
	Patches        []map[string]interface{} `json:"patches,omitempty" yaml:"patches,omitempty"`
	Path           string                   `json:"path,omitempty" yaml:"path,omitempty"`
}

type NamespaceSelector

type NamespaceSelector struct {
	Exclude []string `json:"exclude,omitempty" yaml:"exclude,omitempty"`
	Include []string `json:"include,omitempty" yaml:"include,omitempty"`
}

type PlacementConfig

type PlacementConfig struct {
	ClusterSelectors  map[string]string `json:"clusterSelectors,omitempty" yaml:"clusterSelectors,omitempty"`
	LabelSelector     map[string]string `json:"labelSelector,omitempty" yaml:"labelSelector,omitempty"`
	Name              string            `json:"name,omitempty" yaml:"name,omitempty"`
	PlacementPath     string            `json:"placementPath,omitempty" yaml:"placementPath,omitempty"`
	PlacementRulePath string            `json:"placementRulePath,omitempty" yaml:"placementRulePath,omitempty"`
}

type PolicyConfig

type PolicyConfig struct {
	Categories     []string `json:"categories,omitempty" yaml:"categories,omitempty"`
	ComplianceType string   `json:"complianceType,omitempty" yaml:"complianceType,omitempty"`
	Controls       []string `json:"controls,omitempty" yaml:"controls,omitempty"`
	// This a slice of structs to allow additional configuration related to a manifest such as
	// accepting patches.
	Manifests         []Manifest        `json:"manifests,omitempty" yaml:"manifests,omitempty"`
	Name              string            `json:"name,omitempty" yaml:"name,omitempty"`
	NamespaceSelector NamespaceSelector `json:"namespaceSelector,omitempty" yaml:"namespaceSelector,omitempty"`
	// This is named Placement so that eventually PlacementRules and Placements will be supported
	Placement                PlacementConfig `json:"placement,omitempty" yaml:"placement,omitempty"`
	RemediationAction        string          `json:"remediationAction,omitempty" yaml:"remediationAction,omitempty"`
	Severity                 string          `json:"severity,omitempty" yaml:"severity,omitempty"`
	Standards                []string        `json:"standards,omitempty" yaml:"standards,omitempty"`
	ConsolidateManifests     bool            `json:"consolidateManifests,omitempty" yaml:"consolidateManifests,omitempty"`
	Disabled                 bool            `json:"disabled,omitempty" yaml:"disabled,omitempty"`
	InformGatekeeperPolicies bool            `json:"informGatekeeperPolicies,omitempty" yaml:"informGatekeeperPolicies,omitempty"`
	InformKyvernoPolicies    bool            `json:"informKyvernoPolicies,omitempty" yaml:"informKyvernoPolicies,omitempty"`
}

PolicyConfig represents a policy entry in the PolicyGenerator configuration.

type PolicyDefaults

type PolicyDefaults struct {
	Categories        []string          `json:"categories,omitempty" yaml:"categories,omitempty"`
	ComplianceType    string            `json:"complianceType,omitempty" yaml:"complianceType,omitempty"`
	Controls          []string          `json:"controls,omitempty" yaml:"controls,omitempty"`
	Namespace         string            `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	NamespaceSelector NamespaceSelector `json:"namespaceSelector,omitempty" yaml:"namespaceSelector,omitempty"`
	// This is named Placement so that eventually PlacementRules and Placements will be supported
	Placement                PlacementConfig `json:"placement,omitempty" yaml:"placement,omitempty"`
	RemediationAction        string          `json:"remediationAction,omitempty" yaml:"remediationAction,omitempty"`
	Severity                 string          `json:"severity,omitempty" yaml:"severity,omitempty"`
	Standards                []string        `json:"standards,omitempty" yaml:"standards,omitempty"`
	ConsolidateManifests     bool            `json:"consolidateManifests,omitempty" yaml:"consolidateManifests,omitempty"`
	InformGatekeeperPolicies bool            `json:"informGatekeeperPolicies,omitempty" yaml:"informGatekeeperPolicies,omitempty"`
	InformKyvernoPolicies    bool            `json:"informKyvernoPolicies,omitempty" yaml:"informKyvernoPolicies,omitempty"`
}

Jump to

Keyboard shortcuts

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