diff options
author | Jason Luo <cl4531@att.com> | 2019-03-20 01:04:13 +0000 |
---|---|---|
committer | Jason Luo <cl4531@att.com> | 2019-03-22 13:52:00 +0000 |
commit | 4823b2acc5c61d5e5442364cd0540dd475949e73 (patch) | |
tree | 8467b18fda64283704d95da45242c4c1ab67a8f1 /k8s/k8splugin | |
parent | a3f62fa65e34b2dd1130ea8dd647a98e0575a330 (diff) |
add comment on 63 label length, fix _parse_volumes
change to v['container'].get('mode') to allow mode value be absent
Issue-ID: DCAEGEN2-1126
Change-Id: I12fe257995f466238f64b06e6cf80f3cc2654c5b
Signed-off-by: Jason Luo <cl4531@att.com>
Diffstat (limited to 'k8s/k8splugin')
-rw-r--r-- | k8s/k8splugin/tasks.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/k8s/k8splugin/tasks.py b/k8s/k8splugin/tasks.py index fdb00c5..b8669e2 100644 --- a/k8s/k8splugin/tasks.py +++ b/k8s/k8splugin/tasks.py @@ -338,6 +338,7 @@ def _parse_cloudify_context(**kwargs): kwargs["deployment_id"] = ctx.deployment.id # Set some labels for the Kubernetes pods + # The name segment is required and must be 63 characters or less kwargs["labels"] = { "cfydeployment" : ctx.deployment.id, "cfynode": ctx.node.name[:63], @@ -545,6 +546,7 @@ def create_and_start_container_for_platforms(**kwargs): service_component_name = ctx.node.properties["name"] # Set some labels for the Kubernetes pods + # The name segment is required and must be 63 characters or less kwargs["labels"] = { "cfydeployment" : ctx.deployment.id, "cfynode": ctx.node.name[:63], |