| 1 | package IO::K8s::ExternalSecrets; | ||
| 2 | # ABSTRACT: external-secrets CRD resource map provider for IO::K8s | ||
| 3 | 6 | our $VERSION = '1.112'; | |
| 4 | 6 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 6 | with 'IO::K8s::Role::ResourceMap'; | |
| 6 | |||
| 7 | 0 | ▶ | sub upstream_version { 'v2.10.0' } # external-secrets/external-secrets |
|
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 happens here. `base` | ||
| 11 | # + each `files` entry is the raw manifest URL; the checker caches each | ||
| 12 | # under spec/crd/ExternalSecrets/ (path separators flattened to '_'). | ||
| 13 | 0 | ▶ | sub crd_sources { |
|
Subroutine
crd_sources: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | 0 | my $v = __PACKAGE__->upstream_version; | |
| 15 | return { | ||
| 16 | 0 | status => 'ok', | |
| 17 | base => "https://raw.githubusercontent.com/external-secrets/external-secrets/$v/deploy/crds", | ||
| 18 | files => [ | ||
| 19 | 'bundle.yaml', | ||
| 20 | ], | ||
| 21 | }; | ||
| 22 | } | ||
| 23 | |||
| 24 | 35 | ▶ | sub resource_map { |
|
Subroutine
resource_map: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 25 | return { | ||
| 26 | # external-secrets.io/v1 -- the graduated, served+storage version for | ||
| 27 | # all four of these Kinds at the pin (v1beta1 still ships in the CRD | ||
| 28 | # manifest but is served: false everywhere -- not modeled, see POD). | ||
| 29 | 35 | ExternalSecret => 'ExternalSecrets::V1::ExternalSecret', | |
| 30 | SecretStore => 'ExternalSecrets::V1::SecretStore', | ||
| 31 | ClusterSecretStore => 'ExternalSecrets::V1::ClusterSecretStore', | ||
| 32 | ClusterExternalSecret => 'ExternalSecrets::V1::ClusterExternalSecret', | ||
| 33 | # external-secrets.io/v1alpha1 -- PushSecret has not graduated to v1 | ||
| 34 | # at this pin; v1alpha1 is its only served version. | ||
| 35 | PushSecret => 'ExternalSecrets::V1alpha1::PushSecret', | ||
| 36 | # external-secrets.io/v1alpha1 -- ClusterPushSecret is the | ||
| 37 | # cluster-scoped sibling of PushSecret; its spec wraps the same | ||
| 38 | # PushSecretSpec tree (spec.pushSecretSpec) rather than re-modeling it. | ||
| 39 | ClusterPushSecret => 'ExternalSecrets::V1alpha1::ClusterPushSecret', | ||
| 40 | # generators.external-secrets.io/v1alpha1 -- a separate API group | ||
| 41 | # (upstream Go package apis/generators/v1alpha1, not | ||
| 42 | # apis/externalsecrets/*) from the six Kinds above, despite sharing | ||
| 43 | # both the "v1alpha1" version string and the V1alpha1 namespace with | ||
| 44 | # PushSecret's own group -- the same one-provider/two-groups layout | ||
| 45 | # CertManager already uses for cert-manager.io/v1 + acme.cert-manager.io/v1, | ||
| 46 | # disambiguated by each class's own api_version rather than a path | ||
| 47 | # segment (k113). | ||
| 48 | ACRAccessToken => 'ExternalSecrets::V1alpha1::ACRAccessToken', | ||
| 49 | BeyondtrustWorkloadCredentialsDynamicSecret => 'ExternalSecrets::V1alpha1::BeyondtrustWorkloadCredentialsDynamicSecret', | ||
| 50 | CloudsmithAccessToken => 'ExternalSecrets::V1alpha1::CloudsmithAccessToken', | ||
| 51 | # ClusterGenerator is the cluster-scoped, 17-member union kind: its | ||
| 52 | # spec.generator.<x>Spec fields each reference the SAME *Spec class | ||
| 53 | # the corresponding standalone Kind below uses for its own spec | ||
| 54 | # (verified byte-identical upstream, the same way ClusterExternalSecret/ | ||
| 55 | # ClusterPushSecret reuse their sibling Kind's Spec) -- not a parallel | ||
| 56 | # tree. It has no GeneratorState member: that Kind is controller state, | ||
| 57 | # not a generator plugin, and is not part of the union upstream either. | ||
| 58 | ClusterGenerator => 'ExternalSecrets::V1alpha1::ClusterGenerator', | ||
| 59 | ECRAuthorizationToken => 'ExternalSecrets::V1alpha1::ECRAuthorizationToken', | ||
| 60 | Fake => 'ExternalSecrets::V1alpha1::Fake', | ||
| 61 | GCRAccessToken => 'ExternalSecrets::V1alpha1::GCRAccessToken', | ||
| 62 | GeneratorState => 'ExternalSecrets::V1alpha1::GeneratorState', | ||
| 63 | GithubAccessToken => 'ExternalSecrets::V1alpha1::GithubAccessToken', | ||
| 64 | GitlabDeployToken => 'ExternalSecrets::V1alpha1::GitlabDeployToken', | ||
| 65 | Grafana => 'ExternalSecrets::V1alpha1::Grafana', | ||
| 66 | MFA => 'ExternalSecrets::V1alpha1::MFA', | ||
| 67 | Password => 'ExternalSecrets::V1alpha1::Password', | ||
| 68 | QuayAccessToken => 'ExternalSecrets::V1alpha1::QuayAccessToken', | ||
| 69 | SSHKey => 'ExternalSecrets::V1alpha1::SSHKey', | ||
| 70 | STSSessionToken => 'ExternalSecrets::V1alpha1::STSSessionToken', | ||
| 71 | UUID => 'ExternalSecrets::V1alpha1::UUID', | ||
| 72 | VaultDynamicSecret => 'ExternalSecrets::V1alpha1::VaultDynamicSecret', | ||
| 73 | Webhook => 'ExternalSecrets::V1alpha1::Webhook', | ||
| 74 | }; | ||
| 75 | } | ||
| 76 | |||
| 77 | 6 | 1; | |
| 78 | |||
| 79 | __END__ | ||