f3c0bc0749
kindsys: Adapt to new PanelCfg schema interface (#65297)
* kindsys: Adapt to new PanelCfg schema interface
* building locally
* Remove Panel prefix in cue files
* Regenerate
* Update imports
* fixup! Merge branch 'remove-panel-prefix' into sdboyer/redundant-panelcfg-prefixes
* Fix formatting
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Tania B <yalyna.ts@gmail.com>
(cherry picked from commit 33fd83f7e3)
# Conflicts:
# docs/sources/developers/kinds/core/dashboard/schema-reference.md
# docs/sources/developers/kinds/core/folder/schema-reference.md
# kinds/dashboard/dashboard_kind.cue
# packages/grafana-schema/src/raw/dashboard/x/dashboard_types.gen.ts
# pkg/kinds/dashboard/dashboard_spec_gen.go
# pkg/kinds/folder/folder_status_gen.go
Co-authored-by: sam boyer <sdboyer@grafana.com>
48 lines
1.7 KiB
Go
48 lines
1.7 KiB
Go
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// kinds/gen.go
|
|
// Using jennies:
|
|
// GoResourceTypes
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
package preferences
|
|
|
|
// Defines values for OperatorStateState.
|
|
const (
|
|
OperatorStateStateFailed OperatorStateState = "failed"
|
|
OperatorStateStateInProgress OperatorStateState = "in_progress"
|
|
OperatorStateStateSuccess OperatorStateState = "success"
|
|
)
|
|
|
|
// OperatorState defines model for OperatorState.
|
|
type OperatorState struct {
|
|
// descriptiveState is an optional more descriptive state field which has no requirements on format
|
|
DescriptiveState *string `json:"descriptiveState,omitempty"`
|
|
|
|
// details contains any extra information that is operator-specific
|
|
Details map[string]interface{} `json:"details,omitempty"`
|
|
|
|
// lastEvaluation is the ResourceVersion last evaluated
|
|
LastEvaluation string `json:"lastEvaluation"`
|
|
|
|
// state describes the state of the lastEvaluation.
|
|
// It is limited to three possible states for machine evaluation.
|
|
State OperatorStateState `json:"state"`
|
|
}
|
|
|
|
// OperatorStateState state describes the state of the lastEvaluation.
|
|
// It is limited to three possible states for machine evaluation.
|
|
type OperatorStateState string
|
|
|
|
// Status defines model for Status.
|
|
type Status struct {
|
|
// additionalFields is reserved for future use
|
|
AdditionalFields map[string]interface{} `json:"additionalFields,omitempty"`
|
|
|
|
// operatorStates is a map of operator ID to operator state evaluations.
|
|
// Any operator which consumes this kind SHOULD add its state evaluation information to this field.
|
|
OperatorStates map[string]OperatorState `json:"operatorStates,omitempty"`
|
|
}
|