diff --git a/pkg/common/secret_init_config.go b/pkg/common/secret_init_config.go index 7a74f07..1e08ceb 100644 --- a/pkg/common/secret_init_config.go +++ b/pkg/common/secret_init_config.go @@ -91,25 +91,25 @@ func LoadSecretInitConfig(annotations map[string]string) SecretInitConfig { if val, err := resource.ParseQuantity(viper.GetString(SecretInitCPURequestEnvVar)); err == nil { secretInitConfig.CPURequest = val } else { - secretInitConfig.CPURequest = resource.MustParse("50m") + secretInitConfig.CPURequest = resource.MustParse("100m") } if val, err := resource.ParseQuantity(viper.GetString(SecretInitMemoryRequestEnvVar)); err == nil { secretInitConfig.MemoryRequest = val } else { - secretInitConfig.MemoryRequest = resource.MustParse("64Mi") + secretInitConfig.MemoryRequest = resource.MustParse("128Mi") } if val, err := resource.ParseQuantity(viper.GetString(SecretInitCPULimitEnvVar)); err == nil { secretInitConfig.CPULimit = val } else { - secretInitConfig.CPULimit = resource.MustParse("250m") + secretInitConfig.CPULimit = resource.MustParse("500m") } if val, err := resource.ParseQuantity(viper.GetString(SecretInitMemoryLimitEnvVar)); err == nil { secretInitConfig.MemoryLimit = val } else { - secretInitConfig.MemoryLimit = resource.MustParse("64Mi") + secretInitConfig.MemoryLimit = resource.MustParse("256Mi") } return secretInitConfig diff --git a/pkg/common/secret_init_config_test.go b/pkg/common/secret_init_config_test.go index 9cff8e0..65a6370 100644 --- a/pkg/common/secret_init_config_test.go +++ b/pkg/common/secret_init_config_test.go @@ -47,10 +47,10 @@ func TestLoadSecretInitConfig(t *testing.T) { Image: "vault:latest", ImagePullPolicy: "Always", LogLevel: "info", - CPURequest: resource.MustParse("50m"), - MemoryRequest: resource.MustParse("64Mi"), - CPULimit: resource.MustParse("250m"), - MemoryLimit: resource.MustParse("64Mi"), + CPURequest: resource.MustParse("100m"), + MemoryRequest: resource.MustParse("128Mi"), + CPULimit: resource.MustParse("500m"), + MemoryLimit: resource.MustParse("256Mi"), }, }, {