Skip to content

Commit b0b6936

Browse files
Fixed URL for the atlas operator client (#453)
* Fixed URL for the atlas operator client
1 parent 582e7ee commit b0b6936

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174

175175
- name: Change path for the test
176176
run: |
177-
sed -i -e 's/cloud.mongodb.com/cloud-qa.mongodb.com\//' bundle/manifests/mongodb-atlas-kubernetes.clusterserviceversion.yaml
177+
awk '{gsub(/cloud.mongodb.com/, "cloud-qa.mongodb.com", $0); print}' bundle/manifests/mongodb-atlas-kubernetes.clusterserviceversion.yaml > tmp && mv tmp bundle/manifests/mongodb-atlas-kubernetes.clusterserviceversion.yaml
178178
179179
- name: Push bundle-image for the test
180180
if: ${{ matrix.test == 'openshift' || matrix.test == 'bundle-test' && !env.ACT }}

cmd/manager/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ type Config struct {
184184
func parseConfiguration(log *zap.SugaredLogger) Config {
185185
var globalAPISecretName string
186186
config := Config{}
187-
flag.StringVar(&config.AtlasDomain, "atlas-domain", "https://cloud.mongodb.com", "the Atlas URL domain name (no slash in the end).")
187+
flag.StringVar(&config.AtlasDomain, "atlas-domain", "https://cloud.mongodb.com/", "the Atlas URL domain name (with slash in the end).")
188188
flag.StringVar(&config.MetricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
189189
flag.StringVar(&config.ProbeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
190190
flag.StringVar(&globalAPISecretName, "global-api-secret-name", "", "The name of the Secret that contains Atlas API keys. "+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{"op": "add",
33
"path": "/spec/template/spec/containers/0/args/0",
4-
"value": "--atlas-domain=https://cloud.mongodb.com"
4+
"value": "--atlas-domain=https://cloud.mongodb.com/"
55
}
66
]

0 commit comments

Comments
 (0)