v1beta1

package
Version: v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package v1beta1 contains API Schema definitions for the vpcresources v1beta1 API group +kubebuilder:object:generate=true +groupName=vpcresources.k8s.aws

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "vpcresources.k8s.aws", Version: "v1beta1"}

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

type GroupIds struct {
	// Groups is the list of EC2 Security Groups Ids that need to be applied to the ENI of a Pod.
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:MaxItems=5
	Groups []string `json:"groupIds,omitempty"`
}

GroupIds contains the list of security groups that will be applied to the network interface of the pod matching the criteria.

func (*GroupIds) DeepCopy

func (in *GroupIds) DeepCopy() *GroupIds

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

func (*GroupIds) DeepCopyInto

func (in *GroupIds) DeepCopyInto(out *GroupIds)

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

type SecurityGroupPolicy

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

	Spec SecurityGroupPolicySpec `json:"spec,omitempty"`
}

Custom Resource Definition for applying security groups to pods

func (*SecurityGroupPolicy) DeepCopy

func (in *SecurityGroupPolicy) DeepCopy() *SecurityGroupPolicy

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

func (*SecurityGroupPolicy) DeepCopyInto

func (in *SecurityGroupPolicy) DeepCopyInto(out *SecurityGroupPolicy)

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

func (*SecurityGroupPolicy) DeepCopyObject

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

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

type SecurityGroupPolicyList

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

SecurityGroupPolicyList contains a list of SecurityGroupPolicy

func (*SecurityGroupPolicyList) DeepCopy

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

func (*SecurityGroupPolicyList) DeepCopyInto

func (in *SecurityGroupPolicyList) DeepCopyInto(out *SecurityGroupPolicyList)

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

func (*SecurityGroupPolicyList) DeepCopyObject

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

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

type SecurityGroupPolicySpec

type SecurityGroupPolicySpec struct {
	PodSelector            *metav1.LabelSelector `json:"podSelector,omitempty"`
	ServiceAccountSelector *metav1.LabelSelector `json:"serviceAccountSelector,omitempty"`
	SecurityGroups         GroupIds              `json:"securityGroups,omitempty"`
}

SecurityGroupPolicySpec defines the desired state of SecurityGroupPolicy

func (*SecurityGroupPolicySpec) DeepCopy

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

func (*SecurityGroupPolicySpec) DeepCopyInto

func (in *SecurityGroupPolicySpec) DeepCopyInto(out *SecurityGroupPolicySpec)

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

type ServiceAccountSelector

type ServiceAccountSelector struct {
	*metav1.LabelSelector `json:",omitempty"`
	// matchNames is the list of service account names. The requirements are ANDed
	// +kubebuilder:validation:MinItems=1
	MatchNames []string `json:"matchNames,omitempty"`
}

ServiceAccountSelector contains the selection criteria for matching pod with service account that matches the label selector requirement and the exact name of the service account.

func (*ServiceAccountSelector) DeepCopy

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

func (*ServiceAccountSelector) DeepCopyInto

func (in *ServiceAccountSelector) DeepCopyInto(out *ServiceAccountSelector)

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