From b5f409d7b298b2fa50c48cc2f65a18e648a76731 Mon Sep 17 00:00:00 2001 From: William Will <10997562+willwill96@users.noreply.github.com> Date: Thu, 7 Aug 2025 12:27:58 -0600 Subject: [PATCH] remove aws fields as flags --- pkg/apis/options/options.go | 4 ---- pkg/apis/options/sessions.go | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pkg/apis/options/options.go b/pkg/apis/options/options.go index a5dd0d35..8fa72c7c 100644 --- a/pkg/apis/options/options.go +++ b/pkg/apis/options/options.go @@ -159,10 +159,6 @@ func NewFlagSet() *pflag.FlagSet { flagSet.Bool("redis-use-cluster", false, "Connect to redis cluster. Must set --redis-cluster-connection-urls to use this feature") flagSet.StringSlice("redis-cluster-connection-urls", []string{}, "List of Redis cluster connection URLs (eg redis://[USER[:PASSWORD]@]HOST[:PORT]). Used in conjunction with --redis-use-cluster") flagSet.Int("redis-connection-idle-timeout", 0, "Redis connection idle timeout seconds, if Redis timeout option is non-zero, the --redis-connection-idle-timeout must be less then Redis timeout option") - flagSet.Bool("redis-aws-use-iam-auth", false, "Use AWS IAM authentication for Redis. Must set --redis-aws-service-name, --redis-aws-cluster-name, & --redis-aws-username to use this feature") - flagSet.String("redis-aws-service-name", "", "AWS service name for Redis IAM authentication - `elasticache` or `memorydb`") - flagSet.String("redis-aws-cluster-name", "", "AWS cluster name for Redis IAM authentication") - flagSet.String("redis-aws-username", "", "AWS username for Redis IAM authentication") flagSet.String("signature-key", "", "GAP-Signature request signature key (algorithm:secretkey)") flagSet.Bool("gcp-healthchecks", false, "Enable GCP/GKE healthcheck endpoints") diff --git a/pkg/apis/options/sessions.go b/pkg/apis/options/sessions.go index 0f4273f9..86b0d9b8 100644 --- a/pkg/apis/options/sessions.go +++ b/pkg/apis/options/sessions.go @@ -30,10 +30,10 @@ type RedisStoreOptions struct { SentinelMasterName string `flag:"redis-sentinel-master-name" cfg:"redis_sentinel_master_name"` SentinelConnectionURLs []string `flag:"redis-sentinel-connection-urls" cfg:"redis_sentinel_connection_urls"` UseCluster bool `flag:"redis-use-cluster" cfg:"redis_use_cluster"` - UseAWSIAMAuth bool `flag:"redis-aws-use-iam-auth" cfg:"redis_aws_use_iam_auth"` - AWSServiceName string `flag:"redis-aws-service-name" cfg:"redis_aws_service_name"` - AWSClusterName string `flag:"redis-aws-cluster-name" cfg:"redis_aws_cluster_name"` - AWSUsername string `flag:"redis-aws-username" cfg:"redis_aws_username"` + UseAWSIAMAuth bool `cfg:"redis_aws_use_iam_auth"` + AWSServiceName string `cfg:"redis_aws_service_name"` + AWSClusterName string `cfg:"redis_aws_cluster_name"` + AWSUsername string `cfg:"redis_aws_username"` ClusterConnectionURLs []string `flag:"redis-cluster-connection-urls" cfg:"redis_cluster_connection_urls"` CAPath string `flag:"redis-ca-path" cfg:"redis_ca_path"` InsecureSkipTLSVerify bool `flag:"redis-insecure-skip-tls-verify" cfg:"redis_insecure_skip_tls_verify"`