Documentation ¶
Overview ¶
+groupName=crd.cloud.antrea.io
Package v1alpha1 contains API Schema definitions for the cloud v1alpha1 API group +kubebuilder:object:generate=true +groupName=crd.cloud.antrea.io
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type AddressType
- type AwsAccountCredential
- type AzureAccountCredential
- type CloudEntitySelector
- type CloudEntitySelectorList
- type CloudEntitySelectorSpec
- type CloudProvider
- type CloudProviderAccount
- type CloudProviderAccountAWSConfig
- type CloudProviderAccountAzureConfig
- type CloudProviderAccountList
- type CloudProviderAccountSpec
- type CloudProviderAccountStatus
- type EntityMatch
- type IPAddress
- type NetworkInterface
- type SecretReference
- type VMState
- type VirtualMachine
- type VirtualMachineList
- type VirtualMachineSelector
- type VirtualMachineStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "crd.cloud.antrea.io", 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 )
var SchemeGroupVersion = GroupVersion
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AddressType ¶
type AddressType string
const ( // Address type is host name. AddressTypeHostName AddressType = "HostName" // Address type is internal IP. AddressTypeInternalIP AddressType = "InternalIP" // Address type is external IP. AddressTypeExternalIP AddressType = "ExternalIP" )
type AwsAccountCredential ¶
type AwsAccountCredential struct { AccessKeyID string `json:"accessKeyId,omitempty"` AccessKeySecret string `json:"accessKeySecret,omitempty"` RoleArn string `json:"roleArn,omitempty"` ExternalID string `json:"externalId,omitempty"` }
AwsAccountCredential is the format of k8s secret for aws provider account.
func (*AwsAccountCredential) DeepCopy ¶
func (in *AwsAccountCredential) DeepCopy() *AwsAccountCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsAccountCredential.
func (*AwsAccountCredential) DeepCopyInto ¶
func (in *AwsAccountCredential) DeepCopyInto(out *AwsAccountCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureAccountCredential ¶
type AzureAccountCredential struct { SubscriptionID string `json:"subscriptionId,omitempty"` ClientID string `json:"clientId,omitempty"` TenantID string `json:"tenantId,omitempty"` ClientKey string `json:"clientKey,omitempty"` }
AzureAccountCredential is the format of k8s secret for azure provider account.
func (*AzureAccountCredential) DeepCopy ¶
func (in *AzureAccountCredential) DeepCopy() *AzureAccountCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureAccountCredential.
func (*AzureAccountCredential) DeepCopyInto ¶
func (in *AzureAccountCredential) DeepCopyInto(out *AzureAccountCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudEntitySelector ¶
type CloudEntitySelector struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CloudEntitySelectorSpec `json:"spec,omitempty"` }
+kubebuilder:resource:shortName="ces" CloudEntitySelector is the Schema for the cloudentityselectors API.
func (*CloudEntitySelector) DeepCopy ¶
func (in *CloudEntitySelector) DeepCopy() *CloudEntitySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEntitySelector.
func (*CloudEntitySelector) DeepCopyInto ¶
func (in *CloudEntitySelector) DeepCopyInto(out *CloudEntitySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudEntitySelector) DeepCopyObject ¶
func (in *CloudEntitySelector) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudEntitySelectorList ¶
type CloudEntitySelectorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CloudEntitySelector `json:"items"` }
CloudEntitySelectorList contains a list of CloudEntitySelector.
func (*CloudEntitySelectorList) DeepCopy ¶
func (in *CloudEntitySelectorList) DeepCopy() *CloudEntitySelectorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEntitySelectorList.
func (*CloudEntitySelectorList) DeepCopyInto ¶
func (in *CloudEntitySelectorList) DeepCopyInto(out *CloudEntitySelectorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudEntitySelectorList) DeepCopyObject ¶
func (in *CloudEntitySelectorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudEntitySelectorSpec ¶
type CloudEntitySelectorSpec struct { // AccountName specifies cloud account in this CloudProvider. AccountName string `json:"accountName,omitempty"` // VMSelector selects the VirtualMachines the user has modify privilege. // VMSelector is mandatory, at least one selector under VMSelector is required. // It is an array, VirtualMachines satisfying any item on VMSelector are selected(ORed). VMSelector []VirtualMachineSelector `json:"vmSelector"` }
CloudEntitySelectorSpec defines the desired state of CloudEntitySelector.
func (*CloudEntitySelectorSpec) DeepCopy ¶
func (in *CloudEntitySelectorSpec) DeepCopy() *CloudEntitySelectorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEntitySelectorSpec.
func (*CloudEntitySelectorSpec) DeepCopyInto ¶
func (in *CloudEntitySelectorSpec) DeepCopyInto(out *CloudEntitySelectorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudProvider ¶
type CloudProvider string
+kubebuilder:validation:Enum=Azure;AWS CloudProvider specifies a cloud provider.
const ( // AzureCloudProvider specifies Azure. AzureCloudProvider CloudProvider = "Azure" // AWSCloudProvider specifies AWS. AWSCloudProvider CloudProvider = "AWS" )
type CloudProviderAccount ¶
type CloudProviderAccount struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CloudProviderAccountSpec `json:"spec,omitempty"` Status CloudProviderAccountStatus `json:"status,omitempty"` }
+kubebuilder:resource:shortName="cpa" +kubebuilder:subresource:status CloudProviderAccount is the Schema for the cloudprovideraccounts API.
func (*CloudProviderAccount) DeepCopy ¶
func (in *CloudProviderAccount) DeepCopy() *CloudProviderAccount
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProviderAccount.
func (*CloudProviderAccount) DeepCopyInto ¶
func (in *CloudProviderAccount) DeepCopyInto(out *CloudProviderAccount)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudProviderAccount) DeepCopyObject ¶
func (in *CloudProviderAccount) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudProviderAccountAWSConfig ¶
type CloudProviderAccountAWSConfig struct { // Reference to k8s secret which has cloud provider credentials. SecretRef *SecretReference `json:"secretRef,omitempty"` // Cloud provider account region. Region string `json:"region,omitempty"` // Endpoint URL that overrides the default AWS generated endpoint. Endpoint string `json:"endpoint,omitempty"` }
func (*CloudProviderAccountAWSConfig) DeepCopy ¶
func (in *CloudProviderAccountAWSConfig) DeepCopy() *CloudProviderAccountAWSConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProviderAccountAWSConfig.
func (*CloudProviderAccountAWSConfig) DeepCopyInto ¶
func (in *CloudProviderAccountAWSConfig) DeepCopyInto(out *CloudProviderAccountAWSConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudProviderAccountAzureConfig ¶
type CloudProviderAccountAzureConfig struct { SecretRef *SecretReference `json:"secretRef,omitempty"` Region string `json:"region,omitempty"` }
func (*CloudProviderAccountAzureConfig) DeepCopy ¶
func (in *CloudProviderAccountAzureConfig) DeepCopy() *CloudProviderAccountAzureConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProviderAccountAzureConfig.
func (*CloudProviderAccountAzureConfig) DeepCopyInto ¶
func (in *CloudProviderAccountAzureConfig) DeepCopyInto(out *CloudProviderAccountAzureConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudProviderAccountList ¶
type CloudProviderAccountList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CloudProviderAccount `json:"items"` }
CloudProviderAccountList contains a list of CloudProviderAccount.
func (*CloudProviderAccountList) DeepCopy ¶
func (in *CloudProviderAccountList) DeepCopy() *CloudProviderAccountList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProviderAccountList.
func (*CloudProviderAccountList) DeepCopyInto ¶
func (in *CloudProviderAccountList) DeepCopyInto(out *CloudProviderAccountList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudProviderAccountList) DeepCopyObject ¶
func (in *CloudProviderAccountList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudProviderAccountSpec ¶
type CloudProviderAccountSpec struct { // PollIntervalInSeconds defines account poll interval (default value is 60, if not specified). PollIntervalInSeconds *uint `json:"pollIntervalInSeconds,omitempty"` // Cloud provider account config. AWSConfig *CloudProviderAccountAWSConfig `json:"awsConfig,omitempty"` // Cloud provider account config. AzureConfig *CloudProviderAccountAzureConfig `json:"azureConfig,omitempty"` }
CloudProviderAccountSpec defines the desired state of CloudProviderAccount.
func (*CloudProviderAccountSpec) DeepCopy ¶
func (in *CloudProviderAccountSpec) DeepCopy() *CloudProviderAccountSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProviderAccountSpec.
func (*CloudProviderAccountSpec) DeepCopyInto ¶
func (in *CloudProviderAccountSpec) DeepCopyInto(out *CloudProviderAccountSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudProviderAccountStatus ¶
type CloudProviderAccountStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file // Error is current error, if any, of the CloudProviderAccount. Error string `json:"error,omitempty"` }
CloudProviderAccountStatus defines the observed state of CloudProviderAccount.
func (*CloudProviderAccountStatus) DeepCopy ¶
func (in *CloudProviderAccountStatus) DeepCopy() *CloudProviderAccountStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProviderAccountStatus.
func (*CloudProviderAccountStatus) DeepCopyInto ¶
func (in *CloudProviderAccountStatus) DeepCopyInto(out *CloudProviderAccountStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EntityMatch ¶
type EntityMatch struct { // MatchName matches cloud entities' name. If not specified, it matches any cloud entities. MatchName string `json:"matchName,omitempty"` // MatchID matches cloud entities' identifier. If not specified, it matches any cloud entities. MatchID string `json:"matchID,omitempty"` }
EntityMatch specifies match conditions to cloud entities. Cloud entities must satisfy all fields(ANDed) in EntityMatch to satisfy EntityMatch.
func (*EntityMatch) DeepCopy ¶
func (in *EntityMatch) DeepCopy() *EntityMatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EntityMatch.
func (*EntityMatch) DeepCopyInto ¶
func (in *EntityMatch) DeepCopyInto(out *EntityMatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPAddress ¶
type IPAddress struct { AddressType AddressType `json:"addressType"` Address string `json:"address"` }
func (*IPAddress) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddress.
func (*IPAddress) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkInterface ¶
type NetworkInterface struct { Name string `json:"name,omitempty"` // Hardware address of the interface. MAC string `json:"mac,omitempty"` // IP addresses of this NetworkInterface. IPs []IPAddress `json:"ips,omitempty"` }
NetworkInterface contains information pertaining to NetworkInterface.
func (*NetworkInterface) DeepCopy ¶
func (in *NetworkInterface) DeepCopy() *NetworkInterface
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterface.
func (*NetworkInterface) DeepCopyInto ¶
func (in *NetworkInterface) DeepCopyInto(out *NetworkInterface)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretReference ¶
type SecretReference struct { // Name of the secret. Name string `json:"name"` // Namespace of the secret. Namespace string `json:"namespace"` // Key to select in the secret. Key string `json:"key"` }
SecretReference is a reference to a k8s secret resource in an arbitrary namespace.
func (*SecretReference) DeepCopy ¶
func (in *SecretReference) DeepCopy() *SecretReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference.
func (*SecretReference) DeepCopyInto ¶
func (in *SecretReference) DeepCopyInto(out *SecretReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualMachine ¶
type VirtualMachine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status VirtualMachineStatus `json:"status,omitempty"` }
+kubebuilder:subresource:status +kubebuilder:resource:shortName="vm" +kubebuilder:printcolumn:name="Cloud-Provider",type=string,JSONPath=`.status.provider` +kubebuilder:printcolumn:name="Region",type=string,JSONPath=`.status.region` +kubebuilder:printcolumn:name="Virtual-Private-Cloud",type=string,JSONPath=`.status.virtualPrivateCloud` +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state` +kubebuilder:printcolumn:name="Agented",type=string,JSONPath=`.status.agented` VirtualMachine is the Schema for the virtualmachines API A virtualMachine object is created automatically based on matching criteria specification of CloudEntitySelector.
func (*VirtualMachine) DeepCopy ¶
func (in *VirtualMachine) DeepCopy() *VirtualMachine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachine.
func (*VirtualMachine) DeepCopyInto ¶
func (in *VirtualMachine) DeepCopyInto(out *VirtualMachine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachine) DeepCopyObject ¶
func (in *VirtualMachine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualMachineList ¶
type VirtualMachineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VirtualMachine `json:"items"` }
+kubebuilder:object:root=true VirtualMachineList contains a list of VirtualMachine.
func (*VirtualMachineList) DeepCopy ¶
func (in *VirtualMachineList) DeepCopy() *VirtualMachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineList.
func (*VirtualMachineList) DeepCopyInto ¶
func (in *VirtualMachineList) DeepCopyInto(out *VirtualMachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineList) DeepCopyObject ¶
func (in *VirtualMachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualMachineSelector ¶
type VirtualMachineSelector struct { // VpcMatch specifies the virtual private cloud to which VirtualMachines belong. // VpcMatch is ANDed with VMMatch. // If it is not specified, VirtualMachines may belong to any virtual private cloud. VpcMatch *EntityMatch `json:"vpcMatch,omitempty"` // VMMatch specifies VirtualMachines to match. // It is an array, match satisfying any item on VMMatch is selected(ORed). // If it is not specified, all VirtualMachines matching VpcMatch are selected. VMMatch []EntityMatch `json:"vmMatch,omitempty"` // Agented specifies if VM runs in agented mode, default is false. Agented bool `json:"agented,omitempty"` }
VirtualMachineSelector specifies VirtualMachine match criteria. VirtualMachines must satisfy all fields(ANDed) in a VirtualMachineSelector in order to satisfy match.
func (*VirtualMachineSelector) DeepCopy ¶
func (in *VirtualMachineSelector) DeepCopy() *VirtualMachineSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineSelector.
func (*VirtualMachineSelector) DeepCopyInto ¶
func (in *VirtualMachineSelector) DeepCopyInto(out *VirtualMachineSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualMachineStatus ¶
type VirtualMachineStatus struct { // Provider specifies cloud provider of this VirtualMachine. Provider CloudProvider `json:"provider,omitempty"` // VirtualPrivateCloud is the virtual private cloud this VirtualMachine belongs to. VirtualPrivateCloud string `json:"virtualPrivateCloud,omitempty"` // Tags of this VirtualMachine. A corresponding label is also generated for each tag. Tags map[string]string `json:"tags,omitempty"` // NetworkInterfaces is array of NetworkInterfaces attached to this VirtualMachine. NetworkInterfaces []NetworkInterface `json:"networkInterfaces,omitempty"` // State indicates current state of the VirtualMachine. State VMState `json:"state,omitempty"` // Region indicates the cloud region of the VirtualMachine. Region string `json:"region,omitempty"` // Agented specifies if VM runs in agented mode, default is false. Agented bool `json:"agented"` }
VirtualMachineStatus defines the observed state of VirtualMachine It contains observable parameters.
func (*VirtualMachineStatus) DeepCopy ¶
func (in *VirtualMachineStatus) DeepCopy() *VirtualMachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineStatus.
func (*VirtualMachineStatus) DeepCopyInto ¶
func (in *VirtualMachineStatus) DeepCopyInto(out *VirtualMachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.