Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fixed make manifests for OperandConfig CRD
- to have preserve unknown fields for ConfigService.spec

Signed-off-by: Henry H Li <[email protected]>
  • Loading branch information
bitscuit committed Oct 26, 2023
commit 46d0ae3bbb5c7832c8e3c69c311cf6b8be551591
7 changes: 6 additions & 1 deletion api/v1alpha1/operandconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,17 @@ type OperandConfigSpec struct {
Services []ConfigService `json:"services,omitempty"`
}

// +kubebuilder:pruning:PreserveUnknownFields
type ExtensionWithMarker struct {
runtime.RawExtension `json:",inline"`
}

// ConfigService defines the configuration of the service.
type ConfigService struct {
// Name is the subscription name.
Name string `json:"name"`
// Spec is the configuration map of custom resource.
Spec map[string]runtime.RawExtension `json:"spec,omitempty"`
Spec map[string]ExtensionWithMarker `json:"spec,omitempty"`
// State is a flag to enable or disable service.
State string `json:"state,omitempty"`
// Resources is used to specify the kubernetes resources that are needed for the service.
Expand Down