Documentation
¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the ec2.aws v1alpha2 API group +kubebuilder:object:generate=true +groupName=ec2.aws.wildlife.io
Index ¶
- Constants
- Variables
- type IngressRule
- type SecurityGroup
- func (in *SecurityGroup) DeepCopy() *SecurityGroup
- func (in *SecurityGroup) DeepCopyInto(out *SecurityGroup)
- func (in *SecurityGroup) DeepCopyObject() runtime.Object
- func (sg *SecurityGroup) GetConditions() clusterv1beta1.Conditions
- func (sg *SecurityGroup) SetConditions(conditions clusterv1beta1.Conditions)
- type SecurityGroupList
- type SecurityGroupSpec
- type SecurityGroupStatus
Constants ¶
const ( // CrossplaneResourceReadyCondition reports on the successful management of the Crossplane resource. CrossplaneResourceReadyCondition clusterv1beta1.ConditionType = "CrossplaneResourceReady" // SecurityGroupReadyCondition reports on the readiness of the SecurityGroup in AWS. SecurityGroupReadyCondition clusterv1beta1.ConditionType = "SecurityGroupReady" // SecurityGroupAttachedCondition reports on the successful attachment of the SecurityGroup in the InfrastructureRef. SecurityGroupAttachedCondition clusterv1beta1.ConditionType = "SecurityGroupAttachedReady" )
const ( // CrossplaneResourceReconciliationFailedReason (Severity=Error) indicates that Crossplane resource couldn't be created/updated. CrossplaneResourceReconciliationFailedReason = "CrossplaneResourceReconciliationFailed" // SecurityGroupAttachmentFailedReason (Severity=Error) indicates that the SecurityGroup couldn´t be attached in the InfrastructureRef. SecurityGroupAttachmentFailedReason = "SecurityGroupAttachmentReconciliationFailed" // SecurityGroupAttachmentFailedReason (Severity=Normal) indicates that the reconciliation for the SecurityGroup is paused. ReasonReconcilePaused = "ReconcilePaused" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "ec2.aws.wildlife.io", Version: "v1alpha2"} // 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 IngressRule ¶
type IngressRule struct {
// The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers
// (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
IPProtocol string `json:"ipProtocol,omitempty"`
// The start of port range for the TCP and UDP protocols, or an ICMP code.
// A value of -1 indicates all ICMP codes.
FromPort int32 `json:"fromPort,omitempty"`
// The end of port range for the TCP and UDP protocols, or an ICMP code.
// A value of -1 indicates all ICMP codes.
ToPort int32 `json:"toPort,omitempty"`
// AllowedCIDRBlocks is a list of CIDR blocks allowed to access the referenced infrastructure.
AllowedCIDRBlocks []string `json:"allowedCIDRs,omitempty"`
}
func (*IngressRule) DeepCopy ¶
func (in *IngressRule) DeepCopy() *IngressRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
func (*IngressRule) DeepCopyInto ¶
func (in *IngressRule) DeepCopyInto(out *IngressRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecurityGroup ¶
type SecurityGroup struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SecurityGroupSpec `json:"spec,omitempty"`
Status SecurityGroupStatus `json:"status,omitempty"`
}
SecurityGroup is the Schema for the securitygroups API
func (*SecurityGroup) DeepCopy ¶
func (in *SecurityGroup) DeepCopy() *SecurityGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroup.
func (*SecurityGroup) DeepCopyInto ¶
func (in *SecurityGroup) DeepCopyInto(out *SecurityGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecurityGroup) DeepCopyObject ¶
func (in *SecurityGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SecurityGroup) GetConditions ¶
func (sg *SecurityGroup) GetConditions() clusterv1beta1.Conditions
GetConditions returns the set of conditions for this object.
func (*SecurityGroup) SetConditions ¶
func (sg *SecurityGroup) SetConditions(conditions clusterv1beta1.Conditions)
SetConditions sets the conditions on this object.
type SecurityGroupList ¶
type SecurityGroupList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []SecurityGroup `json:"items"`
}
SecurityGroupList contains a list of SecurityGroup
func (*SecurityGroupList) DeepCopy ¶
func (in *SecurityGroupList) DeepCopy() *SecurityGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupList.
func (*SecurityGroupList) DeepCopyInto ¶
func (in *SecurityGroupList) DeepCopyInto(out *SecurityGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecurityGroupList) DeepCopyObject ¶
func (in *SecurityGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecurityGroupSpec ¶
type SecurityGroupSpec struct {
// IngressRules is a list of ingress rules to apply to the Crossplane SecurityGroup.
IngressRules []IngressRule `json:"ingressRules,omitempty"`
// InfrastructureRef is a reference to a provider-specific resource.
InfrastructureRef []*corev1.ObjectReference `json:"infrastructureRef,omitempty"`
}
SecurityGroupSpec defines the desired state of SecurityGroup
func (*SecurityGroupSpec) DeepCopy ¶
func (in *SecurityGroupSpec) DeepCopy() *SecurityGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupSpec.
func (*SecurityGroupSpec) DeepCopyInto ¶
func (in *SecurityGroupSpec) DeepCopyInto(out *SecurityGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecurityGroupStatus ¶
type SecurityGroupStatus struct {
// Ready denotes that the SecurityGroup resource is created and attached
// +kubebuilder:default=false
Ready bool `json:"ready,omitempty"`
// ErrorMessage indicates that there is a terminal problem reconciling the
// state, and will be set to a descriptive error message.
// +optional
FailureMessage *string `json:"failureMessage,omitempty"`
// Conditions defines current service state of the SecurityGroup.
// +optional
Conditions clusterv1beta1.Conditions `json:"conditions,omitempty"`
// AppliedInfrastructureRef is the currently applied attachments to machine pools. At
// the end of the reconciliation this field is updated with the current references
AppliedInfrastructureRef []*corev1.ObjectReference `json:"infrastructureRef,omitempty"`
}
SecurityGroupStatus defines the observed state of SecurityGroup
func (*SecurityGroupStatus) DeepCopy ¶
func (in *SecurityGroupStatus) DeepCopy() *SecurityGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupStatus.
func (*SecurityGroupStatus) DeepCopyInto ¶
func (in *SecurityGroupStatus) DeepCopyInto(out *SecurityGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.