Fix name of the variable in comment.

This commit is contained in:
Mariano Cano 2022-02-17 17:59:17 -08:00
parent a0cf808393
commit abe951d416
2 changed files with 9 additions and 9 deletions

View file

@ -139,9 +139,9 @@ func (p *Nebula) AuthorizeSign(ctx context.Context, token string) ([]SignOption,
data.SetToken(v) data.SetToken(v)
} }
// The Nebula certificate will be available using the template variable Crt. // The Nebula certificate will be available using the template variable
// For example {{ .AuthorizationCrt.Details.Groups }} can be used to get all // AuthorizationCrt. For example {{ .AuthorizationCrt.Details.Groups }} can
// the groups. // be used to get all the groups.
data.SetAuthorizationCertificate(crt) data.SetAuthorizationCertificate(crt)
templateOptions, err := TemplateOptions(p.Options, data) templateOptions, err := TemplateOptions(p.Options, data)

View file

@ -213,9 +213,9 @@ func (p *X5C) AuthorizeSign(ctx context.Context, token string) ([]SignOption, er
data.SetToken(v) data.SetToken(v)
} }
// The X509 certificate will be available using the template variable Crt. // The X509 certificate will be available using the template variable
// For example {{ .AuthorizationCrt.DNSNames }} can be used to get all the // AuthorizationCrt. For example {{ .AuthorizationCrt.DNSNames }} can be
// domains. // used to get all the domains.
data.SetAuthorizationCertificate(claims.chains[0][0]) data.SetAuthorizationCertificate(claims.chains[0][0])
templateOptions, err := TemplateOptions(p.Options, data) templateOptions, err := TemplateOptions(p.Options, data)
@ -292,9 +292,9 @@ func (p *X5C) AuthorizeSSHSign(ctx context.Context, token string) ([]SignOption,
data.SetToken(v) data.SetToken(v)
} }
// The X509 certificate will be available using the template variable Crt. // The X509 certificate will be available using the template variable
// For example {{ .AuthorizationCrt.DNSNames }} can be used to get all the // AuthorizationCrt. For example {{ .AuthorizationCrt.DNSNames }} can be
// domains. // used to get all the domains.
data.SetAuthorizationCertificate(claims.chains[0][0]) data.SetAuthorizationCertificate(claims.chains[0][0])
templateOptions, err := TemplateSSHOptions(p.Options, data) templateOptions, err := TemplateSSHOptions(p.Options, data)