Skip to content

Commit

Permalink
chore: clarify optionality (#2218)
Browse files Browse the repository at this point in the history
Signed-off-by: Blake Pettersson <[email protected]>
  • Loading branch information
blakepettersson authored Jun 28, 2024
1 parent 43beef0 commit 71e20f0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1alpha1/warehouse_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ type WarehouseSpec struct {
// treated as if its value were "Automatic".
//
// +kubebuilder:default=Automatic
// +kubebuilder:validation:Optional
FreightCreationPolicy FreightCreationPolicy `json:"freightCreationPolicy" protobuf:"bytes,3,opt,name=freightCreationPolicy"`
// Subscriptions describes sources of artifacts to be included in Freight
// produced by this Warehouse.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ spec:
minItems: 1
type: array
required:
- freightCreationPolicy
- interval
- subscriptions
type: object
Expand Down
1 change: 0 additions & 1 deletion ui/src/gen/schema/warehouses.kargo.akuity.io_v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@
}
},
"required": [
"freightCreationPolicy",
"interval",
"subscriptions"
],
Expand Down
1 change: 1 addition & 0 deletions ui/src/gen/v1alpha1/generated_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4297,6 +4297,7 @@ export class WarehouseSpec extends Message<WarehouseSpec> {
* treated as if its value were "Automatic".
*
* +kubebuilder:default=Automatic
* +kubebuilder:validation:Optional
*
* @generated from field: optional string freightCreationPolicy = 3;
*/
Expand Down

0 comments on commit 71e20f0

Please sign in to comment.