e2e/helm_utils.go
Function DeployTestAppWithHelm
has 66 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func DeployTestAppWithHelm(client klient.Client, id string) error {
// create Deployment
var replicas int32 = 1
deployment := appsv1.Deployment{
TypeMeta: metav1.TypeMeta{
Function CreateK8sRole
has 61 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func CreateK8sRole(client klient.Client, id string) error {
// create ServiceAccount
serviceAccount := corev1.ServiceAccount{
TypeMeta: metav1.TypeMeta{
APIVersion: "v1",
Function DeploySecretsProviderJobWithHelm
has 7 return statements (exceeds 4 allowed). Open
Open
func DeploySecretsProviderJobWithHelm(cfg *envconf.Config, id string, chartPaths ...string) error {
// set conjur cert to file
err := CreateConjurCertFile(cfg.Client())
if err != nil {
return err