v1

package
v0.0.0-...-73c46f4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the apis v1 API group +kubebuilder:object:generate=true +groupName=apis.integrityshield.io

Index

Constants

View Source
const (
	DefaultIShieldWebhookTimeout = 10
	DefaultIShieldAPILabel       = "integrity-shield-api"

	CleanupFinalizerName = "cleanup.finalizers.integrityshield.io"
	CsvPath              = "./bundle/manifests/integrity-shield-operator.clusterserviceversion.yaml"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "apis.integrityshield.io", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type APIContainer

type APIContainer struct {
	Name            string                  `json:"name,omitempty"`
	SelectorLabels  map[string]string       `json:"selector,omitempty"`
	SecurityContext *v1.SecurityContext     `json:"securityContext,omitempty"`
	ImagePullPolicy v1.PullPolicy           `json:"imagePullPolicy,omitempty"`
	Image           string                  `json:"image,omitempty"`
	Tag             string                  `json:"imageTag,omitempty"`
	Port            int32                   `json:"port,omitempty"`
	Resources       v1.ResourceRequirements `json:"resources,omitempty"`
}

func (*APIContainer) DeepCopy

func (in *APIContainer) DeepCopy() *APIContainer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIContainer.

func (*APIContainer) DeepCopyInto

func (in *APIContainer) DeepCopyInto(out *APIContainer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ControllerContainer

type ControllerContainer struct {
	Name            string                  `json:"name,omitempty"`
	SelectorLabels  map[string]string       `json:"selector,omitempty"`
	SecurityContext *v1.SecurityContext     `json:"securityContext,omitempty"`
	ImagePullPolicy v1.PullPolicy           `json:"imagePullPolicy,omitempty"`
	Image           string                  `json:"image,omitempty"`
	Tag             string                  `json:"imageTag,omitempty"`
	Port            int32                   `json:"port,omitempty"`
	Resources       v1.ResourceRequirements `json:"resources,omitempty"`
	Log             LogConfig               `json:"log,omitempty"`
}

func (*ControllerContainer) DeepCopy

func (in *ControllerContainer) DeepCopy() *ControllerContainer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerContainer.

func (*ControllerContainer) DeepCopyInto

func (in *ControllerContainer) DeepCopyInto(out *ControllerContainer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IntegrityShield

type IntegrityShield struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   IntegrityShieldSpec   `json:"spec,omitempty"`
	Status IntegrityShieldStatus `json:"status,omitempty"`
}

IntegrityShield is the Schema for the integrityshields API

func (*IntegrityShield) DeepCopy

func (in *IntegrityShield) DeepCopy() *IntegrityShield

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrityShield.

func (*IntegrityShield) DeepCopyInto

func (in *IntegrityShield) DeepCopyInto(out *IntegrityShield)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IntegrityShield) DeepCopyObject

func (in *IntegrityShield) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IntegrityShieldList

type IntegrityShieldList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []IntegrityShield `json:"items"`
}

IntegrityShieldList contains a list of IntegrityShield

func (*IntegrityShieldList) DeepCopy

func (in *IntegrityShieldList) DeepCopy() *IntegrityShieldList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrityShieldList.

func (*IntegrityShieldList) DeepCopyInto

func (in *IntegrityShieldList) DeepCopyInto(out *IntegrityShieldList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IntegrityShieldList) DeepCopyObject

func (in *IntegrityShieldList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IntegrityShieldSpec

type IntegrityShieldSpec struct {
	MaxSurge       *intstr.IntOrString `json:"maxSurge,omitempty"`
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
	ReplicaCount   *int32              `json:"replicaCount,omitempty"`
	MetaLabels     map[string]string   `json:"labels,omitempty"`
	NodeSelector   map[string]string   `json:"nodeSelector,omitempty"`
	Affinity       *v1.Affinity        `json:"affinity,omitempty"`
	Tolerations    []v1.Toleration     `json:"tolerations,omitempty"`

	Security SecurityConfig `json:"security,omitempty"`

	// request handler
	API                      APIContainer `json:"shieldApi,omitempty"`
	RequestHandlerConfigKey  string       `json:"requestHandlerConfigKey,omitempty"`
	RequestHandlerConfigName string       `json:"requestHandlerConfigName,omitempty"`
	RequestHandlerConfig     string       `json:"requestHandlerConfig,omitempty"`
	ApiServiceName           string       `json:"shieldApiServiceName,omitempty"`
	ApiServicePort           int32        `json:"shieldApiServicePort,omitempty"`

	// admission controller
	ControllerContainer           ControllerContainer `json:"admissionController,omitempty"`
	AdmissionControllerConfigKey  string              `json:"admissionControllerConfigKey,omitempty"`
	AdmissionControllerConfigName string              `json:"admissionControllerConfigName,omitempty"`
	AdmissionControllerConfig     string              `json:"admissionControllerConfig,omitempty"`

	// observer
	Observer Observer `json:"observer,omitempty"`

	APITlsSecretName           string     `json:"shieldApiTlsSecretName,omitempty"`
	WebhookServerTlsSecretName string     `json:"webhookServerTlsSecretName,omitempty"`
	WebhookServiceName         string     `json:"webhookServiceName,omitempty"`
	WebhookConfigName          string     `json:"webhookConfigName,omitempty"`
	WebhookNamespacedResource  admv1.Rule `json:"webhookNamespacedResource,omitempty"`
	WebhookClusterResource     admv1.Rule `json:"webhookClusterResource,omitempty"`

	// gatekeeper
	UseGatekeeper bool   `json:"useGatekeeper,omitempty"`
	Rego          string `json:"rego,omitempty"`
}

IntegrityShieldSpec defines the desired state of IntegrityShield

func (*IntegrityShieldSpec) DeepCopy

func (in *IntegrityShieldSpec) DeepCopy() *IntegrityShieldSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrityShieldSpec.

func (*IntegrityShieldSpec) DeepCopyInto

func (in *IntegrityShieldSpec) DeepCopyInto(out *IntegrityShieldSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IntegrityShieldStatus

type IntegrityShieldStatus struct {
}

IntegrityShieldStatus defines the observed state of IntegrityShield

func (*IntegrityShieldStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrityShieldStatus.

func (*IntegrityShieldStatus) DeepCopyInto

func (in *IntegrityShieldStatus) DeepCopyInto(out *IntegrityShieldStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LogConfig

type LogConfig struct {
	LogLevel  string `json:"level,omitempty"`
	LogFormat string `json:"format,omitempty"`
}

func (*LogConfig) DeepCopy

func (in *LogConfig) DeepCopy() *LogConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogConfig.

func (*LogConfig) DeepCopyInto

func (in *LogConfig) DeepCopyInto(out *LogConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Observer

type Observer struct {
	Enabled                bool                    `json:"enabled,omitempty"`
	Name                   string                  `json:"name,omitempty"`
	SelectorLabels         map[string]string       `json:"selector,omitempty"`
	ImagePullPolicy        v1.PullPolicy           `json:"imagePullPolicy,omitempty"`
	Image                  string                  `json:"image,omitempty"`
	Tag                    string                  `json:"imageTag,omitempty"`
	SecurityContext        *v1.SecurityContext     `json:"securityContext,omitempty"`
	LogLevel               string                  `json:"logLevel,omitempty"`
	Interval               string                  `json:"interval,omitempty"`
	ExportDetailResult     bool                    `json:"exportDetailResult,omitempty"`
	Provenanece            bool                    `json:"provenanece,omitempty"`
	ResultDetailConfigName string                  `json:"resultDetailConfigName,omitempty"`
	ResultDetailConfigKey  string                  `json:"resultDetailConfigKey,omitempty"`
	Resources              v1.ResourceRequirements `json:"resources,omitempty"`
}

func (*Observer) DeepCopy

func (in *Observer) DeepCopy() *Observer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Observer.

func (*Observer) DeepCopyInto

func (in *Observer) DeepCopyInto(out *Observer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecurityConfig

type SecurityConfig struct {
	APIServiceAccountName      string                 `json:"serviceAccountName,omitempty"`
	ObserverServiceAccountName string                 `json:"observerServiceAccountName,omitempty"`
	ObserverRole               string                 `json:"observerRole,omitempty"`
	ObserverRoleBinding        string                 `json:"observerRoleBinding,omitempty"`
	APIRole                    string                 `json:"role,omitempty"`
	APIRoleBinding             string                 `json:"roleBinding,omitempty"`
	PodSecurityPolicyName      string                 `json:"podSecurityPolicyName,omitempty"`
	PodSecurityContext         *v1.PodSecurityContext `json:"securityContext,omitempty"`
}

func (*SecurityConfig) DeepCopy

func (in *SecurityConfig) DeepCopy() *SecurityConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityConfig.

func (*SecurityConfig) DeepCopyInto

func (in *SecurityConfig) DeepCopyInto(out *SecurityConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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