Skip to content

Commit

Permalink
Use strategy instead of mode:
Browse files Browse the repository at this point in the history
Mode could clash with other encryption
wording.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
  • Loading branch information
jacobweinstock committed Apr 18, 2024
1 parent 705a591 commit d77cbfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api/v1alpha1/hardware_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ type Encryption struct {
Algorithm string `json:"algorithm,omitempty"`
// KeyRef is a reference to the key to use for encryption.
KeyRef corev1.SecretReference `json:"key_ref,omitempty"`
// Mode is the type, or lack there of, of encryption to use.
// Strategy is the type, or lack there of, of encryption to use.
// +kubebuilder:validation:Enum=public-key;shared-key;base64-only
Mode EncryptionMode `json:"mode,omitempty"`
Strategy EncryptionStrategy `json:"mode,omitempty"`
}

type EncryptionMode string
type EncryptionStrategy string

type MetadataManufacturer struct {
ID string `json:"id,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/tinkerbell.org_hardware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ spec:
type: object
x-kubernetes-map-type: atomic
mode:
description: Mode is the type, or lack there of, of encryption to use.
description: Strategy is the type, or lack there of, of encryption to use.
enum:
- public-key
- shared-key
Expand Down

0 comments on commit d77cbfc

Please sign in to comment.