Add nodeutil opt to bootstrapping from rest.Config
This uses a rest.Config to bootstrap TLS for the http server, webhook auth, and the client. This can be expanded later to do other kinds of TLS bootstrapping. For now this seems to get the job done in terms of what VK expects for permissions on the cluster. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@@ -79,8 +79,12 @@ func (s *span) SetStatus(err error) {
|
||||
status.Code = octrace.StatusCodeNotFound
|
||||
case errdefs.IsInvalidInput(err):
|
||||
status.Code = octrace.StatusCodeInvalidArgument
|
||||
// TODO: other error types
|
||||
case errdefs.IsForbidden(err):
|
||||
status.Code = octrace.StatusCodePermissionDenied
|
||||
case errdefs.IsUnauthorized(err):
|
||||
status.Code = octrace.StatusCodeUnauthenticated
|
||||
default:
|
||||
// TODO: other error types
|
||||
status.Code = octrace.StatusCodeUnknown
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user