Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/derailed/popeye
/ functions
Functions
1,079 in github.com/derailed/popeye
⨍
Functions
1,079
◇
Types & classes
204
↓ 2 callers
Function
Init
Init initializes db tables.
internal/db/schema/k8s.go:13
↓ 2 callers
Method
Inject
(ss ShortNames)
internal/alias.go:72
↓ 2 callers
Function
IsNamespaced
IsNamespaced returns true if a specific ns is given.
internal/client/helpers.go:43
↓ 2 callers
Method
IsNamespaced
(gvr types.GVR)
internal/alias.go:82
↓ 2 callers
Method
IsRX
()
internal/rules/expression.go:18
↓ 2 callers
Method
IsValid
IsValid checks if tally is valid.
internal/report/tally.go:50
↓ 2 callers
Function
LevelToStr
LevelToStr returns a severity level as a string.
internal/issues/issue.go:62
↓ 2 callers
Method
Lint
Lint sanitizes the resource.
internal/lint/cr.go:57
↓ 2 callers
Method
Lint
Lint cleanse the resource.
internal/lint/np.go:50
↓ 2 callers
Method
Lint
Lint cleanse the resource.
internal/lint/svc.go:34
↓ 2 callers
Function
ListAvailableMetrics
ListAvailableMetrics return the total cluster available cpu/mem.
internal/cache/no_mx.go:28
↓ 2 callers
Method
ListNMX
()
internal/db/db.go:122
↓ 2 callers
Method
ListNodes
()
internal/db/db.go:66
↓ 2 callers
Method
ListVersion
ListVersion returns cluster server version.
internal/cache/cluster.go:26
↓ 2 callers
Method
MEMResourceLimits
MEMResourceLimits returns the MEM utilization threshold.
internal/lint/types.go:59
↓ 2 callers
Method
MXDial
MXDial connects to metrics server.
types/types.go:105
↓ 2 callers
Function
MakeQty
(s string)
internal/test/helpers.go:88
↓ 2 callers
Function
MakeRes
(c, m string)
internal/test/helpers.go:81
↓ 2 callers
Method
Match
(spec rules.Spec)
pkg/config/popeye.go:75
↓ 2 callers
Function
MatchLabels
MatchLabels check if pod labels match a selector.
internal/cache/helper.go:40
↓ 2 callers
Method
MatchRX
(s string)
internal/rules/expression.go:22
↓ 2 callers
Method
MaxGroupSeverity
MaxGroupSeverity scans the issues and reports the highest severity.
internal/issues/issues.go:165
↓ 2 callers
Method
MaxSeverity
MaxSeverity return the highest severity level for the given section.
internal/issues/collector.go:58
↓ 2 callers
Function
MetaFQN
MetaFQN returns a fully qualified resource identifier based on object meta.
internal/cache/helper.go:21
↓ 2 callers
Function
NewCiliumClusterwideNetworkPolicy
NewCiliumClusterwideNetworkPolicy returns a new instance.
internal/cilium/lint/ccnp.go:28
↓ 2 callers
Function
NewCiliumEndpoint
NewCiliumEndpoint returns a new instance.
internal/cilium/lint/cep.go:30
↓ 2 callers
Function
NewCiliumIdentity
NewCiliumIdentity returns a new instance.
internal/cilium/lint/cid.go:29
↓ 2 callers
Function
NewCiliumNetworkPolicy
NewCiliumNetworkPolicy returns a new instance.
internal/cilium/lint/cnp.go:29
↓ 2 callers
Function
NewCluster
NewCluster returns a new Cluster cache.
internal/cache/cluster.go:21
↓ 2 callers
Function
NewCluster
NewCluster returns a new instance.
internal/lint/cluster.go:34
↓ 2 callers
Function
NewClusterRole
NewClusterRole returns a new ClusterRole cache.
internal/cache/cr.go:20
↓ 2 callers
Function
NewClusterRoleBinding
NewClusterRoleBinding returns a new instance.
internal/lint/crb.go:27
↓ 2 callers
Function
NewConfigMap
NewConfigMap returns a new instance.
internal/lint/cm.go:26
↓ 2 callers
Function
NewCronJob
NewCronJob returns a new instance.
internal/lint/cronjob.go:27
↓ 2 callers
Function
NewDB
(db *memdb.MemDB)
internal/db/db.go:26
↓ 2 callers
Function
NewDaemonSet
NewDaemonSet returns a new instance.
internal/lint/ds.go:25
↓ 2 callers
Function
NewDeployment
NewDeployment returns a new instance.
internal/lint/dp.go:26
↓ 2 callers
Function
NewGateway
NewGateway returns a new instance.
internal/lint/gw.go:28
↓ 2 callers
Function
NewGatewayClass
NewGatewayClass returns a new instance.
internal/lint/gwc.go:27
↓ 2 callers
Function
NewHTTPRoute
NewHTTPRoute returns a new instance.
internal/lint/gwr.go:29
↓ 2 callers
Function
NewHorizontalPodAutoscaler
NewHorizontalPodAutoscaler returns a new instance.
internal/lint/hpa.go:29
↓ 2 callers
Function
NewIngress
NewIngress returns a new Ingress cache.
internal/cache/ing.go:24
↓ 2 callers
Function
NewIngress
NewIngress returns a new instance.
internal/lint/ing.go:30
↓ 2 callers
Function
NewJob
NewJob returns a new instance.
internal/lint/job.go:26
↓ 2 callers
Function
NewNamespace
NewNamespace returns a new instance.
internal/lint/ns.go:27
↓ 2 callers
Function
NewNode
NewNode returns a new instance.
internal/lint/node.go:29
↓ 2 callers
Function
NewPersistentVolume
NewPersistentVolume returns a new instance.
internal/lint/pv.go:25
↓ 2 callers
Function
NewPersistentVolumeClaim
NewPersistentVolumeClaim returns a new instance.
internal/lint/pvc.go:26
↓ 2 callers
Function
NewPodDisruptionBudget
NewPodDisruptionBudget returns a new PodDisruptionBudget linter.
internal/lint/pdb.go:24
↓ 2 callers
Function
NewPopeye
NewPopeye create a new Popeye configuration.
pkg/config/popeye.go:55
↓ 2 callers
Function
NewReplicaSet
NewReplicaSet returns a new instance.
internal/lint/rs.go:24
↓ 2 callers
Function
NewRole
NewRole returns a new instance.
internal/lint/ro.go:28
↓ 2 callers
Function
NewRoleBinding
NewRoleBinding returns a new instance.
internal/lint/rb.go:27
↓ 2 callers
Function
NewSecret
NewSecret returns a new instance.
internal/lint/sec.go:27
↓ 2 callers
Function
NewServiceAccount
NewServiceAccount returns a new instance.
internal/lint/sa.go:28
↓ 2 callers
Function
NewStatefulSet
NewStatefulSet returns a new instance.
internal/lint/sts.go:35
↓ 2 callers
Function
Newf
Newf returns a new lint issue using a formatter.
internal/issues/issue.go:33
↓ 2 callers
Method
NoConcerns
NoConcerns returns true if scan is successful.
internal/issues/collector.go:53
↓ 2 callers
Method
Outcome
Outcome returns scan outcome.
internal/issues/collector.go:32
↓ 2 callers
Method
PrintHeader
PrintHeader prints report header to screen.
internal/report/builder.go:190
↓ 2 callers
Method
PrintReport
PrintReport prints out scan report to screen
internal/report/builder.go:209
↓ 2 callers
Method
PrintSummary
PrintSummary print outs summary report to screen.
internal/report/builder.go:155
↓ 2 callers
Method
RESTConfig
RESTConfig fetch the current REST api service connection.
internal/client/config.go:301
↓ 2 callers
Method
Refine
Refine overrides code severity based on user input.
internal/issues/codes.go:32
↓ 2 callers
Method
ReqAbsCPURatio
ReqAbsCPURatio returns absolute cpu ratio.
internal/lint/metrics_helpers.go:21
↓ 2 callers
Method
ReqAbsMEMRatio
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 callers
Method
ReqCPURatio
ReqCPURatio returns current cpu usage over requested percentage.
internal/lint/metrics_helpers.go:29
↓ 2 callers
Method
ReqMEMRatio
ReqMEMRatio returns current memory usage over requested percentage.
internal/lint/metrics_helpers.go:45
↓ 2 callers
Method
RestartsLimit
RestartsLimit returns pod restarts limit.
pkg/config/config.go:116
↓ 2 callers
Method
Start
Start initializes the informers until caller cancels the context.
internal/client/factory.go:41
↓ 2 callers
Method
String
()
internal/rules/exclude.go:65
↓ 2 callers
Method
ToHTML
ToHTML dumps scan to HTML.
internal/report/builder.go:112
↓ 2 callers
Method
ToHumanLevel
()
internal/rules/level.go:40
↓ 2 callers
Function
ToIssueLevel
ToIssueLevel convert a string to a issue level.
internal/rules/level.go:21
↓ 2 callers
Method
ToJSON
ToJSON dumps scan to JSON.
internal/report/builder.go:101
↓ 2 callers
Method
ToJunit
ToJunit dumps scan to JUnit.
internal/report/builder.go:73
↓ 2 callers
Method
ToYAML
ToYAML dumps scan to YAML.
internal/report/builder.go:90
↓ 2 callers
Method
Upload
(ctx context.Context, asset string, contentType string, rwc io.ReadWriteCloser)
pkg/config/s3.go:51
↓ 2 callers
Function
areSet
(s *[]string)
internal/client/config.go:345
↓ 2 callers
Method
better
()
internal/report/delta_score.go:43
↓ 2 callers
Function
blankEgress
(rr []netv1.NetworkPolicyEgressRule)
internal/lint/np_helpers.go:44
↓ 2 callers
Function
blankIngress
(rr []netv1.NetworkPolicyIngressRule)
internal/lint/np_helpers.go:48
↓ 2 callers
Function
boundDefaultSA
(db *db.DB)
internal/lint/rb.go:64
↓ 2 callers
Function
checkCOSecurityContext
(co v1.Container)
internal/lint/pod.go:368
↓ 2 callers
Method
checkEgresses
(ctx context.Context, pod *v1.Pod, rr []netv1.NetworkPolicyEgressRule)
internal/lint/pod.go:213
↓ 2 callers
Method
checkEndpoints
CheckEndpoints runs a sanity check on this service endpoints.
internal/lint/svc.go:102
↓ 2 callers
Function
checkEvents
Helpers...
internal/lint/cronjob.go:103
↓ 2 callers
Method
checkIPBlocks
(ctx context.Context, fqn string, b *netv1.IPBlock, d direction)
internal/lint/np.go:152
↓ 2 callers
Method
checkIngresses
(ctx context.Context, pod *v1.Pod, rr []netv1.NetworkPolicyIngressRule)
internal/lint/pod.go:189
↓ 2 callers
Method
checkNamedPorts
(ctx context.Context, co v1.Container)
internal/lint/container.go:125
↓ 2 callers
Method
checkNamedProbe
(ctx context.Context, p *v1.Probe, liveness bool)
internal/lint/container.go:101
↓ 2 callers
Method
checkPodSelector
(ctx context.Context, nss []*v1.Namespace, sel *metav1.LabelSelector, d direction)
internal/lint/np.go:194
↓ 2 callers
Method
checkProbes
(ctx context.Context, co v1.Container)
internal/lint/container.go:84
↓ 2 callers
Method
checkReason
(ctx context.Context, code rules.ID, reason string)
internal/lint/container_status.go:78
↓ 2 callers
Method
checkResources
(ctx context.Context, co v1.Container)
internal/lint/container.go:114
↓ 2 callers
Method
checkSecure
(ctx context.Context, fqn string, spec v1.PodSpec, boundSA bool)
internal/lint/pod.go:300
↓ 2 callers
Method
checkSelectors
(ctx context.Context, fqn string, nsSel, podSel *metav1.LabelSelector, d direction)
internal/lint/np.go:132
↓ 2 callers
Method
checkSvcRef
(ctx context.Context, ns string, ref *gwv1.ParentReference)
internal/lint/gwr.go:127
↓ 2 callers
Function
computePodResources
(spec v1.PodSpec)
internal/lint/dp.go:104
↓ 2 callers
Method
containerRefs
(pfqn string, co v1.Container, refs *sync.Map)
internal/cache/pod.go:50
← previous
next →
201–300 of 1,079, ranked by callers