fix rbac error crash (#432)

This commit is contained in:
RamiBerm
2021-11-04 15:44:05 +02:00
committed by GitHub
parent 9a9e5fda0a
commit a20f83597c

View File

@@ -287,7 +287,9 @@ func createMizuResources(ctx context.Context, cancel context.CancelFunc, kuberne
var err error
state.mizuServiceAccountExists, err = createRBACIfNecessary(ctx, kubernetesProvider)
if err != nil {
return err
if !config.Config.Tap.DaemonMode {
logger.Log.Warningf(uiUtils.Warning, fmt.Sprintf("Failed to ensure the resources required for IP resolving. Mizu will not resolve target IPs to names. error: %v", errormessage.FormatError(err)))
}
}
var serviceAccountName string