« lib/IO/K8s/PrometheusOperator.pm
↑ Summary
lib/IO/K8s/ApiextensionsApiserver/Pkg/Apis/Apiextensions/V1/JSON.pm »
| 1 | package IO::K8s::K3s; | ||
| 2 | # ABSTRACT: K3s 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 | 1 | ▶ | sub upstream_version { 'v1.36.4+k3s1' } |
|
Subroutine
upstream_version: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 8 | |||
| 9 | # Source status for maint/crd-drift-check.pl. Data only -- no fetching here. | ||
| 10 | # k3s-io/k3s does not publish machine-readable openAPIV3Schema CRDs for these | ||
| 11 | # Kinds: helm.cattle.io (HelmChart/HelmChartConfig) and k3s.cattle.io | ||
| 12 | # (Addon/ETCDSnapshotFile) are registered at runtime as wrangler-generated | ||
| 13 | # CRDs, largely with x-kubernetes-preserve-unknown-fields rather than a | ||
| 14 | # field-level schema. The helm-controller repo carries schema CRDs for | ||
| 15 | # HelmChart/HelmChartConfig only, but on a branch that cannot be pinned to | ||
| 16 | # this k3s release tag, and Addon/ETCDSnapshotFile have no published schema | ||
| 17 | # at all. Rather than fake a source, this provider is reported as unresolved | ||
| 18 | # so the other five providers are not blocked (k82). | ||
| 19 | 0 | ▶ | sub crd_sources { |
|
Subroutine
crd_sources: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 20 | return { | ||
| 21 | 0 | status => 'unresolved', | |
| 22 | note => 'k3s-io/k3s ships these CRDs as wrangler-generated, largely schemaless ' | ||
| 23 | . '(x-kubernetes-preserve-unknown-fields) manifests with no machine-readable ' | ||
| 24 | . 'openAPIV3Schema to diff; helm-controller carries schema for HelmChart/' | ||
| 25 | . 'HelmChartConfig only, on an unpinnable branch.', | ||
| 26 | base => undef, | ||
| 27 | files => [], | ||
| 28 | }; | ||
| 29 | } | ||
| 30 | |||
| 31 | 12 | ▶ | sub resource_map { |
|
Subroutine
resource_map: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 32 | return { | ||
| 33 | 12 | HelmChart => 'K3s::V1::HelmChart', | |
| 34 | HelmChartConfig => 'K3s::V1::HelmChartConfig', | ||
| 35 | Addon => 'K3s::V1::Addon', | ||
| 36 | ETCDSnapshotFile => 'K3s::V1::ETCDSnapshotFile', | ||
| 37 | }; | ||
| 38 | } | ||
| 39 | |||
| 40 | 3 | 1; | |
| 41 | |||
| 42 | __END__ | ||