From b11ec77e6e8e19ed724ce4e0e165cad964f4988f Mon Sep 17 00:00:00 2001 From: JordanRushing Date: Tue, 28 Nov 2023 15:38:00 -0600 Subject: [PATCH] Fix s3 config env variable names Signed-off-by: JordanRushing --- pkg/admission/prep_downscale.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/admission/prep_downscale.go b/pkg/admission/prep_downscale.go index 0ef7bf211..dc72c2b27 100644 --- a/pkg/admission/prep_downscale.go +++ b/pkg/admission/prep_downscale.go @@ -38,8 +38,8 @@ func PrepareDownscale(ctx context.Context, logger log.Logger, ar v1.AdmissionRev var zt *zoneTracker if useZoneTracker { // TODO(jordanrushing): fix bucket creation semantics and wire-in config supporting multiple CSPs - accessKey := os.Getenv("S3_ACCESS_KEY") - secretKey := os.Getenv("S3_SECRET_KEY") + accessKey := os.Getenv("AWS_ACCESS_KEY_ID") + secretKey := os.Getenv("AWS_SECRET_ACCESS_KEY") // TODO(jordanrushing): stop hardcoding insecure: true s3Config, _ := config.CreateS3ConfigYaml(bucketName, endpoint, region, accessKey, secretKey, true) bkt, _ := newS3BucketClient(s3Config, logger)