v1alpha1

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the validation v1alpha1 API group +kubebuilder:object:generate=true +groupName=validation.spectrocloud.labs

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "validation.spectrocloud.labs", Version: "v1alpha1"}

	// 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 ComputeResourceRule

type ComputeResourceRule struct {
	// Name is the name of the compute resource validation rule
	Name string `json:"name" yaml:"name"`
	// ClusterName is required when the vCenter Entity resides beneath a Cluster in the vCenter object hierarchy
	ClusterName string `json:"clusterName,omitempty" yaml:"clusterName"`
	// Scope is the scope of the compute resource validation rule
	Scope string `json:"scope" yaml:"scope"`
	// EntityName is the name of the entity to validate
	EntityName string `json:"entityName" yaml:"entityName"`
	// NodepoolResourceRequirements is the list of nodepool resource requirements
	NodepoolResourceRequirements []NodepoolResourceRequirement `json:"nodepoolResourceRequirements" yaml:"nodepoolResourceRequirements"`
}

ComputeResourceRule defines the compute resource validation rule

func (*ComputeResourceRule) DeepCopy

func (in *ComputeResourceRule) DeepCopy() *ComputeResourceRule

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

func (*ComputeResourceRule) DeepCopyInto

func (in *ComputeResourceRule) DeepCopyInto(out *ComputeResourceRule)

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

type EntityPrivilegeValidationRule

type EntityPrivilegeValidationRule struct {
	// Name is the name of the entity privilege validation rule
	Name string `json:"name" yaml:"name"`
	// Username is the username to validate against
	Username string `json:"username" yaml:"username"`
	// ClusterName is required when the vCenter Entity resides beneath a Cluster in the vCenter object hierarchy
	ClusterName string `json:"clusterName,omitempty" yaml:"clusterName"`
	// EntityType is the type of the entity to validate
	EntityType string `json:"entityType" yaml:"entityType"`
	// EntityName is the name of the entity to validate
	EntityName string `json:"entityName" yaml:"entityName"`
	// Privileges is the list of privileges to validate that the user has
	Privileges []string `json:"privileges" yaml:"privileges"`
}

EntityPrivilegeValidationRule defines the entity privilege validation rule

func (*EntityPrivilegeValidationRule) DeepCopy

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

func (*EntityPrivilegeValidationRule) DeepCopyInto

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

type GenericRolePrivilegeValidationRule

type GenericRolePrivilegeValidationRule struct {
	// Username is the username to validate against
	Username string `json:"username" yaml:"username"`
	// Privileges is the list of privileges to validate that the user has
	Privileges []string `json:"privileges" yaml:"privileges"`
}

GenericRolePrivilegeValidationRule defines the generic role privilege validation rule

func (*GenericRolePrivilegeValidationRule) DeepCopy

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

func (*GenericRolePrivilegeValidationRule) DeepCopyInto

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

type NTPValidationRule

type NTPValidationRule struct {
	// Name is the name of the NTP validation rule
	Name string `json:"name" yaml:"name"`
	// ClusterName is required when the vCenter Host(s) reside beneath a Cluster in the vCenter object hierarchy
	ClusterName string `json:"clusterName,omitempty" yaml:"clusterName,omitempty"`
	// Hosts is the list of vCenter Hosts to validate NTP configuration
	Hosts []string `json:"hosts" yaml:"hosts"`
}

NTPValidationRule defines the NTP validation rule

func (*NTPValidationRule) DeepCopy

func (in *NTPValidationRule) DeepCopy() *NTPValidationRule

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

func (*NTPValidationRule) DeepCopyInto

func (in *NTPValidationRule) DeepCopyInto(out *NTPValidationRule)

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

type NodepoolResourceRequirement

type NodepoolResourceRequirement struct {
	// Name is the name of the nodepool
	Name string `json:"name" yaml:"name"`
	// NumberOfNodes is the number of nodes in the nodepool
	NumberOfNodes int `json:"numberOfNodes" yaml:"numberOfNodes"`
	// CPU is the CPU requirement for the nodepool
	CPU string `json:"cpu" yaml:"cpu"`
	// Memory is the memory requirement for the nodepool
	Memory string `json:"memory" yaml:"memory"`
	// DiskSpace is the disk space requirement for the nodepool
	DiskSpace string `json:"diskSpace" yaml:"diskSpace"`
}

NodepoolResourceRequirement defines the resource requirements for a nodepool

func (*NodepoolResourceRequirement) DeepCopy

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

func (*NodepoolResourceRequirement) DeepCopyInto

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

type TagValidationRule

type TagValidationRule struct {
	// Name is the name of the tag validation rule
	Name string `json:"name" yaml:"name"`
	// ClusterName is required when the vCenter Entity resides beneath a Cluster in the vCenter object hierarchy
	ClusterName string `json:"clusterName,omitempty" yaml:"clusterName"`
	// EntityType is the type of the entity to validate
	EntityType string `json:"entityType" yaml:"entityType"`
	// EntityName is the name of the entity to validate
	EntityName string `json:"entityName" yaml:"entityName"`
	// Tag is the tag to validate on the entity
	Tag string `json:"tag" yaml:"tag"`
}

TagValidationRule defines the tag validation rule

func (*TagValidationRule) DeepCopy

func (in *TagValidationRule) DeepCopy() *TagValidationRule

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

func (*TagValidationRule) DeepCopyInto

func (in *TagValidationRule) DeepCopyInto(out *TagValidationRule)

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

type VsphereAuth

type VsphereAuth struct {
	// SecretName is the name of the secret containing the vSphere credentials
	SecretName string `json:"secretName,omitempty" yaml:"secretName,omitempty"`
	// CloudAccount is the vSphere cloud account to use for authentication
	CloudAccount *vsphere.CloudAccount `json:"cloudAccount,omitempty" yaml:"cloudAccount,omitempty"`
}

VsphereAuth defines authentication configuration for an VsphereValidator.

func (*VsphereAuth) DeepCopy

func (in *VsphereAuth) DeepCopy() *VsphereAuth

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

func (*VsphereAuth) DeepCopyInto

func (in *VsphereAuth) DeepCopyInto(out *VsphereAuth)

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

type VsphereValidator

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

	Spec   VsphereValidatorSpec   `json:"spec,omitempty"`
	Status VsphereValidatorStatus `json:"status,omitempty"`
}

VsphereValidator is the Schema for the vspherevalidators API

func (*VsphereValidator) DeepCopy

func (in *VsphereValidator) DeepCopy() *VsphereValidator

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

func (*VsphereValidator) DeepCopyInto

func (in *VsphereValidator) DeepCopyInto(out *VsphereValidator)

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

func (*VsphereValidator) DeepCopyObject

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

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

func (VsphereValidator) GetKind added in v0.0.30

func (v VsphereValidator) GetKind() string

GetKind returns the vSphere validator's kind.

func (VsphereValidator) PluginCode added in v0.0.29

func (v VsphereValidator) PluginCode() string

PluginCode returns the vSphere validator's plugin code.

func (VsphereValidator) ResultCount added in v0.0.29

func (v VsphereValidator) ResultCount() int

ResultCount returns the number of validation results expected for a VsphereValidator.

type VsphereValidatorList

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

VsphereValidatorList contains a list of VsphereValidator

func (*VsphereValidatorList) DeepCopy

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

func (*VsphereValidatorList) DeepCopyInto

func (in *VsphereValidatorList) DeepCopyInto(out *VsphereValidatorList)

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

func (*VsphereValidatorList) DeepCopyObject

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

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

type VsphereValidatorSpec

type VsphereValidatorSpec struct {
	Auth                           VsphereAuth                          `json:"auth" yaml:"auth"`
	Datacenter                     string                               `json:"datacenter" yaml:"datacenter"`
	EntityPrivilegeValidationRules []EntityPrivilegeValidationRule      `json:"entityPrivilegeValidationRules,omitempty" yaml:"entityPrivilegeValidationRules,omitempty"`
	RolePrivilegeValidationRules   []GenericRolePrivilegeValidationRule `json:"rolePrivilegeValidationRules,omitempty" yaml:"rolePrivilegeValidationRules,omitempty"`
	TagValidationRules             []TagValidationRule                  `json:"tagValidationRules,omitempty" yaml:"tagValidationRules,omitempty"`
	ComputeResourceRules           []ComputeResourceRule                `json:"computeResourceRules,omitempty" yaml:"computeResourceRules,omitempty"`
	NTPValidationRules             []NTPValidationRule                  `json:"ntpValidationRules,omitempty" yaml:"ntpValidationRules,omitempty"`
}

VsphereValidatorSpec defines the desired state of VsphereValidator

func (*VsphereValidatorSpec) DeepCopy

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

func (*VsphereValidatorSpec) DeepCopyInto

func (in *VsphereValidatorSpec) DeepCopyInto(out *VsphereValidatorSpec)

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

func (VsphereValidatorSpec) PluginCode added in v0.0.29

func (s VsphereValidatorSpec) PluginCode() string

PluginCode returns the vSphere validator's plugin code.

func (VsphereValidatorSpec) ResultCount

func (s VsphereValidatorSpec) ResultCount() int

ResultCount returns the number of validation results expected for an VsphereValidatorSpec.

type VsphereValidatorStatus

type VsphereValidatorStatus struct{}

VsphereValidatorStatus defines the observed state of VsphereValidator

func (*VsphereValidatorStatus) DeepCopy

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

func (*VsphereValidatorStatus) DeepCopyInto

func (in *VsphereValidatorStatus) DeepCopyInto(out *VsphereValidatorStatus)

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