Skip to content

Commit

Permalink
Update version to 0.42.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deliahu committed Jan 8, 2022
1 parent 8264ddb commit f0de149
Show file tree
Hide file tree
Showing 24 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion build/amend-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

set -euo pipefail

CORTEX_VERSION=master
CORTEX_VERSION=0.42.0

host_primary=$1
host_backup=$2
Expand Down
2 changes: 1 addition & 1 deletion build/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. >/dev/null && pwd)"

CORTEX_VERSION=master
CORTEX_VERSION=0.42.0

host_primary=$1
host_backup=$2
Expand Down
2 changes: 1 addition & 1 deletion build/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. >/dev/null && pwd)"

CORTEX_VERSION=master
CORTEX_VERSION=0.42.0

arg1=${1:-""}
upload="false"
Expand Down
2 changes: 1 addition & 1 deletion build/push-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. >/dev/null && pwd)"

CORTEX_VERSION=master
CORTEX_VERSION=0.42.0

host_primary=$1
host_backup=$2
Expand Down
2 changes: 1 addition & 1 deletion dev/export_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. >/dev/null && pwd)"

# CORTEX_VERSION
cortex_version=master
cortex_version=0.42.0

# user set variables
ecr_region=$1
Expand Down
2 changes: 1 addition & 1 deletion dev/registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

CORTEX_VERSION=master
CORTEX_VERSION=0.42.0

set -eo pipefail

Expand Down
8 changes: 4 additions & 4 deletions docs/clients/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<!-- CORTEX_VERSION_README x2 -->
```bash
# download CLI version 0.41.0 (Note the "v"):
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.41.0/get-cli.sh)"
# download CLI version 0.42.0 (Note the "v"):
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.42.0/get-cli.sh)"
```

By default, the Cortex CLI is installed at `/usr/local/bin/cortex`. To install the executable elsewhere, export the `CORTEX_INSTALL_PATH` environment variable to your desired location before running the command above.
Expand All @@ -19,10 +19,10 @@ pip install cortex
```

<!-- CORTEX_VERSION_README x2 -->
To install or upgrade to a specific version (e.g. v0.41.0):
To install or upgrade to a specific version (e.g. v0.42.0):

```bash
pip install cortex==0.41.0
pip install cortex==0.42.0
```

To upgrade to the latest version:
Expand Down
4 changes: 2 additions & 2 deletions docs/clients/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Deploy or update an API.

**Arguments**:

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

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

**Arguments**:

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

Expand Down
2 changes: 1 addition & 1 deletion docs/clusters/advanced/self-hosted-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Clone the Cortex repo using the release tag corresponding to your version (which
<!-- CORTEX_VERSION_README -->

```bash
export CORTEX_VERSION=0.41.0
export CORTEX_VERSION=0.42.0
git clone --depth 1 --branch v$CORTEX_VERSION https://github.com/cortexlabs/cortex.git
```

Expand Down
58 changes: 29 additions & 29 deletions docs/clusters/management/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- CORTEX_VERSION_README -->
```bash
# install the cortex CLI
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.41.0/get-cli.sh)"
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.42.0/get-cli.sh)"

# create a cluster
cortex cluster up cluster.yaml
Expand Down Expand Up @@ -104,32 +104,32 @@ The docker images used by the cluster can also be overridden. They can be config
<!-- CORTEX_VERSION_BRANCH_STABLE -->
```yaml
image_manager: quay.io/cortexlabs/manager:master
image_operator: quay.io/cortexlabs/operator:master
image_controller_manager: quay.io/cortexlabs/controller-manager:master
image_autoscaler: quay.io/cortexlabs/autoscaler:master
image_proxy: quay.io/cortexlabs/proxy:master
image_async_gateway: quay.io/cortexlabs/async-gateway:master
image_activator: quay.io/cortexlabs/activator:master
image_enqueuer: quay.io/cortexlabs/enqueuer:master
image_dequeuer: quay.io/cortexlabs/dequeuer:master
image_cluster_autoscaler: quay.io/cortexlabs/cluster-autoscaler:master
image_metrics_server: quay.io/cortexlabs/metrics-server:master
image_nvidia_device_plugin: quay.io/cortexlabs/nvidia-device-plugin:master
image_neuron_device_plugin: quay.io/cortexlabs/neuron-device-plugin:master
image_neuron_scheduler: quay.io/cortexlabs/neuron-scheduler:master
image_fluent_bit: quay.io/cortexlabs/fluent-bit:master
image_istio_proxy: quay.io/cortexlabs/istio-proxy:master
image_istio_pilot: quay.io/cortexlabs/istio-pilot:master
image_prometheus: quay.io/cortexlabs/prometheus:master
image_prometheus_config_reloader: quay.io/cortexlabs/prometheus-config-reloader:master
image_prometheus_operator: quay.io/cortexlabs/prometheus-operator:master
image_prometheus_statsd_exporter: quay.io/cortexlabs/prometheus-statsd-exporter:master
image_prometheus_dcgm_exporter: quay.io/cortexlabs/prometheus-dcgm-exporter:master
image_prometheus_kube_state_metrics: quay.io/cortexlabs/prometheus-kube-state-metrics:master
image_prometheus_node_exporter: quay.io/cortexlabs/prometheus-node-exporter:master
image_kube_rbac_proxy: quay.io/cortexlabs/kube-rbac-proxy:master
image_grafana: quay.io/cortexlabs/grafana:master
image_event_exporter: quay.io/cortexlabs/event-exporter:master
image_kubexit: quay.io/cortexlabs/kubexit:master
image_manager: quay.io/cortexlabs/manager:0.42.0
image_operator: quay.io/cortexlabs/operator:0.42.0
image_controller_manager: quay.io/cortexlabs/controller-manager:0.42.0
image_autoscaler: quay.io/cortexlabs/autoscaler:0.42.0
image_proxy: quay.io/cortexlabs/proxy:0.42.0
image_async_gateway: quay.io/cortexlabs/async-gateway:0.42.0
image_activator: quay.io/cortexlabs/activator:0.42.0
image_enqueuer: quay.io/cortexlabs/enqueuer:0.42.0
image_dequeuer: quay.io/cortexlabs/dequeuer:0.42.0
image_cluster_autoscaler: quay.io/cortexlabs/cluster-autoscaler:0.42.0
image_metrics_server: quay.io/cortexlabs/metrics-server:0.42.0
image_nvidia_device_plugin: quay.io/cortexlabs/nvidia-device-plugin:0.42.0
image_neuron_device_plugin: quay.io/cortexlabs/neuron-device-plugin:0.42.0
image_neuron_scheduler: quay.io/cortexlabs/neuron-scheduler:0.42.0
image_fluent_bit: quay.io/cortexlabs/fluent-bit:0.42.0
image_istio_proxy: quay.io/cortexlabs/istio-proxy:0.42.0
image_istio_pilot: quay.io/cortexlabs/istio-pilot:0.42.0
image_prometheus: quay.io/cortexlabs/prometheus:0.42.0
image_prometheus_config_reloader: quay.io/cortexlabs/prometheus-config-reloader:0.42.0
image_prometheus_operator: quay.io/cortexlabs/prometheus-operator:0.42.0
image_prometheus_statsd_exporter: quay.io/cortexlabs/prometheus-statsd-exporter:0.42.0
image_prometheus_dcgm_exporter: quay.io/cortexlabs/prometheus-dcgm-exporter:0.42.0
image_prometheus_kube_state_metrics: quay.io/cortexlabs/prometheus-kube-state-metrics:0.42.0
image_prometheus_node_exporter: quay.io/cortexlabs/prometheus-node-exporter:0.42.0
image_kube_rbac_proxy: quay.io/cortexlabs/kube-rbac-proxy:0.42.0
image_grafana: quay.io/cortexlabs/grafana:0.42.0
image_event_exporter: quay.io/cortexlabs/event-exporter:0.42.0
image_kubexit: quay.io/cortexlabs/kubexit:0.42.0
```
10 changes: 5 additions & 5 deletions docs/clusters/management/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ If you are spinning a up a new cluster with a different Cortex version, first in
<!-- CORTEX_VERSION_README x2 -->

```bash
# download the desired CLI version, replace 0.41.0 with the desired version (Note the "v"):
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.41.0/get-cli.sh)"
# download the desired CLI version, replace 0.42.0 with the desired version (Note the "v"):
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.42.0/get-cli.sh)"

# confirm Cortex CLI version
cortex version
Expand All @@ -74,11 +74,11 @@ You can use different Cortex CLIs to interact with the different versioned clust
<!-- CORTEX_VERSION_README x4 -->

```bash
# download the desired CLI version, replace 0.41.0 with the desired version (Note the "v"):
CORTEX_INSTALL_PATH=$(pwd)/cortex0.41.0 bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.41.0/get-cli.sh)"
# download the desired CLI version, replace 0.42.0 with the desired version (Note the "v"):
CORTEX_INSTALL_PATH=$(pwd)/cortex0.42.0 bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.42.0/get-cli.sh)"

# confirm cortex CLI version
./cortex0.41.0 version
./cortex0.42.0 version
```

### Deploy the APIs to your new cluster
Expand Down
2 changes: 1 addition & 1 deletion docs/clusters/observability/alerting.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ containers:
envFrom:
- secretRef:
name: grafana-smtp
image: quay.io/cortexlabs/grafana:0.41.0
image: quay.io/cortexlabs/grafana:0.42.0
imagePullPolicy: IfNotPresent
name: grafana
# ...
Expand Down
2 changes: 1 addition & 1 deletion docs/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- CORTEX_VERSION_README -->
```bash
# install the CLI
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.41.0/get-cli.sh)"
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.42.0/get-cli.sh)"

# create a cluster
cortex cluster up cluster.yaml
Expand Down
2 changes: 1 addition & 1 deletion get-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set -e

CORTEX_VERSION_BRANCH_STABLE=master
CORTEX_VERSION_BRANCH_STABLE=0.42.0
CORTEX_INSTALL_PATH="${CORTEX_INSTALL_PATH:-/usr/local/bin/cortex}"

# replace ~ with the home directory path
Expand Down
2 changes: 1 addition & 1 deletion manager/check_cortex_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set -e

CORTEX_VERSION=master
CORTEX_VERSION=0.42.0

if [ "$CORTEX_VERSION" != "$CORTEX_CLI_VERSION" ]; then
echo "error: your CLI version ($CORTEX_CLI_VERSION) doesn't match your Cortex manager image version ($CORTEX_VERSION); please update your CLI (pip install cortex==$CORTEX_VERSION) to match the version of your Cortex manager image"
Expand Down
2 changes: 1 addition & 1 deletion manager/debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set +e

CORTEX_VERSION_MINOR=master
CORTEX_VERSION_MINOR=0.42

debug_out_path="$1"
mkdir -p "$(dirname "$debug_out_path")"
Expand Down
4 changes: 2 additions & 2 deletions manager/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

set -eo pipefail

export CORTEX_VERSION=master
export CORTEX_VERSION_MINOR=master
export CORTEX_VERSION=0.42.0
export CORTEX_VERSION_MINOR=0.42
EKSCTL_CLUSTER_TIMEOUT=45m
EKSCTL_NODEGROUP_TIMEOUT=30m
mkdir /workspace
Expand Down
2 changes: 1 addition & 1 deletion manager/refresh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set -e

CORTEX_VERSION_MINOR=master
CORTEX_VERSION_MINOR=0.42

cluster_config_out_path="$1"
mkdir -p "$(dirname "$cluster_config_out_path")"
Expand Down
4 changes: 2 additions & 2 deletions pkg/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
)

var (
CortexVersion = "master" // CORTEX_VERSION
CortexVersionMinor = "master" // CORTEX_VERSION_MINOR
CortexVersion = "0.42.0" // CORTEX_VERSION
CortexVersionMinor = "0.42" // CORTEX_VERSION_MINOR

DefaultNamespace = "default"
KubeSystemNamespace = "kube-system"
Expand Down
2 changes: 1 addition & 1 deletion python/client/cortex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from cortex.telemetry import sentry_wrapper


__version__ = "master" # CORTEX_VERSION
__version__ = "0.42.0" # CORTEX_VERSION


@sentry_wrapper
Expand Down
4 changes: 2 additions & 2 deletions python/client/cortex/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def deploy(
Deploy or update an API.
Args:
api_spec: A dictionary defining a single Cortex API. See https://docs.cortex.dev/v/master/ for schema.
api_spec: A dictionary defining a single Cortex API. See https://docs.cortex.dev/v/0.42/ for schema.
force: Override any in-progress api updates.
wait: Block until the API is ready.
Expand Down Expand Up @@ -82,7 +82,7 @@ def deploy_from_file(
Deploy or update APIs specified in a configuration file.
Args:
config_file: Local path to a yaml file defining Cortex API(s). See https://docs.cortex.dev/v/master/ for schema.
config_file: Local path to a yaml file defining Cortex API(s). See https://docs.cortex.dev/v/0.42/ for schema.
force: Override any in-progress api updates.
wait: Block until the API is ready.
Expand Down
2 changes: 1 addition & 1 deletion python/client/cortex/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# limitations under the License.


CORTEX_VERSION = "master" # CORTEX_VERSION
CORTEX_VERSION = "0.42.0" # CORTEX_VERSION
CORTEX_TELEMETRY_SENTRY_DSN = "https://[email protected]/1825326"
CORTEX_TELEMETRY_SENTRY_ENVIRONMENT = "client"
2 changes: 1 addition & 1 deletion python/client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def run(self):

setup(
name="cortex",
version="master", # CORTEX_VERSION
version="0.42.0", # CORTEX_VERSION
description="Cost-effective serverless computing",
author="cortex.dev",
author_email="[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name="e2e",
version="master", # CORTEX_VERSION
version="0.42.0", # CORTEX_VERSION
packages=find_packages(exclude=["tests"]),
url="https://github.com/cortexlabs/cortex",
license="Apache License 2.0",
Expand Down

0 comments on commit f0de149

Please sign in to comment.