Skip to content

Commit

Permalink
fix: make workload meta overrides not required
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Csati <[email protected]>
  • Loading branch information
csatib02 committed Nov 28, 2024
1 parent eae0264 commit b497341
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2679,8 +2679,6 @@ spec:
type: object
type: array
type: object
required:
- workloadMetaOverrides
type: object
status:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2676,8 +2676,6 @@ spec:
type: object
type: array
type: object
required:
- workloadMetaOverrides
type: object
status:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2676,8 +2676,6 @@ spec:
type: object
type: array
type: object
required:
- workloadMetaOverrides
type: object
status:
type: object
Expand Down
4 changes: 1 addition & 3 deletions pkg/sdk/extensions/api/v1alpha1/eventtailer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ type _metaEventTailer = interface{} //nolint:deadcode,unused

// EventTailerSpec defines the desired state of EventTailer
type EventTailerSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

//+kubebuilder:validation:Required

// The resources of EventTailer will be placed into this namespace
ControlNamespace string `json:"controlNamespace"`
// Volume definition for tracking fluentbit file positions (optional)
Expand Down
1 change: 0 additions & 1 deletion pkg/sdk/extensions/api/v1alpha1/hosttailer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ type HostTailerSpec struct {
// daemonset (and possibly other resource in the future) in case there is a change in an immutable field
// that otherwise couldn't be managed with a simple update.
EnableRecreateWorkloadOnImmutableFieldChange bool `json:"enableRecreateWorkloadOnImmutableFieldChange,omitempty"`
//+kubebuilder:validation:Required
// Override metadata of the created resources
WorkloadMetaBase *types.MetaBase `json:"workloadMetaOverrides,omitempty"`
// Override podSpec fields for the given daemonset
Expand Down

0 comments on commit b497341

Please sign in to comment.