mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Adjust kube-env.py to use third_party PyYAML
This commit is contained in:
parent
43b1668dae
commit
965f684e2f
3
.gitignore
vendored
3
.gitignore
vendored
@ -44,3 +44,6 @@ network_closure.sh
|
||||
/third_party/etcd*
|
||||
|
||||
.tags*
|
||||
|
||||
# Any compiled python
|
||||
*.pyc
|
||||
|
@ -16,6 +16,10 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
filedir = os.path.dirname(os.path.abspath(__file__))
|
||||
sys.path.insert(
|
||||
0, os.path.normpath(os.path.join(filedir, "../../third_party/PyYAML/lib")))
|
||||
import yaml
|
||||
|
||||
def mutate_env(path, var, value):
|
||||
|
Loading…
Reference in New Issue
Block a user