Documentation ¶
Index ¶
- Constants
- func CheckForUnmountableSecrets(g osgraph.Graph, podSpecNode *kubegraph.PodSpecNode) []*kubegraph.SecretNode
- func CheckMissingMountedSecrets(g osgraph.Graph, podSpecNode *kubegraph.PodSpecNode) []*kubegraph.SecretNode
- func FindDuelingReplicationControllers(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
- func FindMissingSecrets(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
- func FindRestartingPods(g osgraph.Graph, f osgraph.Namer, ...) []osgraph.Marker
- func FindUnmountableSecrets(g osgraph.Graph, f osgraph.Namer) []osgraph.Marker
Constants ¶
const ( CrashLoopingPodError = "CrashLoopingPod" RestartingPodWarning = "RestartingPod" RestartThreshold = 5 // TODO: if you change this, you must change the messages below. RestartRecentDuration = 10 * time.Minute )
const ( UnmountableSecretWarning = "UnmountableSecret" MissingSecretWarning = "MissingSecret" )
const (
DuelingReplicationControllerWarning = "DuelingReplicationControllers"
)
Variables ¶
This section is empty.
Functions ¶
func CheckForUnmountableSecrets ¶ added in v1.0.4
func CheckForUnmountableSecrets(g osgraph.Graph, podSpecNode *kubegraph.PodSpecNode) []*kubegraph.SecretNode
CheckForUnmountableSecrets checks to be sure that all the referenced secrets are mountable (by service account)
func CheckMissingMountedSecrets ¶ added in v1.0.4
func CheckMissingMountedSecrets(g osgraph.Graph, podSpecNode *kubegraph.PodSpecNode) []*kubegraph.SecretNode
CheckMissingMountedSecrets checks to be sure that all the referenced secrets are present (not synthetic)
func FindDuelingReplicationControllers ¶ added in v1.0.4
func FindMissingSecrets ¶ added in v1.0.4
FindMissingSecrets inspects all PodSpecs for any Secret reference that is a synthetic node (not a pre-existing node in the graph)
func FindRestartingPods ¶ added in v1.1.1
func FindRestartingPods(g osgraph.Graph, f osgraph.Namer, logsCommandName, securityPolicyCommandPattern string) []osgraph.Marker
FindRestartingPods inspects all Pods to see if they've restarted more than the threshold. logsCommandName is the name of the command that should be invoked to see pod logs. securityPolicyCommandPattern is a format string accepting two replacement variables for fmt.Sprintf - 1, the namespace of the current pod, 2 the service account of the pod.
Types ¶
This section is empty.