Created
November 17, 2016 23:20
-
-
Save thenayr/6d1c004c0f5311951910dea5261d0cbe to your computer and use it in GitHub Desktop.
The k8s Node js label lookup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ("object.metadata.labels.type" in object) { | |
type = object.object.metadata.labels.type | |
} else { | |
type = "k8s" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment