Skip to content

Commit

Permalink
Merge pull request #35 from GDATASoftwareAG/cleanup-after-configurabl…
Browse files Browse the repository at this point in the history
…e-lans

cleanup after configurable lans
  • Loading branch information
farodin91 authored Nov 13, 2023
2 parents 4b5e1f1 + 713a5d8 commit 9f2af9e
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 112 deletions.
12 changes: 0 additions & 12 deletions api/v1alpha1/ionoscloudcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ func (r Location) String() string {

// IONOSCloudClusterSpec defines the desired state of IONOSCloudCluster
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.dataCenterID) || has(self.dataCenterID)", message="DataCenterID is required once set"
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.loadBalancerID) || has(self.loadBalancerID)", message="LoadBalancerID is required once set"
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.publicLanID) || has(self.publicLanID)", message="PublicLanID is required once set"
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.internetLanID) || has(self.internetLanID)", message="InternetLanID is required once set"
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.privateLanID) || has(self.privateLanID)", message="PrivateLanID is required once set"
type IONOSCloudClusterSpec struct {

// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Location is immutable"
Expand All @@ -95,14 +91,6 @@ type IONOSCloudClusterSpec struct {

// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="DataCenterID is immutable"
DataCenterID string `json:"dataCenterID,omitempty"`
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="LoadBalancerID is immutable"
LoadBalancerID string `json:"loadBalancerID,omitempty"`
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="PublicLanID is immutable"
PublicLanID *int32 `json:"publicLanID,omitempty"`
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="InternetLanID is immutable"
InternetLanID *int32 `json:"internetLanID,omitempty"`
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="PrivateLanID is immutable"
PrivateLanID *int32 `json:"privateLanID,omitempty"`
}

// IONOSCloudClusterStatus defines the observed state of IONOSCloudCluster
Expand Down
3 changes: 0 additions & 3 deletions api/v1alpha1/ionoscloudmachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const (

// IONOSCloudMachineSpec defines the desired state of IONOSCloudMachine
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.providerID) || has(self.providerID)", message="ProviderID is required once set"
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.ip) || has(self.ip)", message="IP is required once set"
type IONOSCloudMachineSpec struct {
// The name of the resource.
Name *string `json:"name,omitempty"`
Expand All @@ -56,8 +55,6 @@ type IONOSCloudMachineSpec struct {
Ram *int32 `json:"ram"`
BootVolume IONOSVolumeSpec `json:"bootVolume"`

// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="IP is immutable"
IP *string `json:"ip,omitempty"`
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ProviderID is immutable"
ProviderID string `json:"providerID,omitempty"`
Nics []IONOSNicSpec `json:"nics,omitempty"`
Expand Down
20 changes: 0 additions & 20 deletions api/v1alpha1/zz_generated.deepcopy.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ spec:
identityName:
minLength: 1
type: string
internetLanID:
format: int32
type: integer
x-kubernetes-validations:
- message: InternetLanID is immutable
rule: self == oldSelf
lans:
items:
properties:
Expand Down Expand Up @@ -102,11 +96,6 @@ spec:
- listenerLanRef
- targetLanRef
type: object
loadBalancerID:
type: string
x-kubernetes-validations:
- message: LoadBalancerID is immutable
rule: self == oldSelf
location:
enum:
- es/vlt
Expand All @@ -120,18 +109,6 @@ spec:
x-kubernetes-validations:
- message: Location is immutable
rule: self == oldSelf
privateLanID:
format: int32
type: integer
x-kubernetes-validations:
- message: PrivateLanID is immutable
rule: self == oldSelf
publicLanID:
format: int32
type: integer
x-kubernetes-validations:
- message: PublicLanID is immutable
rule: self == oldSelf
required:
- identityName
- lans
Expand All @@ -141,14 +118,6 @@ spec:
x-kubernetes-validations:
- message: DataCenterID is required once set
rule: '!has(oldSelf.dataCenterID) || has(self.dataCenterID)'
- message: LoadBalancerID is required once set
rule: '!has(oldSelf.loadBalancerID) || has(self.loadBalancerID)'
- message: PublicLanID is required once set
rule: '!has(oldSelf.publicLanID) || has(self.publicLanID)'
- message: InternetLanID is required once set
rule: '!has(oldSelf.internetLanID) || has(self.internetLanID)'
- message: PrivateLanID is required once set
rule: '!has(oldSelf.privateLanID) || has(self.privateLanID)'
status:
description: IONOSCloudClusterStatus defines the observed state of IONOSCloudCluster
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ spec:
identityName:
minLength: 1
type: string
internetLanID:
format: int32
type: integer
x-kubernetes-validations:
- message: InternetLanID is immutable
rule: self == oldSelf
lans:
items:
properties:
Expand Down Expand Up @@ -111,11 +105,6 @@ spec:
- listenerLanRef
- targetLanRef
type: object
loadBalancerID:
type: string
x-kubernetes-validations:
- message: LoadBalancerID is immutable
rule: self == oldSelf
location:
enum:
- es/vlt
Expand All @@ -129,18 +118,6 @@ spec:
x-kubernetes-validations:
- message: Location is immutable
rule: self == oldSelf
privateLanID:
format: int32
type: integer
x-kubernetes-validations:
- message: PrivateLanID is immutable
rule: self == oldSelf
publicLanID:
format: int32
type: integer
x-kubernetes-validations:
- message: PublicLanID is immutable
rule: self == oldSelf
required:
- identityName
- lans
Expand All @@ -150,14 +127,6 @@ spec:
x-kubernetes-validations:
- message: DataCenterID is required once set
rule: '!has(oldSelf.dataCenterID) || has(self.dataCenterID)'
- message: LoadBalancerID is required once set
rule: '!has(oldSelf.loadBalancerID) || has(self.loadBalancerID)'
- message: PublicLanID is required once set
rule: '!has(oldSelf.publicLanID) || has(self.publicLanID)'
- message: InternetLanID is required once set
rule: '!has(oldSelf.internetLanID) || has(self.internetLanID)'
- message: PrivateLanID is required once set
rule: '!has(oldSelf.privateLanID) || has(self.privateLanID)'
required:
- spec
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ spec:
x-kubernetes-validations:
- message: CpuFamily is immutable
rule: self == oldSelf
ip:
type: string
x-kubernetes-validations:
- message: IP is immutable
rule: self == oldSelf
name:
description: The name of the resource.
type: string
Expand Down Expand Up @@ -144,8 +139,6 @@ spec:
x-kubernetes-validations:
- message: ProviderID is required once set
rule: '!has(oldSelf.providerID) || has(self.providerID)'
- message: IP is required once set
rule: '!has(oldSelf.ip) || has(self.ip)'
status:
description: IONOSCloudMachineStatus defines the observed state of IONOSCloudMachine
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ spec:
x-kubernetes-validations:
- message: CpuFamily is immutable
rule: self == oldSelf
ip:
type: string
x-kubernetes-validations:
- message: IP is immutable
rule: self == oldSelf
name:
description: The name of the resource.
type: string
Expand Down Expand Up @@ -155,8 +150,6 @@ spec:
x-kubernetes-validations:
- message: ProviderID is required once set
rule: '!has(oldSelf.providerID) || has(self.providerID)'
- message: IP is required once set
rule: '!has(oldSelf.ip) || has(self.ip)'
required:
- spec
type: object
Expand Down
1 change: 0 additions & 1 deletion internal/controller/ionoscloudmachine_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ var _ = Describe("IONOSCloudMachine controller", func() {
BootVolume: v1alpha1.IONOSVolumeSpec{
Size: "2048",
},
IP: nil,
ProviderID: "",
Nics: []v1alpha1.IONOSNicSpec{
{
Expand Down

0 comments on commit 9f2af9e

Please sign in to comment.