From 5981c38f5c4492eb212031a36e03e6fa04812ae5 Mon Sep 17 00:00:00 2001 From: gitlawr Date: Sat, 24 Feb 2018 15:58:53 +0800 Subject: [PATCH] set perms on token fields --- apis/management.cattle.io/v3/pipeline_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/pipeline_types.go b/apis/management.cattle.io/v3/pipeline_types.go index c1650010..911723f5 100644 --- a/apis/management.cattle.io/v3/pipeline_types.go +++ b/apis/management.cattle.io/v3/pipeline_types.go @@ -85,7 +85,7 @@ type PipelineStatus struct { LastStarted string `json:"lastStarted,omitempty" yaml:"lastStarted,omitempty"` NextStart string `json:"nextStart,omitempty" yaml:"nextStart,omitempty"` WebHookID string `json:"webhookId,omitempty" yaml:"webhookId,omitempty"` - Token string `json:"token,omitempty" yaml:"token,omitempty"` + Token string `json:"token,omitempty" yaml:"token,omitempty" norman:"writeOnly,noupdate"` } type PipelineSpec struct { @@ -172,7 +172,7 @@ type SourceCodeCredentialSpec struct { AvatarURL string `json:"avatarUrl,omitempty"` HTMLURL string `json:"htmlUrl,omitempty"` LoginName string `json:"loginName,omitempty"` - AccessToken string `json:"accessToken,omitempty"` + AccessToken string `json:"accessToken,omitempty" norman:"writeOnly,noupdate"` } type SourceCodeCredentialStatus struct {