k8s/stset/lrp_to_statefulset.go
Method LRPToStatefulSet.Convert
has 135 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *LRPToStatefulSet) Convert(statefulSetName string, lrp *api.LRP, privateRegistrySecret *corev1.Secret) (*appsv1.StatefulSet, error) {
envs := shared.MapToEnvVar(lrp.Env)
fieldEnvs := []corev1.EnvVar{
{
Name: eirini.EnvPodName,
Function NewLRPToStatefulSetConverter
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
applicationServiceAccount string,
registrySecretName string,
allowAutomountServiceAccountToken bool,
allowRunImageAsRoot bool,
latestMigration int,