Browse Source

Fix CA init error code

pull/14981/head
freddygv 2 years ago
parent
commit
96fdd3728a
  1. 2
      agent/grpc-external/services/peerstream/stream_resources.go

2
agent/grpc-external/services/peerstream/stream_resources.go vendored

@ -709,7 +709,7 @@ func getTrustDomain(store StateStore, logger hclog.Logger) (string, error) {
return "", grpcstatus.Error(codes.Internal, "failed to read Connect CA Config")
case cfg == nil:
logger.Warn("cannot begin stream because Connect CA is not yet initialized")
return "", grpcstatus.Error(codes.FailedPrecondition, "Connect CA is not yet initialized")
return "", grpcstatus.Error(codes.Unavailable, "Connect CA is not yet initialized")
}
return connect.SpiffeIDSigningForCluster(cfg.ClusterID).Host(), nil
}

Loading…
Cancel
Save