lib/IO/K8s/Traefik.pm

filter: Statementstmt 70.0% 7 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 3 totaltotal 52.9% 9 / 17 CC 1 SCAR 4.1
CC
1
Cov
70%
upstream_version
2.0
crd_sources
2.0
BEGIN
1.0
CRAP 1.5
« lib/IO/K8s/GatewayAPI.pm ↑ Summary lib/IO/K8s/GatewayAPI/V1beta1/HTTPRoute.pm »
1 package IO::K8s::Traefik;
2 # ABSTRACT: Traefik CRD resource map provider for IO::K8s
3 3 our $VERSION = '1.112';
4 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 with 'IO::K8s::Role::ResourceMap';
6  
7 0 ▶sub upstream_version { 'v3.7.12' } # traefik/traefik (CRD set stable across all v3.x)
Subroutine upstream_version: not called CC=1 SCAR=6.9
Pod undocumented
8  
9 # Upstream CRD manifests for the pinned upstream_version, consumed by
10 # maint/crd-drift-check.pl. Data only -- no fetching here. The per-Kind
11 # reference CRDs (one CustomResourceDefinition per file) live under
12 # docs/content/reference/dynamic-configuration; `base` + each `files`
13 # entry is the raw manifest URL, cached under spec/crd/Traefik/.
14 0 ▶sub crd_sources {
Subroutine crd_sources: not called CC=1 SCAR=6.9
Pod undocumented
15 0 my $v = __PACKAGE__->upstream_version;
16 return {
17 0 status => 'ok',
18 base => "https://raw.githubusercontent.com/traefik/traefik/$v/docs/content/reference/dynamic-configuration",
19 files => [
20 'traefik.io_ingressroutes.yaml',
21 'traefik.io_ingressroutetcps.yaml',
22 'traefik.io_ingressrouteudps.yaml',
23 'traefik.io_middlewares.yaml',
24 'traefik.io_middlewaretcps.yaml',
25 'traefik.io_serverstransports.yaml',
26 'traefik.io_serverstransporttcps.yaml',
27 'traefik.io_tlsoptions.yaml',
28 'traefik.io_tlsstores.yaml',
29 'traefik.io_traefikservices.yaml',
30 ],
31 };
32 }
33  
34 18 ▶sub resource_map {
Subroutine resource_map: called CC=1 SCAR=0.0
Pod undocumented
35 return {
36 18 IngressRoute => 'Traefik::V1alpha1::IngressRoute',
37 IngressRouteTCP => 'Traefik::V1alpha1::IngressRouteTCP',
38 IngressRouteUDP => 'Traefik::V1alpha1::IngressRouteUDP',
39 Middleware => 'Traefik::V1alpha1::Middleware',
40 MiddlewareTCP => 'Traefik::V1alpha1::MiddlewareTCP',
41 ServersTransport => 'Traefik::V1alpha1::ServersTransport',
42 ServersTransportTCP => 'Traefik::V1alpha1::ServersTransportTCP',
43 TLSOption => 'Traefik::V1alpha1::TLSOption',
44 TLSStore => 'Traefik::V1alpha1::TLSStore',
45 TraefikService => 'Traefik::V1alpha1::TraefikService',
46 };
47 }
48  
49 3 1;
50  
51 __END__
« lib/IO/K8s/GatewayAPI.pm ↑ Summary lib/IO/K8s/GatewayAPI/V1beta1/HTTPRoute.pm »