**IMPORTANT:** some command line parameters specified for the scheduler process are passed to the Kubelet-executor and so are subject to compatibility tests:
**IMPORTANT:** some command line parameters specified for the scheduler process are passed to the Kubelet-executor and so are subject to compatibility tests:
...
@@ -54,11 +54,11 @@ The command line parameters that affect the hash calculation are listed below.
...
@@ -54,11 +54,11 @@ The command line parameters that affect the hash calculation are listed below.
@@ -134,7 +134,7 @@ Update your PATH to more easily run the Kubernetes-Mesos binaries:
...
@@ -134,7 +134,7 @@ Update your PATH to more easily run the Kubernetes-Mesos binaries:
export PATH="$(pwd)/_output/local/go/bin:$PATH"
export PATH="$(pwd)/_output/local/go/bin:$PATH"
```
```
Identify your Mesos master: depending on your Mesos installation this is either a `host:port` like `mesos_master:5050` or a ZooKeeper URL like `zk://zookeeper:2181/mesos`.
Identify your Mesos master: depending on your Mesos installation this is either a `host:port` like `mesos-master:5050` or a ZooKeeper URL like `zk://zookeeper:2181/mesos`.
In order to let Kubernetes survive Mesos master changes, the ZooKeeper URL is recommended for production environments.
In order to let Kubernetes survive Mesos master changes, the ZooKeeper URL is recommended for production environments.
print("Found a flag declared with an _ but which is not explicitly listed as a valid flag name in hack/verify-flags/excluded-flags.txt")
print("Found a flag declared with an _ but which is not explicitly listed as a valid flag name in hack/verify-flags/excluded-flags.txt")
print("Are you certain this flag should not have been declared with an - instead?")
print("Are you certain this flag should not have been declared with an - instead?")
new_excluded_flags.sort()
print("%s"%"\n".join(new_excluded_flags))
print("%s"%"\n".join(new_excluded_flags))
sys.exit(1)
sys.exit(1)
iflen(new_flags)!=0:
iflen(new_flags)!=0:
print("Found flags in golang files not in the list of known flags. Please add these to hack/verify-flags/known-flags.txt")
print("Found flags in golang files not in the list of known flags. Please add these to hack/verify-flags/known-flags.txt")
new_flags.sort()
print("%s"%"\n".join(new_flags))
print("%s"%"\n".join(new_flags))
sys.exit(1)
sys.exit(1)
returnlist(flags)
returnlist(flags)
...
@@ -164,7 +181,7 @@ def flags_to_re(flags):
...
@@ -164,7 +181,7 @@ def flags_to_re(flags):
# turn all flag names into regexs which will find both types
# turn all flag names into regexs which will find both types
newre=dashRE.sub('[-_]',flag)
newre=dashRE.sub('[-_]',flag)
# only match if there is not a leading or trailing alphanumeric character
# only match if there is not a leading or trailing alphanumeric character
flagREs.append("[^\w]"+newre+"[^\w]")
flagREs.append("[^\w${]"+newre+"[^\w]")
# turn that list of regex strings into a single large RE
# turn that list of regex strings into a single large RE
flagRE="|".join(flagREs)
flagRE="|".join(flagREs)
flagRE=re.compile(flagRE)
flagRE=re.compile(flagRE)
...
@@ -214,7 +231,8 @@ def main():
...
@@ -214,7 +231,8 @@ def main():
iflen(bad_lines)!=0:
iflen(bad_lines)!=0:
ifnotargs.skip_exceptions:
ifnotargs.skip_exceptions:
print("Found illegal 'flag' usage. If this is a false positive add the following line(s) to hack/verify-flags/exceptions.txt:")
print("Found illegal 'flag' usage. If these are false positives you should running `hack/verify-flags-underscore.py -e > hack/verify-flags/exceptions.txt` to update the list.")