Skip to content

Commit

Permalink
Make const private.
Browse files Browse the repository at this point in the history
Signed-off-by: Lantao Liu <lantaol@google.com>
  • Loading branch information
Random-Liu committed Mar 23, 2018
1 parent 5ae4de1 commit 55d512b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/server/streaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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,
}
Expand Down

0 comments on commit 55d512b

Please sign in to comment.