« lib/IO/K8s/Traefik/V1alpha1/WeightedRoundRobin.pm
↑ Summary
lib/IO/K8s/VolumeSnapshot/V1/GroupSnapshotHandles.pm »
| 1 | package IO::K8s::VolumeSnapshot; | ||
| 2 | # ABSTRACT: VolumeSnapshot CRD resource map provider for IO::K8s | ||
| 3 | 11 | our $VERSION = '1.112'; | |
| 4 | 11 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 11 | with 'IO::K8s::Role::ResourceMap'; | |
| 6 | |||
| 7 | 16 | ▶ | sub upstream_version { 'v8.6.0' } # kubernetes-csi/external-snapshotter |
|
Subroutine
upstream_version: called CC=1 SCAR=0.0
Pod
documented
| |||
| 8 | |||
| 9 | |||
| 10 | # Upstream CRD manifests for the pinned upstream_version, consumed by | ||
| 11 | # maint/crd-drift-check.pl. Data only -- no fetching happens here. `base` | ||
| 12 | # + each `files` entry is the raw manifest URL; the checker caches each | ||
| 13 | # under spec/crd/VolumeSnapshot/ (path separators flattened to '_'). | ||
| 14 | 8 | ▶ | sub crd_sources { |
|
Subroutine
crd_sources: called CC=1 SCAR=0.0
Pod
documented
| |||
| 15 | 8 | my $v = __PACKAGE__->upstream_version; | |
| 16 | return { | ||
| 17 | 8 | status => 'ok', | |
| 18 | base => "https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$v/client/config/crd", | ||
| 19 | files => [ | ||
| 20 | 'snapshot.storage.k8s.io_volumesnapshotclasses.yaml', | ||
| 21 | 'snapshot.storage.k8s.io_volumesnapshotcontents.yaml', | ||
| 22 | 'snapshot.storage.k8s.io_volumesnapshots.yaml', | ||
| 23 | 'groupsnapshot.storage.k8s.io_volumegroupsnapshotclasses.yaml', | ||
| 24 | 'groupsnapshot.storage.k8s.io_volumegroupsnapshotcontents.yaml', | ||
| 25 | 'groupsnapshot.storage.k8s.io_volumegroupsnapshots.yaml', | ||
| 26 | ], | ||
| 27 | }; | ||
| 28 | } | ||
| 29 | |||
| 30 | |||
| 31 | 18 | ▶ | sub resource_map { |
|
Subroutine
resource_map: called CC=1 SCAR=0.0
Pod
documented
| |||
| 32 | return { | ||
| 33 | 18 | VolumeSnapshot => 'VolumeSnapshot::V1::VolumeSnapshot', | |
| 34 | VolumeSnapshotClass => 'VolumeSnapshot::V1::VolumeSnapshotClass', | ||
| 35 | VolumeSnapshotContent => 'VolumeSnapshot::V1::VolumeSnapshotContent', | ||
| 36 | |||
| 37 | VolumeGroupSnapshot => 'VolumeSnapshot::V1beta2::VolumeGroupSnapshot', | ||
| 38 | VolumeGroupSnapshotClass => 'VolumeSnapshot::V1beta2::VolumeGroupSnapshotClass', | ||
| 39 | VolumeGroupSnapshotContent => 'VolumeSnapshot::V1beta2::VolumeGroupSnapshotContent', | ||
| 40 | |||
| 41 | 'groupsnapshot.storage.k8s.io/v1/VolumeGroupSnapshot' | ||
| 42 | => 'VolumeSnapshot::V1::VolumeGroupSnapshot', | ||
| 43 | 'groupsnapshot.storage.k8s.io/v1/VolumeGroupSnapshotClass' | ||
| 44 | => 'VolumeSnapshot::V1::VolumeGroupSnapshotClass', | ||
| 45 | 'groupsnapshot.storage.k8s.io/v1/VolumeGroupSnapshotContent' | ||
| 46 | => 'VolumeSnapshot::V1::VolumeGroupSnapshotContent', | ||
| 47 | 'groupsnapshot.storage.k8s.io/v1beta1/VolumeGroupSnapshot' | ||
| 48 | => 'VolumeSnapshot::V1beta1::VolumeGroupSnapshot', | ||
| 49 | 'groupsnapshot.storage.k8s.io/v1beta1/VolumeGroupSnapshotClass' | ||
| 50 | => 'VolumeSnapshot::V1beta1::VolumeGroupSnapshotClass', | ||
| 51 | 'groupsnapshot.storage.k8s.io/v1beta1/VolumeGroupSnapshotContent' | ||
| 52 | => 'VolumeSnapshot::V1beta1::VolumeGroupSnapshotContent', | ||
| 53 | }; | ||
| 54 | } | ||
| 55 | |||
| 56 | |||
| 57 | 11 | 1; | |
| 58 | |||
| 59 | __END__ | ||