Documentation ¶
Index ¶
- Constants
- func AddAllDeploymentEdges(g osgraph.MutableUniqueGraph)
- func AddAllExposedPodEdges(g osgraph.MutableUniqueGraph)
- func AddAllExposedPodTemplateSpecEdges(g osgraph.MutableUniqueGraph)
- func AddAllManagedByControllerPodEdges(g osgraph.MutableUniqueGraph)
- func AddAllMountableSecretEdges(g osgraph.Graph)
- func AddAllMountedSecretEdges(g osgraph.Graph)
- func AddAllRequestedServiceAccountEdges(g osgraph.Graph)
- func AddAllTriggerDeploymentsEdges(g osgraph.MutableUniqueGraph)
- func AddAllTriggerStatefulSetsEdges(g osgraph.MutableUniqueGraph)
- func AddDeploymentEdges(g osgraph.MutableUniqueGraph, node *kubegraph.DeploymentNode) *kubegraph.DeploymentNode
- func AddExposedPodEdges(g osgraph.MutableUniqueGraph, node *kubegraph.ServiceNode)
- func AddExposedPodTemplateSpecEdges(g osgraph.MutableUniqueGraph, node *kubegraph.ServiceNode)
- func AddHPAScaleRefEdges(g osgraph.Graph, restMapper meta.RESTMapper)
- func AddManagedByControllerPodEdges(g osgraph.MutableUniqueGraph, to graph.Node, namespace string, ...)
- func AddMountableSecretEdges(g osgraph.Graph, saNode *kubegraph.ServiceAccountNode)
- func AddMountedSecretEdges(g osgraph.Graph, podSpec *kubegraph.PodSpecNode)
- func AddRequestedServiceAccountEdges(g osgraph.Graph, podSpecNode *kubegraph.PodSpecNode)
- func AddTriggerDeploymentsEdges(g osgraph.MutableUniqueGraph, node *kubegraph.DeploymentNode) *kubegraph.DeploymentNode
- func AddTriggerStatefulSetsEdges(g osgraph.MutableUniqueGraph, node *kubegraph.StatefulSetNode) *kubegraph.StatefulSetNode
- func BelongsToDeployment(config *kappsv1.Deployment, b *kappsv1.ReplicaSet) bool
- func RelevantDeployments(g osgraph.Graph, dNode *kubegraph.DeploymentNode) (*kubegraph.ReplicaSetNode, []*kubegraph.ReplicaSetNode)
- type RecentDeploymentReferences
Constants ¶
const ( // ExposedThroughServiceEdgeKind goes from a PodTemplateSpec or a Pod to Service. The head should make the service's selector. ExposedThroughServiceEdgeKind = "ExposedThroughService" // MountedSecretEdgeKind goes from PodSpec to Secret indicating that is or will be a request to mount a volume with the Secret. MountedSecretEdgeKind = "MountedSecret" // MountableSecretEdgeKind goes from ServiceAccount to Secret indicating that the SA allows the Secret to be mounted MountableSecretEdgeKind = "MountableSecret" // ReferencedServiceAccountEdgeKind goes from PodSpec to ServiceAccount indicating that Pod is or will be running as the SA. ReferencedServiceAccountEdgeKind = "ReferencedServiceAccount" // ScalingEdgeKind goes from HorizontalPodAutoscaler to scaled objects indicating that the HPA scales the object ScalingEdgeKind = "Scaling" // TriggersDeploymentEdgeKind points from DeploymentConfigs to ImageStreamTags that trigger the deployment TriggersDeploymentEdgeKind = "TriggersDeployment" // UsedInDeploymentEdgeKind points from DeploymentConfigs to DockerImageReferences that are used in the deployment UsedInDeploymentEdgeKind = "UsedInDeployment" // DeploymentEdgeKind points from Deployment to the ReplicaSet that are fulfilling the deployment DeploymentEdgeKind = "Deployment" )
Variables ¶
This section is empty.
Functions ¶
func AddAllDeploymentEdges ¶
func AddAllDeploymentEdges(g osgraph.MutableUniqueGraph)
func AddAllExposedPodEdges ¶
func AddAllExposedPodEdges(g osgraph.MutableUniqueGraph)
AddAllExposedPodEdges calls AddExposedPodEdges for every ServiceNode in the graph
func AddAllExposedPodTemplateSpecEdges ¶
func AddAllExposedPodTemplateSpecEdges(g osgraph.MutableUniqueGraph)
AddAllExposedPodTemplateSpecEdges calls AddExposedPodTemplateSpecEdges for every ServiceNode in the graph
func AddAllManagedByControllerPodEdges ¶
func AddAllManagedByControllerPodEdges(g osgraph.MutableUniqueGraph)
AddAllManagedByControllerPodEdges calls AddManagedByControllerPodEdges for every node in the graph TODO: should do this through an interface (selects pods)
func AddAllTriggerDeploymentsEdges ¶
func AddAllTriggerDeploymentsEdges(g osgraph.MutableUniqueGraph)
func AddAllTriggerStatefulSetsEdges ¶
func AddAllTriggerStatefulSetsEdges(g osgraph.MutableUniqueGraph)
func AddDeploymentEdges ¶
func AddDeploymentEdges(g osgraph.MutableUniqueGraph, node *kubegraph.DeploymentNode) *kubegraph.DeploymentNode
func AddExposedPodEdges ¶
func AddExposedPodEdges(g osgraph.MutableUniqueGraph, node *kubegraph.ServiceNode)
AddExposedPodEdges ensures that a directed edge exists between a service and all the pods in the graph that match the service selector
func AddExposedPodTemplateSpecEdges ¶
func AddExposedPodTemplateSpecEdges(g osgraph.MutableUniqueGraph, node *kubegraph.ServiceNode)
AddExposedPodTemplateSpecEdges ensures that a directed edge exists between a service and all the PodTemplateSpecs in the graph that match the service selector
func AddHPAScaleRefEdges ¶
func AddHPAScaleRefEdges(g osgraph.Graph, restMapper meta.RESTMapper)
func AddManagedByControllerPodEdges ¶
func AddManagedByControllerPodEdges(g osgraph.MutableUniqueGraph, to graph.Node, namespace string, selector map[string]string)
AddManagedByControllerPodEdges ensures that a directed edge exists between a controller and all the pods in the graph that match the label selector
func AddMountableSecretEdges ¶
func AddMountableSecretEdges(g osgraph.Graph, saNode *kubegraph.ServiceAccountNode)
func AddMountedSecretEdges ¶
func AddMountedSecretEdges(g osgraph.Graph, podSpec *kubegraph.PodSpecNode)
func AddRequestedServiceAccountEdges ¶
func AddRequestedServiceAccountEdges(g osgraph.Graph, podSpecNode *kubegraph.PodSpecNode)
func AddTriggerDeploymentsEdges ¶
func AddTriggerDeploymentsEdges(g osgraph.MutableUniqueGraph, node *kubegraph.DeploymentNode) *kubegraph.DeploymentNode
func AddTriggerStatefulSetsEdges ¶
func AddTriggerStatefulSetsEdges(g osgraph.MutableUniqueGraph, node *kubegraph.StatefulSetNode) *kubegraph.StatefulSetNode
func BelongsToDeployment ¶
func BelongsToDeployment(config *kappsv1.Deployment, b *kappsv1.ReplicaSet) bool
func RelevantDeployments ¶
func RelevantDeployments(g osgraph.Graph, dNode *kubegraph.DeploymentNode) (*kubegraph.ReplicaSetNode, []*kubegraph.ReplicaSetNode)
RelevantDeployments returns the active deployment and a list of inactive deployments (in order from newest to oldest)
Types ¶
type RecentDeploymentReferences ¶
type RecentDeploymentReferences []*kubegraph.ReplicaSetNode
func (RecentDeploymentReferences) Len ¶
func (m RecentDeploymentReferences) Len() int
func (RecentDeploymentReferences) Less ¶
func (m RecentDeploymentReferences) Less(i, j int) bool
func (RecentDeploymentReferences) Swap ¶
func (m RecentDeploymentReferences) Swap(i, j int)