Skip to content

Commit

Permalink
fix: Add YAML Struct Tags to CustomStateCheck (kyma-project#856)
Browse files Browse the repository at this point in the history
moduletemplate_types.go: Add YAML Struct Tags to CustomStateCheck
  • Loading branch information
LeelaChacha authored Sep 11, 2023
1 parent 245f553 commit 6926c58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/v1beta2/moduletemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ type ModuleTemplateSpec struct {

type CustomStateCheck struct {
// JSONPath specifies the JSON path to the state variable in the Module CR
JSONPath string `json:"jsonPath"`
JSONPath string `json:"jsonPath" yaml:"jsonPath"`

// Value is the value at the JSONPath for which the Module CR state should map with MappedState
Value string `json:"value"`
Value string `json:"value" yaml:"value"`

// MappedState is the Kyma CR State
MappedState State `json:"mappedState"`
MappedState State `json:"mappedState" yaml:"mappedState"`
}

func (m *ModuleTemplate) GetDescriptor() (*Descriptor, error) {
Expand Down

0 comments on commit 6926c58

Please sign in to comment.