Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make image mutable #67

Merged
merged 1 commit into from
Jan 22, 2024
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
3 changes: 1 addition & 2 deletions api/v1alpha1/ionoscloudmachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ type IONOSVolumeSpec struct {
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Type is immutable"
Type string `json:"type"`
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Size is immutable"
Size string `json:"size"`
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Image is immutable"
Size string `json:"size"`
Image string `json:"image"`
// Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation.
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="SSHKeys is immutable"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ spec:
properties:
image:
type: string
x-kubernetes-validations:
- message: Image is immutable
rule: self == oldSelf
size:
type: string
x-kubernetes-validations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ spec:
properties:
image:
type: string
x-kubernetes-validations:
- message: Image is immutable
rule: self == oldSelf
size:
type: string
x-kubernetes-validations:
Expand Down
Loading