Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions api/networking/v1alpha1/virtualip_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// VirtualIPSpec defines the desired state of VirtualIP
// VirtualIPSpec defines the desired state of a VirtualIP
type VirtualIPSpec struct {
// Type is the type of VirtualIP.
Type VirtualIPType `json:"type"`
Expand All @@ -28,6 +28,16 @@ const (
VirtualIPTypePublic VirtualIPType = "Public"
)

// ReclaimPolicyType is the ironcore ReclaimPolicy of a VirtualIP.
type ReclaimPolicyType string

const (
// ReclaimPolicyTypeRetain is used for any VirtualIP that is retained when the claim of VirtualIP is released.
ReclaimPolicyTypeRetain ReclaimPolicyType = "Retain"
// ReclaimPolicyTypeDelete is used for any VirtualIP that is deleted when the claim of VirtualIP is released.
ReclaimPolicyTypeDelete ReclaimPolicyType = "Delete"
)

// VirtualIPStatus defines the observed state of VirtualIP
type VirtualIPStatus struct {
// IP is the allocated IP, if any.
Expand Down Expand Up @@ -55,8 +65,15 @@ type VirtualIPList struct {
Items []VirtualIP `json:"items"`
}

type EphemeralVirtualIPSpec struct {
// VirtualIPSpec defines the desired state of a VirtualIP
VirtualIPSpec `json:",inline"`
// ReclaimPolicy is the ReclaimPolicyType of virtualIP
ReclaimPolicy ReclaimPolicyType `json:"reclaimPolicy,omitempty"`
}

// VirtualIPTemplateSpec is the specification of a VirtualIP template.
type VirtualIPTemplateSpec struct {
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec VirtualIPSpec `json:"spec,omitempty"`
Spec EphemeralVirtualIPSpec `json:"spec,omitempty"`
}
17 changes: 17 additions & 0 deletions api/networking/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion client-go/applyconfigurations/internal/internal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client-go/applyconfigurations/utils.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 49 additions & 3 deletions client-go/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading