Skip to content

Commit dc48c02

Browse files
committed
Update website URL
1 parent a1bfb09 commit dc48c02

File tree

24 files changed

+41
-41
lines changed

24 files changed

+41
-41
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**[Website](https://www.cortex.dev)****[Slack](https://community.cortex.dev)****[Docs](https://docs.cortex.dev)**
1+
**[Docs](https://docs.cortexlabs.com)****[Slack](https://community.cortexlabs.com)**
22

33
<br>
44

cli/cluster/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func ErrorFailedToConnectOperator(originalError error, envName string, operatorU
6262
msg += fmt.Sprintf(" → otherwise you can ignore this message, and prevent it in the future with `cortex env delete %s`\n", envName)
6363
msg += "\nif you have a cluster running:\n"
6464
msg += fmt.Sprintf(" → run `cortex cluster info --configure-env %s` to update your environment (include `--config <cluster.yaml>` if you have a cluster configuration file)\n", envName)
65-
msg += fmt.Sprintf(" → if you set `operator_load_balancer_scheme: internal` in your cluster configuration file, your CLI must run from within a VPC that has access to your cluster's VPC (see https://docs.cortex.dev/v/%s/)\n", consts.CortexVersionMinor)
65+
msg += fmt.Sprintf(" → if you set `operator_load_balancer_scheme: internal` in your cluster configuration file, your CLI must run from within a VPC that has access to your cluster's VPC (see https://docs.cortexlabs.com/v/%s/)\n", consts.CortexVersionMinor)
6666
msg += fmt.Sprintf(" → confirm that the ip address of this machine falls within the CIDR ranges specified in `operator_load_balancer_cidr_whitelist`")
6767
}
6868

cli/cmd/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func ErrorNoTerminalWidth() error {
266266
func ErrorDeployFromTopLevelDir(genericDirName string) error {
267267
return errors.WithStack(&errors.Error{
268268
Kind: ErrDeployFromTopLevelDir,
269-
Message: fmt.Sprintf("cannot deploy from your %s directory - when deploying your API, cortex sends all files in your project directory (i.e. the directory which contains cortex.yaml) to your cluster (see https://docs.cortex.dev/v/%s/); therefore it is recommended to create a subdirectory for your project files", genericDirName, consts.CortexVersionMinor),
269+
Message: fmt.Sprintf("cannot deploy from your %s directory - when deploying your API, cortex sends all files in your project directory (i.e. the directory which contains cortex.yaml) to your cluster (see https://docs.cortexlabs.com/v/%s/); therefore it is recommended to create a subdirectory for your project files", genericDirName, consts.CortexVersionMinor),
270270
})
271271
}
272272

cli/cmd/lib_aws_creds.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func promptIfNotAdmin(awsClient *aws.Client, disallowPrompt bool) {
5454
}
5555

5656
if !awsClient.IsAdmin() {
57-
warningStr := fmt.Sprintf("warning: your IAM user%s does not have administrator access. Please attach the AdministratorAccess policy to your IAM user (or to a group that your IAM user belongs to), or visit https://docs.cortex.dev/v/%s/ to view the minimum permissions required to run `cortex cluster` commands.\n\n", accessKeyMsg, consts.CortexVersionMinor)
57+
warningStr := fmt.Sprintf("warning: your IAM user%s does not have administrator access. Please attach the AdministratorAccess policy to your IAM user (or to a group that your IAM user belongs to), or visit https://docs.cortexlabs.com/v/%s/ to view the minimum permissions required to run `cortex cluster` commands.\n\n", accessKeyMsg, consts.CortexVersionMinor)
5858
if disallowPrompt {
5959
fmt.Print(warningStr)
6060
} else {

cli/cmd/lib_cluster_config.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func readCachedClusterConfigFile(clusterConfig *clusterconfig.Config, filePath s
7272
func readUserClusterConfigFile(clusterConfig *clusterconfig.Config, filePath string) error {
7373
errs := cr.ParseYAMLFile(clusterConfig, clusterconfig.FullConfigValidation, filePath)
7474
if errors.HasError(errs) {
75-
return errors.Append(errors.FirstError(errs...), fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor))
75+
return errors.Append(errors.FirstError(errs...), fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortexlabs.com/v/%s/", consts.CortexVersionMinor))
7676
}
7777

7878
return nil
@@ -83,7 +83,7 @@ func getNewClusterAccessConfig(clusterConfigFile string) (*clusterconfig.AccessC
8383

8484
errs := cr.ParseYAMLFile(accessConfig, clusterconfig.AccessValidation, clusterConfigFile)
8585
if errors.HasError(errs) {
86-
return nil, errors.Append(errors.FirstError(errs...), fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor))
86+
return nil, errors.Append(errors.FirstError(errs...), fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortexlabs.com/v/%s/", consts.CortexVersionMinor))
8787
}
8888

8989
return accessConfig, nil
@@ -105,7 +105,7 @@ func getClusterAccessConfigWithCache(hasClusterFlags bool) (*clusterconfig.Acces
105105
if _flagClusterConfig != "" {
106106
errs := cr.ParseYAMLFile(accessConfig, clusterconfig.AccessValidation, _flagClusterConfig)
107107
if errors.HasError(errs) {
108-
return nil, errors.Append(errors.FirstError(errs...), fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor))
108+
return nil, errors.Append(errors.FirstError(errs...), fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortexlabs.com/v/%s/", consts.CortexVersionMinor))
109109
}
110110
}
111111

@@ -134,7 +134,7 @@ func getInstallClusterConfig(awsClient *aws.Client, clusterConfigFile string) (*
134134

135135
err = clusterConfig.ValidateOnInstall(awsClient)
136136
if err != nil {
137-
err = errors.Append(err, fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor))
137+
err = errors.Append(err, fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortexlabs.com/v/%s/", consts.CortexVersionMinor))
138138
return nil, errors.Wrap(err, clusterConfigFile)
139139
}
140140

@@ -154,7 +154,7 @@ func getConfigureClusterConfig(awsClient *aws.Client, k8sClient *k8s.Client, sta
154154

155155
configureChanges, err := newUserClusterConfig.ValidateOnConfigure(awsClient, k8sClient, cachedClusterConfig, stacks.NodeGroupsStacks)
156156
if err != nil {
157-
err = errors.Append(err, fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor))
157+
err = errors.Append(err, fmt.Sprintf("\n\ncluster configuration schema can be found at https://docs.cortexlabs.com/v/%s/", consts.CortexVersionMinor))
158158
return nil, clusterconfig.ConfigureChanges{}, errors.Wrap(err, newClusterConfigFile)
159159
}
160160

@@ -286,19 +286,19 @@ func confirmInstallClusterConfig(clusterConfig *clusterconfig.Config, awsClient
286286
fmt.Printf("cortex will also create an s3 bucket (%s) and a cloudwatch log group (%s)%s\n\n", clusterConfig.Bucket, clusterConfig.ClusterName, privateSubnetMsg)
287287

288288
if clusterConfig.OperatorLoadBalancerScheme == clusterconfig.InternalLoadBalancerScheme {
289-
fmt.Print(fmt.Sprintf("warning: you've configured the operator load balancer to be internal; you must configure VPC Peering to connect your CLI to your cluster operator (see https://docs.cortex.dev/v/%s/)\n\n", consts.CortexVersionMinor))
289+
fmt.Print(fmt.Sprintf("warning: you've configured the operator load balancer to be internal; you must configure VPC Peering to connect your CLI to your cluster operator (see https://docs.cortexlabs.com/v/%s/)\n\n", consts.CortexVersionMinor))
290290
}
291291

292292
if len(clusterConfig.Subnets) > 0 {
293293
fmt.Print("warning: you've configured your cluster to be installed in an existing VPC; if your cluster doesn't spin up or function as expected, please double-check your VPC configuration (here are the requirements: https://eksctl.io/usage/vpc-networking/#use-existing-vpc-other-custom-configuration)\n\n")
294294
}
295295

296296
if len(clusterConfig.NodeGroups) > 1 && len(ngNameToSpotInstancesUsed) > 0 {
297-
fmt.Printf("warning: you've enabled spot instances for %s %s; spot instances are not guaranteed to be available so please take that into account for production clusters; see https://docs.cortex.dev/v/%s/ for more information\n\n", s.PluralS("nodegroup", len(ngNameToSpotInstancesUsed)), s.StrsAnd(maps.StrMapKeysInt(ngNameToSpotInstancesUsed)), consts.CortexVersionMinor)
297+
fmt.Printf("warning: you've enabled spot instances for %s %s; spot instances are not guaranteed to be available so please take that into account for production clusters; see https://docs.cortexlabs.com/v/%s/ for more information\n\n", s.PluralS("nodegroup", len(ngNameToSpotInstancesUsed)), s.StrsAnd(maps.StrMapKeysInt(ngNameToSpotInstancesUsed)), consts.CortexVersionMinor)
298298
}
299299

300300
if !disallowPrompt {
301-
exitMessage := fmt.Sprintf("cluster configuration can be modified via the cluster config file; see https://docs.cortex.dev/v/%s/ for more information", consts.CortexVersionMinor)
301+
exitMessage := fmt.Sprintf("cluster configuration can be modified via the cluster config file; see https://docs.cortexlabs.com/v/%s/ for more information", consts.CortexVersionMinor)
302302
prompt.YesOrExit("would you like to continue?", "", exitMessage)
303303
}
304304
}
@@ -332,7 +332,7 @@ func confirmConfigureClusterConfig(configureChanges clusterconfig.ConfigureChang
332332
fmt.Println()
333333

334334
if !disallowPrompt {
335-
exitMessage := fmt.Sprintf("cluster configuration can be modified via the cluster config file; see https://docs.cortex.dev/v/%s/ for more information", consts.CortexVersionMinor)
335+
exitMessage := fmt.Sprintf("cluster configuration can be modified via the cluster config file; see https://docs.cortexlabs.com/v/%s/ for more information", consts.CortexVersionMinor)
336336
prompt.YesOrExit(fmt.Sprintf("your cluster named \"%s\" in %s will be updated according to the configuration above, are you sure you want to continue?", newCc.ClusterName, newCc.Region), "", exitMessage)
337337
}
338338
}

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
**Please read our documentation at [docs.cortex.dev](https://docs.cortex.dev)**
1+
**Please read our documentation at [docs.cortexlabs.com](https://docs.cortexlabs.com)**

docs/clients/python.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Deploy or update an API.
8686

8787
**Arguments**:
8888

89-
- `api_spec` - A dictionary defining a single Cortex API. See https://docs.cortex.dev/v/master/ for schema.
89+
- `api_spec` - A dictionary defining a single Cortex API. See https://docs.cortexlabs.com/v/master/ for schema.
9090
- `force` - Override any in-progress api updates.
9191
- `wait` - Block until the API is ready.
9292

@@ -107,7 +107,7 @@ Deploy or update APIs specified in a configuration file.
107107

108108
**Arguments**:
109109

110-
- `config_file` - Local path to a yaml file defining Cortex API(s). See https://docs.cortex.dev/v/master/ for schema.
110+
- `config_file` - Local path to a yaml file defining Cortex API(s). See https://docs.cortexlabs.com/v/master/ for schema.
111111
- `force` - Override any in-progress api updates.
112112
- `wait` - Block until the API is ready.
113113

docs/clusters/observability/metrics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ You can use any of these metrics to set up your own dashboards.
7373

7474
You can scrape metrics from the in-cluster Prometheus server via the `/federate` endpoint and push them to monitoring solutions such as Datadog.
7575

76-
The steps for exporting metrics from Prometheus will vary based on your monitoring solution. Here are a few high-level steps to get you started. We will be using Datadog as an example; feel free to reach out to us on [Slack](https://community.cortex.dev/) if you need help setting up your monitoring tool.
76+
The steps for exporting metrics from Prometheus will vary based on your monitoring solution. Here are a few high-level steps to get you started. We will be using Datadog as an example; feel free to reach out to us on [Slack](https://community.cortexlabs.com/) if you need help setting up your monitoring tool.
7777

7878
### Configure kubectl
7979

manager/debug.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if ! eksctl utils describe-stacks --cluster=$CORTEX_CLUSTER_NAME --region=$CORTE
2727
fi
2828

2929
eksctl utils write-kubeconfig --cluster=$CORTEX_CLUSTER_NAME --region=$CORTEX_REGION --verbose=0 | (grep -v "saved kubeconfig as" || true)
30-
out=$(kubectl get pods 2>&1 || true); if [[ "$out" == *"must be logged in to the server"* ]]; then echo "error: your aws iam user does not have access to this cluster; to grant access, see https://docs.cortex.dev/v/${CORTEX_VERSION_MINOR}/"; exit 1; fi
30+
out=$(kubectl get pods 2>&1 || true); if [[ "$out" == *"must be logged in to the server"* ]]; then echo "error: your aws iam user does not have access to this cluster; to grant access, see https://docs.cortexlabs.com/v/${CORTEX_VERSION_MINOR}/"; exit 1; fi
3131

3232
echo -n "gathering cluster data"
3333

manager/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function cluster_up() {
8383

8484
echo -e "\ncortex is ready!"
8585
if [ "$CORTEX_OPERATOR_LOAD_BALANCER_SCHEME" == "internal" ]; then
86-
echo -e "\nnote: you will need to configure VPC Peering to connect to your cluster: https://docs.cortex.dev/v/${CORTEX_VERSION_MINOR}/"
86+
echo -e "\nnote: you will need to configure VPC Peering to connect to your cluster: https://docs.cortexlabs.com/v/${CORTEX_VERSION_MINOR}/"
8787
fi
8888

8989
print_endpoints
@@ -200,7 +200,7 @@ function check_eks() {
200200

201201
function write_kubeconfig() {
202202
eksctl utils write-kubeconfig --cluster=$CORTEX_CLUSTER_NAME --region=$CORTEX_REGION --verbose=0 | (grep -v "saved kubeconfig as" || true)
203-
out=$(kubectl get pods 2>&1 || true); if [[ "$out" == *"must be logged in to the server"* ]]; then echo "error: your aws iam user does not have access to this cluster; to grant access, see https://docs.cortex.dev/v/${CORTEX_VERSION_MINOR}/"; exit 1; fi
203+
out=$(kubectl get pods 2>&1 || true); if [[ "$out" == *"must be logged in to the server"* ]]; then echo "error: your aws iam user does not have access to this cluster; to grant access, see https://docs.cortexlabs.com/v/${CORTEX_VERSION_MINOR}/"; exit 1; fi
204204
}
205205

206206
function setup_namespaces() {

manager/refresh.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ if ! eksctl utils describe-stacks --cluster=$CORTEX_CLUSTER_NAME --region=$CORTE
2727
fi
2828

2929
eksctl utils write-kubeconfig --cluster=$CORTEX_CLUSTER_NAME --region=$CORTEX_REGION --verbose=0 | (grep -v "saved kubeconfig as" || true)
30-
out=$(kubectl get pods 2>&1 || true); if [[ "$out" == *"must be logged in to the server"* ]]; then echo "error: your aws iam user does not have access to this cluster; to grant access, see https://docs.cortex.dev/v/${CORTEX_VERSION_MINOR}/"; exit 1; fi
30+
out=$(kubectl get pods 2>&1 || true); if [[ "$out" == *"must be logged in to the server"* ]]; then echo "error: your aws iam user does not have access to this cluster; to grant access, see https://docs.cortexlabs.com/v/${CORTEX_VERSION_MINOR}/"; exit 1; fi
3131

3232
kubectl get -n=default configmap cluster-config -o json | jq -r '.data."cluster.yaml"' >> $cluster_config_out_path

pkg/lib/docker/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func ErrorImageInaccessible(image string, cause error) error {
7373
}
7474

7575
if strings.Contains(cause.Error(), "auth") {
76-
message += fmt.Sprintf("\n\nif you would like to use a private docker registry, see https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor)
76+
message += fmt.Sprintf("\n\nif you would like to use a private docker registry, see https://docs.cortexlabs.com/v/%s/", consts.CortexVersionMinor)
7777
}
7878

7979
return errors.WithStack(&errors.Error{

pkg/lib/k8s/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func ErrorParseAnnotation(annotationName string, annotationVal string, desiredTy
6565
func ErrorParseQuantity(qtyStr string) error {
6666
return errors.WithStack(&errors.Error{
6767
Kind: ErrParseQuantity,
68-
Message: fmt.Sprintf("%s: invalid kubernetes quantity, some valid examples are 1, 200m, 500Mi, 2G (see here for more information: https://docs.cortex.dev/v/%s/)", qtyStr, consts.CortexVersionMinor),
68+
Message: fmt.Sprintf("%s: invalid kubernetes quantity, some valid examples are 1, 200m, 500Mi, 2G (see here for more information: https://docs.cortexlabs.com/v/%s/)", qtyStr, consts.CortexVersionMinor),
6969
})
7070
}
7171

pkg/operator/endpoints/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const (
4242
func ErrorAPIVersionMismatch(operatorVersion string, clientVersion string) error {
4343
return errors.WithStack(&errors.Error{
4444
Kind: ErrAPIVersionMismatch,
45-
Message: fmt.Sprintf("your CLI version (%s) doesn't match your Cortex operator version (%s); please update your cluster by following the instructions at https://docs.cortex.dev, or update your CLI (pip install cortex==%s)", clientVersion, operatorVersion, operatorVersion),
45+
Message: fmt.Sprintf("your CLI version (%s) doesn't match your Cortex operator version (%s); please update your cluster by following the instructions at https://docs.cortexlabs.com, or update your CLI (pip install cortex==%s)", clientVersion, operatorVersion, operatorVersion),
4646
})
4747
}
4848

pkg/operator/endpoints/submit_batch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func SubmitBatchJob(w http.ResponseWriter, r *http.Request) {
6060

6161
err = json.Unmarshal(bodyBytes, &submission)
6262
if err != nil {
63-
respondError(w, r, errors.Append(err, fmt.Sprintf("\n\njob submission schema can be found at https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor)))
63+
respondError(w, r, errors.Append(err, fmt.Sprintf("\n\njob submission schema can be found at https://docs.cortexlabs.com/v/%s/", consts.CortexVersionMinor)))
6464
return
6565
}
6666

pkg/operator/endpoints/submit_task.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func SubmitTaskJob(w http.ResponseWriter, r *http.Request) {
6262
err = json.Unmarshal(bodyBytes, &submission)
6363
if err != nil {
6464
respondError(w, r, errors.Append(err,
65-
fmt.Sprintf("\n\ntask job submission schema can be found at https://docs.cortex.dev/v/%s/",
65+
fmt.Sprintf("\n\ntask job submission schema can be found at https://docs.cortexlabs.com/v/%s/",
6666
consts.CortexVersionMinor)),
6767
)
6868
return

pkg/operator/resources/job/batchapi/validations.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func validateJobSubmissionSchema(submission *schema.BatchJobSubmission) error {
105105
func validateJobSubmission(submission *schema.BatchJobSubmission) error {
106106
err := validateJobSubmissionSchema(submission)
107107
if err != nil {
108-
return errors.Append(err, fmt.Sprintf("\n\njob submission schema can be found at https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor))
108+
return errors.Append(err, fmt.Sprintf("\n\njob submission schema can be found at https://docs.cortexlabs.com/v/%s/", consts.CortexVersionMinor))
109109
}
110110

111111
if submission.FilePathLister != nil {

pkg/operator/resources/resources.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func Deploy(configFileName string, configBytes []byte, force bool) ([]schema.Dep
9191

9292
err = ValidateClusterAPIs(apiConfigs)
9393
if err != nil {
94-
err = errors.Append(err, fmt.Sprintf("\n\napi configuration schema can be found at https://docs.cortex.dev/v/%s/", consts.CortexVersionMinor))
94+
err = errors.Append(err, fmt.Sprintf("\n\napi configuration schema can be found at https://docs.cortexlabs.com/v/%s/", consts.CortexVersionMinor))
9595
return nil, err
9696
}
9797

@@ -459,7 +459,7 @@ func getPastAPIDeploys(apiName string) ([]schema.APIVersion, error) {
459459
return apiVersions, nil
460460
}
461461

462-
//checkIfUsedByTrafficSplitter checks if api is used by a deployed TrafficSplitter
462+
// checkIfUsedByTrafficSplitter checks if api is used by a deployed TrafficSplitter
463463
func checkIfUsedByTrafficSplitter(apiName string) error {
464464
virtualServices, err := config.K8s.ListVirtualServicesByLabel("apiKind", userconfig.TrafficSplitterKind.String())
465465
if err != nil {

pkg/types/spec/errors.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ const (
6464
func ErrorMalformedConfig() error {
6565
return errors.WithStack(&errors.Error{
6666
Kind: ErrMalformedConfig,
67-
Message: fmt.Sprintf("cortex YAML configuration files must contain a list of maps (see https://docs.cortex.dev/v/%s/ for api configuration schema)", consts.CortexVersionMinor),
67+
Message: fmt.Sprintf("cortex YAML configuration files must contain a list of maps (see https://docs.cortexlabs.com/v/%s/ for api configuration schema)", consts.CortexVersionMinor),
6868
})
6969
}
7070

7171
func ErrorNoAPIs() error {
7272
return errors.WithStack(&errors.Error{
7373
Kind: ErrNoAPIs,
74-
Message: fmt.Sprintf("at least one API must be configured (see https://docs.cortex.dev/v/%s/ for api configuration schema)", consts.CortexVersionMinor),
74+
Message: fmt.Sprintf("at least one API must be configured (see https://docs.cortexlabs.com/v/%s/ for api configuration schema)", consts.CortexVersionMinor),
7575
})
7676
}
7777

0 commit comments

Comments
 (0)