From 4ca17511e2f026b13a0aef11b714ce28da7d64cb Mon Sep 17 00:00:00 2001 From: rajashree Date: Tue, 25 Jun 2019 11:19:57 -0700 Subject: [PATCH] Mark required fields not nullable --- apis/management.cattle.io/v3/authn_types.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apis/management.cattle.io/v3/authn_types.go b/apis/management.cattle.io/v3/authn_types.go index ad35be53..c64e0fc0 100644 --- a/apis/management.cattle.io/v3/authn_types.go +++ b/apis/management.cattle.io/v3/authn_types.go @@ -167,10 +167,10 @@ type GoogleOauthConfig struct { metav1.ObjectMeta `json:"metadata,omitempty"` AuthConfig `json:",inline" mapstructure:",squash"` - OauthCredential string `json:"oauthCredential,omitempty" norman:"required,type=password"` - ServiceAccountCredential string `json:"serviceAccountCredential,omitempty" norman:"required,type=password"` - AdminEmail string `json:"adminEmail,omitempty"` - Hostname string `json:"hostname,omitempty" norman:"required,noupdate"` + OauthCredential string `json:"oauthCredential,omitempty" norman:"required,type=password,notnullable"` + ServiceAccountCredential string `json:"serviceAccountCredential,omitempty" norman:"required,type=password,notnullable"` + AdminEmail string `json:"adminEmail,omitempty" norman:"required,notnullable"` + Hostname string `json:"hostname,omitempty" norman:"required,notnullable,noupdate"` UserInfoEndpoint string `json:"userInfoEndpoint" norman:"default=https://openidconnect.googleapis.com/v1/userinfo,required,notnullable"` }