зеркало из https://github.com/Azure/ARO-RP.git
Add conversion of the issueDate into the admin API, and add a comment
This commit is contained in:
Родитель
d231bad050
Коммит
cda9cb3b07
|
@ -500,8 +500,9 @@ const (
|
|||
|
||||
// RegistryProfile represents a registry profile
|
||||
type RegistryProfile struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
Username string `json:"username,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Username string `json:"username,omitempty"`
|
||||
// IssueDate is when the username/password for the registry was last updated.
|
||||
IssueDate *date.Time `json:"issueDate,omitempty"`
|
||||
}
|
||||
|
||||
|
|
|
@ -210,6 +210,7 @@ func (c openShiftClusterConverter) ToExternal(oc *api.OpenShiftCluster) interfac
|
|||
for i, v := range oc.Properties.RegistryProfiles {
|
||||
out.Properties.RegistryProfiles[i].Name = v.Name
|
||||
out.Properties.RegistryProfiles[i].Username = v.Username
|
||||
out.Properties.RegistryProfiles[i].IssueDate = v.IssueDate
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -786,10 +786,11 @@ type IngressProfile struct {
|
|||
type RegistryProfile struct {
|
||||
MissingFields
|
||||
|
||||
Name string `json:"name,omitempty"`
|
||||
Username string `json:"username,omitempty"`
|
||||
Password SecureString `json:"password,omitempty"`
|
||||
IssueDate *date.Time `json:"issueDate,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Username string `json:"username,omitempty"`
|
||||
Password SecureString `json:"password,omitempty"`
|
||||
// IssueDate is when the username/password for the registry was last updated.
|
||||
IssueDate *date.Time `json:"issueDate,omitempty"`
|
||||
}
|
||||
|
||||
// Install represents an install process
|
||||
|
|
Загрузка…
Ссылка в новой задаче