Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
farodin91 committed Nov 10, 2023
1 parent 164fd53 commit 2721bc8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
6 changes: 2 additions & 4 deletions api/v1alpha1/ionoscloudmachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ type IONOSCloudMachineSpec struct {
// +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"`
// +listType=map
// +listMapKey=lanRef.name
Nics []IONOSNicSpec `json:"nics,omitempty"`
ProviderID string `json:"providerID,omitempty"`
Nics []IONOSNicSpec `json:"nics,omitempty"`
}

// +kubebuilder:validation:XValidation:rule="!has(oldSelf.sshKeys) || has(self.sshKeys)", message="SSHKeys is required once set"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ spec:
- lanRef
type: object
type: array
x-kubernetes-list-map-keys:
- lanRef.name
x-kubernetes-list-type: map
providerID:
type: string
x-kubernetes-validations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,6 @@ spec:
- lanRef
type: object
type: array
x-kubernetes-list-map-keys:
- lanRef.name
x-kubernetes-list-type: map
providerID:
type: string
x-kubernetes-validations:
Expand Down

0 comments on commit 2721bc8

Please sign in to comment.