Skip to content

Commit 5adb6eb

Browse files
committed
api: Use no pointer for required fields
Signed-off-by: Jakob Naucke <[email protected]>
1 parent 9d40b83 commit 5adb6eb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

api/v1alpha1/crds.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ var (
4141
type TrustedExecutionClusterSpec struct {
4242
// Image reference to Trustee all-in-one image
4343
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
44-
TrusteeImage *string `json:"trusteeImage"`
44+
TrusteeImage string `json:"trusteeImage"`
4545

4646
// Image reference to trusted-cluster-operator's compute-pcrs image
4747
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
48-
PcrsComputeImage *string `json:"pcrsComputeImage"`
48+
PcrsComputeImage string `json:"pcrsComputeImage"`
4949

5050
// Image reference to trusted-cluster-operator's register-server image
5151
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
52-
RegisterServerImage *string `json:"registerServerImage"`
52+
RegisterServerImage string `json:"registerServerImage"`
5353

5454
// Address where attester can connect to Trustee
5555
// +optional
5656
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
57-
PublicTrusteeAddr *string `json:"publicTrusteeAddr,omitempty"`
57+
PublicTrusteeAddr string `json:"publicTrusteeAddr,omitempty"`
5858

5959
// Port that Trustee serves on
6060
// +optional
@@ -108,7 +108,7 @@ type TrustedExecutionClusterList struct {
108108
type MachineSpec struct {
109109
// Machine ID, typically a UUID
110110
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
111-
Id *string `json:"id"`
111+
Id string `json:"id"`
112112
}
113113

114114
// MachineStatus defines the observed state of Machine.
@@ -157,7 +157,7 @@ type ApprovedImageSpec struct {
157157
// +required
158158
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
159159
// +kubebuilder:validation:XValidation:rule="self.matches(r'.*@sha256:.*')",message="Image must be provided with a digest"
160-
Reference *string `json:"image"`
160+
Reference string `json:"image"`
161161
}
162162

163163
// ApprovedImageStatus defines the observed state of ApprovedImage.

0 commit comments

Comments
 (0)