Update k8s_secret.go

This commit is contained in:
Roy 2024-10-24 17:05:05 +07:00 committed by GitHub
parent 528a3d9da8
commit 9f6ea410af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,7 +116,7 @@ func (d *K8sSecretDeployer) createClient(access *domain.KubernetesAccess) (*kube
}
config, err := kubeConfig.ClientConfig()
if err != nil {
panic(err.Error())
return nil, err
}
client, err := kubernetes.NewForConfig(config)