MCPcopy Create free account

hub / github.com/derailed/popeye / functions

Functions1,079 in github.com/derailed/popeye

↓ 2 callersFunctionInit
Init initializes db tables.
internal/db/schema/k8s.go:13
↓ 2 callersMethodInject
(ss ShortNames)
internal/alias.go:72
↓ 2 callersFunctionIsNamespaced
IsNamespaced returns true if a specific ns is given.
internal/client/helpers.go:43
↓ 2 callersMethodIsNamespaced
(gvr types.GVR)
internal/alias.go:82
↓ 2 callersMethodIsRX
()
internal/rules/expression.go:18
↓ 2 callersMethodIsValid
IsValid checks if tally is valid.
internal/report/tally.go:50
↓ 2 callersFunctionLevelToStr
LevelToStr returns a severity level as a string.
internal/issues/issue.go:62
↓ 2 callersMethodLint
Lint sanitizes the resource.
internal/lint/cr.go:57
↓ 2 callersMethodLint
Lint cleanse the resource.
internal/lint/np.go:50
↓ 2 callersMethodLint
Lint cleanse the resource.
internal/lint/svc.go:34
↓ 2 callersFunctionListAvailableMetrics
ListAvailableMetrics return the total cluster available cpu/mem.
internal/cache/no_mx.go:28
↓ 2 callersMethodListNMX
()
internal/db/db.go:122
↓ 2 callersMethodListNodes
()
internal/db/db.go:66
↓ 2 callersMethodListVersion
ListVersion returns cluster server version.
internal/cache/cluster.go:26
↓ 2 callersMethodMEMResourceLimits
MEMResourceLimits returns the MEM utilization threshold.
internal/lint/types.go:59
↓ 2 callersMethodMXDial
MXDial connects to metrics server.
types/types.go:105
↓ 2 callersFunctionMakeQty
(s string)
internal/test/helpers.go:88
↓ 2 callersFunctionMakeRes
(c, m string)
internal/test/helpers.go:81
↓ 2 callersMethodMatch
(spec rules.Spec)
pkg/config/popeye.go:75
↓ 2 callersFunctionMatchLabels
MatchLabels check if pod labels match a selector.
internal/cache/helper.go:40
↓ 2 callersMethodMatchRX
(s string)
internal/rules/expression.go:22
↓ 2 callersMethodMaxGroupSeverity
MaxGroupSeverity scans the issues and reports the highest severity.
internal/issues/issues.go:165
↓ 2 callersMethodMaxSeverity
MaxSeverity return the highest severity level for the given section.
internal/issues/collector.go:58
↓ 2 callersFunctionMetaFQN
MetaFQN returns a fully qualified resource identifier based on object meta.
internal/cache/helper.go:21
↓ 2 callersFunctionNewCiliumClusterwideNetworkPolicy
NewCiliumClusterwideNetworkPolicy returns a new instance.
internal/cilium/lint/ccnp.go:28
↓ 2 callersFunctionNewCiliumEndpoint
NewCiliumEndpoint returns a new instance.
internal/cilium/lint/cep.go:30
↓ 2 callersFunctionNewCiliumIdentity
NewCiliumIdentity returns a new instance.
internal/cilium/lint/cid.go:29
↓ 2 callersFunctionNewCiliumNetworkPolicy
NewCiliumNetworkPolicy returns a new instance.
internal/cilium/lint/cnp.go:29
↓ 2 callersFunctionNewCluster
NewCluster returns a new Cluster cache.
internal/cache/cluster.go:21
↓ 2 callersFunctionNewCluster
NewCluster returns a new instance.
internal/lint/cluster.go:34
↓ 2 callersFunctionNewClusterRole
NewClusterRole returns a new ClusterRole cache.
internal/cache/cr.go:20
↓ 2 callersFunctionNewClusterRoleBinding
NewClusterRoleBinding returns a new instance.
internal/lint/crb.go:27
↓ 2 callersFunctionNewConfigMap
NewConfigMap returns a new instance.
internal/lint/cm.go:26
↓ 2 callersFunctionNewCronJob
NewCronJob returns a new instance.
internal/lint/cronjob.go:27
↓ 2 callersFunctionNewDB
(db *memdb.MemDB)
internal/db/db.go:26
↓ 2 callersFunctionNewDaemonSet
NewDaemonSet returns a new instance.
internal/lint/ds.go:25
↓ 2 callersFunctionNewDeployment
NewDeployment returns a new instance.
internal/lint/dp.go:26
↓ 2 callersFunctionNewGateway
NewGateway returns a new instance.
internal/lint/gw.go:28
↓ 2 callersFunctionNewGatewayClass
NewGatewayClass returns a new instance.
internal/lint/gwc.go:27
↓ 2 callersFunctionNewHTTPRoute
NewHTTPRoute returns a new instance.
internal/lint/gwr.go:29
↓ 2 callersFunctionNewHorizontalPodAutoscaler
NewHorizontalPodAutoscaler returns a new instance.
internal/lint/hpa.go:29
↓ 2 callersFunctionNewIngress
NewIngress returns a new Ingress cache.
internal/cache/ing.go:24
↓ 2 callersFunctionNewIngress
NewIngress returns a new instance.
internal/lint/ing.go:30
↓ 2 callersFunctionNewJob
NewJob returns a new instance.
internal/lint/job.go:26
↓ 2 callersFunctionNewNamespace
NewNamespace returns a new instance.
internal/lint/ns.go:27
↓ 2 callersFunctionNewNode
NewNode returns a new instance.
internal/lint/node.go:29
↓ 2 callersFunctionNewPersistentVolume
NewPersistentVolume returns a new instance.
internal/lint/pv.go:25
↓ 2 callersFunctionNewPersistentVolumeClaim
NewPersistentVolumeClaim returns a new instance.
internal/lint/pvc.go:26
↓ 2 callersFunctionNewPodDisruptionBudget
NewPodDisruptionBudget returns a new PodDisruptionBudget linter.
internal/lint/pdb.go:24
↓ 2 callersFunctionNewPopeye
NewPopeye create a new Popeye configuration.
pkg/config/popeye.go:55
↓ 2 callersFunctionNewReplicaSet
NewReplicaSet returns a new instance.
internal/lint/rs.go:24
↓ 2 callersFunctionNewRole
NewRole returns a new instance.
internal/lint/ro.go:28
↓ 2 callersFunctionNewRoleBinding
NewRoleBinding returns a new instance.
internal/lint/rb.go:27
↓ 2 callersFunctionNewSecret
NewSecret returns a new instance.
internal/lint/sec.go:27
↓ 2 callersFunctionNewServiceAccount
NewServiceAccount returns a new instance.
internal/lint/sa.go:28
↓ 2 callersFunctionNewStatefulSet
NewStatefulSet returns a new instance.
internal/lint/sts.go:35
↓ 2 callersFunctionNewf
Newf returns a new lint issue using a formatter.
internal/issues/issue.go:33
↓ 2 callersMethodNoConcerns
NoConcerns returns true if scan is successful.
internal/issues/collector.go:53
↓ 2 callersMethodOutcome
Outcome returns scan outcome.
internal/issues/collector.go:32
↓ 2 callersMethodPrintHeader
PrintHeader prints report header to screen.
internal/report/builder.go:190
↓ 2 callersMethodPrintReport
PrintReport prints out scan report to screen
internal/report/builder.go:209
↓ 2 callersMethodPrintSummary
PrintSummary print outs summary report to screen.
internal/report/builder.go:155
↓ 2 callersMethodRESTConfig
RESTConfig fetch the current REST api service connection.
internal/client/config.go:301
↓ 2 callersMethodRefine
Refine overrides code severity based on user input.
internal/issues/codes.go:32
↓ 2 callersMethodReqAbsCPURatio
ReqAbsCPURatio returns absolute cpu ratio.
internal/lint/metrics_helpers.go:21
↓ 2 callersMethodReqAbsMEMRatio
c =100m r=300m 100/300 1/3 -> over allocated if ratio < 1 c= 300m r=100m 300/100 3 -> under allocated if ratio > 1 ReqAbsMEMRatio returns absolute m
internal/lint/metrics_helpers.go:37
↓ 2 callersMethodReqCPURatio
ReqCPURatio returns current cpu usage over requested percentage.
internal/lint/metrics_helpers.go:29
↓ 2 callersMethodReqMEMRatio
ReqMEMRatio returns current memory usage over requested percentage.
internal/lint/metrics_helpers.go:45
↓ 2 callersMethodRestartsLimit
RestartsLimit returns pod restarts limit.
pkg/config/config.go:116
↓ 2 callersMethodStart
Start initializes the informers until caller cancels the context.
internal/client/factory.go:41
↓ 2 callersMethodString
()
internal/rules/exclude.go:65
↓ 2 callersMethodToHTML
ToHTML dumps scan to HTML.
internal/report/builder.go:112
↓ 2 callersMethodToHumanLevel
()
internal/rules/level.go:40
↓ 2 callersFunctionToIssueLevel
ToIssueLevel convert a string to a issue level.
internal/rules/level.go:21
↓ 2 callersMethodToJSON
ToJSON dumps scan to JSON.
internal/report/builder.go:101
↓ 2 callersMethodToJunit
ToJunit dumps scan to JUnit.
internal/report/builder.go:73
↓ 2 callersMethodToYAML
ToYAML dumps scan to YAML.
internal/report/builder.go:90
↓ 2 callersMethodUpload
(ctx context.Context, asset string, contentType string, rwc io.ReadWriteCloser)
pkg/config/s3.go:51
↓ 2 callersFunctionareSet
(s *[]string)
internal/client/config.go:345
↓ 2 callersMethodbetter
()
internal/report/delta_score.go:43
↓ 2 callersFunctionblankEgress
(rr []netv1.NetworkPolicyEgressRule)
internal/lint/np_helpers.go:44
↓ 2 callersFunctionblankIngress
(rr []netv1.NetworkPolicyIngressRule)
internal/lint/np_helpers.go:48
↓ 2 callersFunctionboundDefaultSA
(db *db.DB)
internal/lint/rb.go:64
↓ 2 callersFunctioncheckCOSecurityContext
(co v1.Container)
internal/lint/pod.go:368
↓ 2 callersMethodcheckEgresses
(ctx context.Context, pod *v1.Pod, rr []netv1.NetworkPolicyEgressRule)
internal/lint/pod.go:213
↓ 2 callersMethodcheckEndpoints
CheckEndpoints runs a sanity check on this service endpoints.
internal/lint/svc.go:102
↓ 2 callersFunctioncheckEvents
Helpers...
internal/lint/cronjob.go:103
↓ 2 callersMethodcheckIPBlocks
(ctx context.Context, fqn string, b *netv1.IPBlock, d direction)
internal/lint/np.go:152
↓ 2 callersMethodcheckIngresses
(ctx context.Context, pod *v1.Pod, rr []netv1.NetworkPolicyIngressRule)
internal/lint/pod.go:189
↓ 2 callersMethodcheckNamedPorts
(ctx context.Context, co v1.Container)
internal/lint/container.go:125
↓ 2 callersMethodcheckNamedProbe
(ctx context.Context, p *v1.Probe, liveness bool)
internal/lint/container.go:101
↓ 2 callersMethodcheckPodSelector
(ctx context.Context, nss []*v1.Namespace, sel *metav1.LabelSelector, d direction)
internal/lint/np.go:194
↓ 2 callersMethodcheckProbes
(ctx context.Context, co v1.Container)
internal/lint/container.go:84
↓ 2 callersMethodcheckReason
(ctx context.Context, code rules.ID, reason string)
internal/lint/container_status.go:78
↓ 2 callersMethodcheckResources
(ctx context.Context, co v1.Container)
internal/lint/container.go:114
↓ 2 callersMethodcheckSecure
(ctx context.Context, fqn string, spec v1.PodSpec, boundSA bool)
internal/lint/pod.go:300
↓ 2 callersMethodcheckSelectors
(ctx context.Context, fqn string, nsSel, podSel *metav1.LabelSelector, d direction)
internal/lint/np.go:132
↓ 2 callersMethodcheckSvcRef
(ctx context.Context, ns string, ref *gwv1.ParentReference)
internal/lint/gwr.go:127
↓ 2 callersFunctioncomputePodResources
(spec v1.PodSpec)
internal/lint/dp.go:104
↓ 2 callersMethodcontainerRefs
(pfqn string, co v1.Container, refs *sync.Map)
internal/cache/pod.go:50
← previousnext →201–300 of 1,079, ranked by callers