Skip to content

Commit

Permalink
Merge pull request #67 from Jona12487/make-image-mutable
Browse files Browse the repository at this point in the history
make image mutable
  • Loading branch information
Mattes83 authored Jan 22, 2024
2 parents 51d9ec4 + b22818e commit d150cf3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
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

0 comments on commit d150cf3

Please sign in to comment.