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 ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type AwsAccountCredential
- type AzureAccountCredential
- type CloudEntitySelector
- type CloudEntitySelectorList
- type CloudEntitySelectorSpec
- type CloudEntitySelectorStatus
- type CloudProviderAccount
- type CloudProviderAccountAWSConfig
- type CloudProviderAccountAzureConfig
- type CloudProviderAccountList
- type CloudProviderAccountSpec
- type CloudProviderAccountStatus
- type EntityMatch
- type SecretReference
- type VirtualMachineSelector
Constants ¶
const (
DefaultPollIntervalInSeconds = 60
)
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 AwsAccountCredential ¶
type AwsAccountCredential struct { AccessKeyID string `json:"accessKeyId,omitempty"` AccessKeySecret string `json:"accessKeySecret,omitempty"` SessionToken string `json:"sessionToken,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"` Status CloudEntitySelectorStatus `json:"status,omitempty"` }
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 the name of CloudProviderAccount. AccountName string `json:"accountName"` // AccountNamespace specifies the namespace of CloudProviderAccount. AccountNamespace string `json:"accountNamespace"` // 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 CloudEntitySelectorStatus ¶ added in v0.5.0
type CloudEntitySelectorStatus struct { // Error is current error, if any, of the CloudEntitySelector. Error string `json:"error,omitempty"` }
CloudEntitySelectorStatus defines the observed state of CloudEntitySelector.
func (*CloudEntitySelectorStatus) DeepCopy ¶ added in v0.5.0
func (in *CloudEntitySelectorStatus) DeepCopy() *CloudEntitySelectorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEntitySelectorStatus.
func (*CloudEntitySelectorStatus) DeepCopyInto ¶ added in v0.5.0
func (in *CloudEntitySelectorStatus) DeepCopyInto(out *CloudEntitySelectorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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"` // 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"` }
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 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 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.