1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 20:55:00 +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 {

View File

@ -29,6 +29,7 @@ type AppSpec struct {
ExternalID string `json:"externalId,omitempty"`
Files map[string]string `json:"files,omitempty"`
Answers map[string]string `json:"answers,omitempty"`
AnswersSetString map[string]string `json:"answersSetString,omitempty"`
Wait bool `json:"wait,omitempty"`
Timeout int `json:"timeout,omitempty" norman:"min=1,default=300"`
AppRevisionName string `json:"appRevisionName,omitempty" norman:"type=reference[/v3/project/schemas/apprevision]"`
@ -97,12 +98,13 @@ func (a *AppRevisionSpec) ObjClusterName() string {
}
type AppRevisionStatus struct {
ProjectName string `json:"projectName,omitempty" norman:"type=reference[/v3/schemas/project]"`
ExternalID string `json:"externalId"`
Answers map[string]string `json:"answers"`
Digest string `json:"digest"`
ValuesYaml string `json:"valuesYaml,omitempty"`
Files map[string]string `json:"files,omitempty"`
ProjectName string `json:"projectName,omitempty" norman:"type=reference[/v3/schemas/project]"`
ExternalID string `json:"externalId"`
Answers map[string]string `json:"answers"`
AnswersSetString map[string]string `json:"answersSetString"`
Digest string `json:"digest"`
ValuesYaml string `json:"valuesYaml,omitempty"`
Files map[string]string `json:"files,omitempty"`
}
func (a *AppRevisionStatus) ObjClusterName() string {
@ -113,11 +115,12 @@ func (a *AppRevisionStatus) ObjClusterName() string {
}
type AppUpgradeConfig struct {
ExternalID string `json:"externalId,omitempty"`
Answers map[string]string `json:"answers,omitempty"`
ForceUpgrade bool `json:"forceUpgrade,omitempty"`
Files map[string]string `json:"files,omitempty"`
ValuesYaml string `json:"valuesYaml,omitempty"`
ExternalID string `json:"externalId,omitempty"`
Answers map[string]string `json:"answers,omitempty"`
AnswersSetString map[string]string `json:"answersSetString,omitempty"`
ForceUpgrade bool `json:"forceUpgrade,omitempty"`
Files map[string]string `json:"files,omitempty"`
ValuesYaml string `json:"valuesYaml,omitempty"`
}
type RollbackRevision struct {