Skip to content

Commit

Permalink
Bump version to v1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
polyaxon-team committed Mar 12, 2021
1 parent aa2a077 commit d0bb4d2
Show file tree
Hide file tree
Showing 1,501 changed files with 2,627 additions and 2,103 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,7 @@ values.*.test.sh

# Chart dependencies
**/charts/*.tgz

# polyaxon configs
.polyaxon/
.polyaxonignore
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Slack](https://img.shields.io/badge/Slack-1.2k%20members-blue.svg?style=flat&logo=slack&longCache=true)](https://polyaxon.com/slack/)

[![Docs](https://img.shields.io/badge/docs-stable-brightgreen.svg?style=flat&longCache=true)](https://polyaxon.com/docs/)
[![Release](https://img.shields.io/badge/release-v1.7.0-brightgreen.svg?longCache=true)](https://github.com/polyaxon/polyaxon/releases/tag/v1.7.0)
[![Release](https://img.shields.io/badge/release-v1.7.2-brightgreen.svg?longCache=true)](https://github.com/polyaxon/polyaxon/releases/tag/v1.7.2)
[![GitHub](https://img.shields.io/badge/issue_tracker-github-blue?style=flat&logo=github&longCache=true)](https://github.com/polyaxon/polyaxon/issues)
[![GitHub](https://img.shields.io/badge/roadmap-github-blue?style=flat&logo=github&longCache=true)](https://github.com/polyaxon/polyaxon/milestones)

Expand Down
4 changes: 2 additions & 2 deletions charts/agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
description: An enterprise-grade open-source platform for building, training, and monitoring large scale deep learning applications.
name: agent
version: 1.7.0
appVersion: 1.7.0
version: 1.7.2
appVersion: 1.7.2
keywords:
- deep learning
- a.i.
Expand Down
14 changes: 7 additions & 7 deletions charts/agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ agentSecret:
gateway:
enabled: true
image: polyaxon/polyaxon-gateway
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
replicas: 1
resources:
Expand All @@ -90,7 +90,7 @@ gateway:
streams:
enabled: true
image: polyaxon/polyaxon-streams
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
replicas: 1
resources:
Expand All @@ -117,7 +117,7 @@ streams:

init:
image: polyaxon/polyaxon-init
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
resources:
limits:
Expand All @@ -129,7 +129,7 @@ init:

sidecar:
image: polyaxon/polyaxon-sidecar
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
sleepInterval: 10
syncInterval: 10
Expand All @@ -147,7 +147,7 @@ agent:
compressedLogs: true
enabled: true
image: polyaxon/polyaxon-agent
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
# A flag to simplify configuring a replica agent on a different cluster
isReplica: false
Expand All @@ -164,7 +164,7 @@ operator:
skipCRD: false
useCRDV1Beta1: false
image: polyaxon/polyaxon-operator
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
maxConcurrentReconciles: 1
resources:
Expand All @@ -177,7 +177,7 @@ operator:

cleanHooks:
image: polyaxon/polyaxon-cli
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent

securityContext:
Expand Down
4 changes: 2 additions & 2 deletions charts/polyaxon/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
description: An enterprise-grade open-source platform for building, training, and monitoring large scale deep learning applications.
name: polyaxon
version: 1.7.0
appVersion: 1.7.0
version: 1.7.2
appVersion: 1.7.2
keywords:
- deep learning
- a.i.
Expand Down
24 changes: 12 additions & 12 deletions charts/polyaxon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ broker: rabbitmq
gateway:
enabled: true
image: polyaxon/polyaxon-gateway
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
replicas: 1
resources:
Expand All @@ -90,7 +90,7 @@ api:
enabled: true
useResolver: true
image: polyaxon/polyaxon-api
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
replicas: 1
resources:
Expand Down Expand Up @@ -118,7 +118,7 @@ api:
streams:
enabled: true
image: polyaxon/polyaxon-streams
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
replicas: 1
resources:
Expand All @@ -145,7 +145,7 @@ streams:

init:
image: polyaxon/polyaxon-init
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
resources:
limits:
Expand All @@ -157,7 +157,7 @@ init:

sidecar:
image: polyaxon/polyaxon-sidecar
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
sleepInterval: 10
syncInterval: 10
Expand All @@ -175,7 +175,7 @@ agent:
compressedLogs: true
enabled: false
image: polyaxon/polyaxon-agent
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
resources:
limits:
Expand All @@ -190,7 +190,7 @@ operator:
skipCRD: false
useCRDV1Beta1: false
image: polyaxon/polyaxon-operator
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
maxConcurrentReconciles: 1
resources:
Expand All @@ -204,7 +204,7 @@ operator:
scheduler:
enabled: false
image: polyaxon/polyaxon-scheduler
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
replicas: 1
concurrency: 2
Expand All @@ -225,7 +225,7 @@ scheduler:
compiler:
enabled: false
image:
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
replicas: 1
concurrency: 2
Expand All @@ -246,7 +246,7 @@ compiler:
worker:
enabled: false
image:
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
replicas: 1
concurrency: 2
Expand All @@ -267,7 +267,7 @@ worker:
beat:
enabled: false
image:
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent
replicas: 1
resources:
Expand Down Expand Up @@ -304,7 +304,7 @@ apiHooks: {}

cleanHooks:
image: polyaxon/polyaxon-cli
imageTag: 1.7.0
imageTag: 1.7.2
imagePullPolicy: IfNotPresent

tablesHook:
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
polyaxon==1.7.0
polyaxon==1.7.2
2 changes: 1 addition & 1 deletion config/setup/default.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
deploymentChart: platform
deploymentVersion: 1.7.0
deploymentVersion: 1.7.2
namespace: test
5 changes: 3 additions & 2 deletions core/polyaxon/client/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ def create_from_polyaxonfile(
nocache=nocache,
cache=cache,
verbose=False,
is_cli=False,
)
return self.create(
name=name, description=description, tags=tags, content=op_spec
Expand Down Expand Up @@ -475,6 +476,7 @@ def create_from_url(
nocache=nocache,
cache=cache,
verbose=False,
is_cli=False,
)
return self.create(
name=name, description=description, tags=tags, content=op_spec
Expand Down Expand Up @@ -535,6 +537,7 @@ def create_from_hub(
nocache=nocache,
cache=cache,
verbose=False,
is_cli=False,
)
return self.create(
name=name, description=description, tags=tags, content=op_spec
Expand Down Expand Up @@ -1958,8 +1961,6 @@ def handle_logs():
is_done = LifeCycle.is_done(last_status)
if not is_done:
checks = 0
if not last_time:
last_time = last_transition_time
else:
is_done = True
if last_time and not follow:
Expand Down
3 changes: 3 additions & 0 deletions core/polyaxon/config_reader/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def get_string(
is_local=is_local,
default=default,
options=options,
strong_type=True,
)

def get_dict(
Expand Down Expand Up @@ -406,6 +407,7 @@ def _get(
is_local,
default,
options,
**kwargs,
):
"""
Get key from the dictionary made out of the configs passed.
Expand All @@ -427,6 +429,7 @@ def _get(
is_optional=is_optional,
default=default,
options=options,
**kwargs,
)
self._add_key(key, is_secret=is_secret, is_local=is_local)
return parsed_value
Expand Down
4 changes: 1 addition & 3 deletions core/polyaxon/k8s/logging/async_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ async def query_k8s_operation_logs(
**params,
)

if logs:
last_time = logs[-1].timestamp
return logs, last_time
return logs, new_time


async def query_k8s_pod_logs(
Expand Down
26 changes: 23 additions & 3 deletions core/polyaxon/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,23 @@ def get_boolean(
)


def parse_string(v):
base_types = (int, float, Mapping, list, tuple, set)
if isinstance(v, base_types):
return json.dumps(v)
if v is None:
return v
return str(v)


def get_string(
key, value, is_list=False, is_optional=False, default=None, options=None
key,
value,
is_list=False,
is_optional=False,
default=None,
options=None,
strong_type=False,
):
"""
Get the value corresponding to the key and converts it to `str`/`list(str)`.
Expand All @@ -173,29 +188,34 @@ def get_string(
is_optional: To raise an error if key was not found.
default: default value if is_optional is True.
options: list/tuple if provided, the value must be one of these values.
strong_type: does not allow base types conversion.
Returns:
`str`: value corresponding to the key.
"""
base_types = (int, float, Mapping, list, tuple, set)

if is_list:
return _get_typed_list_value(
key=key,
value=value,
target_type=str,
type_convert=str,
type_convert=str if strong_type else parse_string,
is_optional=is_optional,
default=default,
options=options,
base_types=None if strong_type else base_types,
)

return _get_typed_value(
key=key,
value=value,
target_type=str,
type_convert=str,
type_convert=str if strong_type else parse_string,
is_optional=is_optional,
default=default,
options=options,
base_types=None if strong_type else base_types,
)


Expand Down
2 changes: 1 addition & 1 deletion core/polyaxon/pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

NAME = "polyaxon"
VERSION = "1.7.0"
VERSION = "1.7.2"
SCHEMA_VERSION = 1.1
DESC = "Command Line Interface (CLI) and client to interact with Polyaxon API."
URL = "https://github.com/polyaxon/polyaxon"
Expand Down
Loading

0 comments on commit d0bb4d2

Please sign in to comment.