support hostIP in downward API

This commit is contained in:
andrewsykim
2017-03-08 03:08:09 -05:00
parent b4c71b1f26
commit 91c027d6cc
7 changed files with 37 additions and 9 deletions

View File

@@ -190,6 +190,7 @@ func addConversionFuncs(scheme *runtime.Scheme) error {
"spec.restartPolicy",
"spec.serviceAccountName",
"status.phase",
"status.hostIP",
"status.podIP":
return label, value, nil
// This is for backwards compatibility with old v1 clients which send spec.host