1
0
mirror of https://github.com/rancher/types.git synced 2025-09-16 14:59:16 +00:00

Add types for answers set string

This commit is contained in:
Steven Crespo
2021-06-16 16:39:24 -07:00
parent 7f255455fd
commit 56ce7e3896
3 changed files with 24 additions and 18 deletions

View File

@@ -287,13 +287,15 @@ type IngressCapabilities struct {
}
type MonitoringInput struct {
Version string `json:"version,omitempty"`
Answers map[string]string `json:"answers,omitempty"`
Version string `json:"version,omitempty"`
Answers map[string]string `json:"answers,omitempty"`
AnswersSetString map[string]string `json:"answersSetString,omitempty"`
}
type MonitoringOutput struct {
Version string `json:"version,omitempty"`
Answers map[string]string `json:"answers,omitempty"`
Version string `json:"version,omitempty"`
Answers map[string]string `json:"answers,omitempty"`
AnswersSetString map[string]string `json:"answersAnswersSetString,omitempty"`
}
type RestoreFromEtcdBackupInput struct {

View File

@@ -60,9 +60,10 @@ func (t *Target) ObjClusterName() string {
}
type Answer struct {
ProjectName string `json:"projectName,omitempty" norman:"type=reference[project]"`
ClusterName string `json:"clusterName,omitempty" norman:"type=reference[cluster]"`
Values map[string]string `json:"values,omitempty" norman:"required"`
ProjectName string `json:"projectName,omitempty" norman:"type=reference[project]"`
ClusterName string `json:"clusterName,omitempty" norman:"type=reference[cluster]"`
Values map[string]string `json:"values,omitempty" norman:"required"`
ValuesSetString map[string]string `json:"valuesSetString,omitempty"`
}
func (a *Answer) ObjClusterName() string {