From 55d512b98c425636de6d4727cf21183ac38f046a Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Fri, 23 Mar 2018 00:48:50 +0000 Subject: [PATCH] Make const private. Signed-off-by: Lantao Liu --- pkg/server/streaming.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/server/streaming.go b/pkg/server/streaming.go index 07c92cdc1..9e3e48ef1 100644 --- a/pkg/server/streaming.go +++ b/pkg/server/streaming.go @@ -43,10 +43,10 @@ import ( ) const ( - // OrganizationName is is the name of this organization, used for certificates etc. - OrganizationName = "containerd" - // CRIName is the common name of the CRI plugin - CRIName = "cri" + // certOrganizationName is the name of this organization, used for certificates etc. + certOrganizationName = "containerd" + // certCommonName is the common name of the CRI plugin + certCommonName = "cri" ) func newStreamServer(c *criService, addr, port string) (streaming.Server, error) { @@ -182,8 +182,8 @@ func newTLSCert() (tls.Certificate, error) { NotAfter: time.Now().AddDate(years, 0, 0), SerialNumber: serialNumber, Subject: pkix.Name{ - CommonName: fmt.Sprintf("%s:%s:%s", OrganizationName, CRIName, hostName), - Organization: []string{OrganizationName}, + CommonName: fmt.Sprintf("%s:%s:%s", certOrganizationName, certCommonName, hostName), + Organization: []string{certOrganizationName}, }, BasicConstraintsValid: true, }