From 80339ef3f74fa256869b49f8ea0789fc3b86b51f Mon Sep 17 00:00:00 2001 From: "Johannes M. Scheuermann" Date: Mon, 8 Apr 2019 07:52:01 +0200 Subject: [PATCH] Add more documentation to new namespace parameter --- kubernetes/utils/create_from_yaml.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kubernetes/utils/create_from_yaml.py b/kubernetes/utils/create_from_yaml.py index c14850d80..5c116beb5 100644 --- a/kubernetes/utils/create_from_yaml.py +++ b/kubernetes/utils/create_from_yaml.py @@ -36,7 +36,10 @@ def create_from_yaml( verbose: If True, print confirmation from the create action. Default is False. namespace: string. Contains the namespace to create all - resources inside + resources inside. The namespace must preexist otherwise + the resource creation will fail. If the API object in + the yaml file already contains a namespace definition + this parameter has no effect. Returns: An k8s api object or list of apis objects created from YAML.