1
0
mirror of https://github.com/rancher/types.git synced 2025-07-01 16:01:49 +00:00

Add fields to support multiple clientID in github

This commit is contained in:
Darren Shepherd 2020-01-31 09:29:36 -07:00
parent 56c60bfefb
commit 33833b3a37

View File

@ -150,6 +150,10 @@ type GithubConfig struct {
TLS bool `json:"tls,omitempty" norman:"notnullable,default=true" norman:"required"`
ClientID string `json:"clientId,omitempty" norman:"required"`
ClientSecret string `json:"clientSecret,omitempty" norman:"required,type=password"`
// AdditionalClientIDs is a map of clientID to client secrets
AdditionalClientIDs map[string]string `json:"additionalClientIds,omitempty" norman:"nocreate,noupdate"`
HostnameToClientID map[string]string `json:"hostnameToClientId,omitempty" norman:"nocreate,noupdate"`
}
type GithubConfigTestOutput struct {