@@ -25,6 +25,7 @@ const (
2525 logMeCustomEndpointFlag = "logme-custom-endpoint"
2626 mariaDBCustomEndpointFlag = "mariadb-custom-endpoint"
2727 mongoDBFlexCustomEndpointFlag = "mongodbflex-custom-endpoint"
28+ objectStorageCustomEndpointFlag = "object-storage-custom-endpoint"
2829 openSearchCustomEndpointFlag = "opensearch-custom-endpoint"
2930 postgresFlexCustomEndpointFlag = "postgresflex-custom-endpoint"
3031 rabbitMQCustomEndpointFlag = "rabbitmq-custom-endpoint"
@@ -46,6 +47,7 @@ type inputModel struct {
4647 LogMeCustomEndpoint bool
4748 MariaDBCustomEndpoint bool
4849 MongoDBFlexCustomEndpoint bool
50+ ObjectStorageCustomEndpoint bool
4951 OpenSearchCustomEndpoint bool
5052 PostgresFlexCustomEndpoint bool
5153 RabbitMQCustomEndpoint bool
@@ -104,6 +106,9 @@ func NewCmd() *cobra.Command {
104106 if model .MongoDBFlexCustomEndpoint {
105107 viper .Set (config .MongoDBFlexCustomEndpointKey , "" )
106108 }
109+ if model .ObjectStorageCustomEndpoint {
110+ viper .Set (config .ObjectStorageCustomEndpointKey , "" )
111+ }
107112 if model .OpenSearchCustomEndpoint {
108113 viper .Set (config .OpenSearchCustomEndpointKey , "" )
109114 }
@@ -149,6 +154,7 @@ func configureFlags(cmd *cobra.Command) {
149154 cmd .Flags ().Bool (logMeCustomEndpointFlag , false , "LogMe API base URL. If unset, uses the default base URL" )
150155 cmd .Flags ().Bool (mariaDBCustomEndpointFlag , false , "MariaDB API base URL. If unset, uses the default base URL" )
151156 cmd .Flags ().Bool (mongoDBFlexCustomEndpointFlag , false , "MongoDB Flex API base URL. If unset, uses the default base URL" )
157+ cmd .Flags ().Bool (objectStorageCustomEndpointFlag , false , "Object Storage API base URL. If unset, uses the default base URL" )
152158 cmd .Flags ().Bool (openSearchCustomEndpointFlag , false , "OpenSearch API base URL. If unset, uses the default base URL" )
153159 cmd .Flags ().Bool (postgresFlexCustomEndpointFlag , false , "PostgreSQL Flex API base URL. If unset, uses the default base URL" )
154160 cmd .Flags ().Bool (rabbitMQCustomEndpointFlag , false , "RabbitMQ API base URL. If unset, uses the default base URL" )
@@ -170,6 +176,7 @@ func parseInput(cmd *cobra.Command) *inputModel {
170176 LogMeCustomEndpoint : flags .FlagToBoolValue (cmd , logMeCustomEndpointFlag ),
171177 MariaDBCustomEndpoint : flags .FlagToBoolValue (cmd , mariaDBCustomEndpointFlag ),
172178 MongoDBFlexCustomEndpoint : flags .FlagToBoolValue (cmd , mongoDBFlexCustomEndpointFlag ),
179+ ObjectStorageCustomEndpoint : flags .FlagToBoolValue (cmd , objectStorageCustomEndpointFlag ),
173180 OpenSearchCustomEndpoint : flags .FlagToBoolValue (cmd , openSearchCustomEndpointFlag ),
174181 PostgresFlexCustomEndpoint : flags .FlagToBoolValue (cmd , postgresFlexCustomEndpointFlag ),
175182 RabbitMQCustomEndpoint : flags .FlagToBoolValue (cmd , rabbitMQCustomEndpointFlag ),
0 commit comments