@intentius/chant-lexicon-k8s 0.41.20 → 0.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/classify.d.ts.map +1 -1
- package/dist/api/connect.d.ts.map +1 -1
- package/dist/codegen/docs.d.ts.map +1 -1
- package/dist/components/argo-app.d.ts +104 -0
- package/dist/components/argo-app.d.ts.map +1 -0
- package/dist/components/builders.d.ts +8 -0
- package/dist/components/builders.d.ts.map +1 -1
- package/dist/components/capability-plugin.d.ts +1 -0
- package/dist/components/capability-plugin.d.ts.map +1 -1
- package/dist/components/flux-reconcile.d.ts +84 -0
- package/dist/components/flux-reconcile.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/kustomize-apply.d.ts +29 -7
- package/dist/components/kustomize-apply.d.ts.map +1 -1
- package/dist/composites/flux-app.d.ts +132 -0
- package/dist/composites/flux-app.d.ts.map +1 -0
- package/dist/composites/index.d.ts +2 -0
- package/dist/composites/index.d.ts.map +1 -1
- package/dist/config-schema.d.ts +3 -0
- package/dist/config-schema.d.ts.map +1 -1
- package/dist/config.d.ts +32 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/crd/crd-sources.d.ts.map +1 -1
- package/dist/crd/parser.d.ts.map +1 -1
- package/dist/deep-observe-hooks.d.ts +8 -0
- package/dist/deep-observe-hooks.d.ts.map +1 -1
- package/dist/describe-resources.d.ts +10 -8
- package/dist/describe-resources.d.ts.map +1 -1
- package/dist/generated/index.d.ts +15 -4
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/integrity.json +10 -6
- package/dist/kube/connect.d.ts +5 -4
- package/dist/kube/connect.d.ts.map +1 -1
- package/dist/kube/get.d.ts +4 -4
- package/dist/kustomize/render.d.ts +15 -0
- package/dist/kustomize/render.d.ts.map +1 -0
- package/dist/kustomize/rendered-entity.d.ts +39 -0
- package/dist/kustomize/rendered-entity.d.ts.map +1 -0
- package/dist/kustomize/root.d.ts +19 -0
- package/dist/kustomize/root.d.ts.map +1 -0
- package/dist/lint/audit-catalog.d.ts.map +1 -1
- package/dist/lint/post-synth/argo-helpers.d.ts +2 -0
- package/dist/lint/post-synth/argo-helpers.d.ts.map +1 -1
- package/dist/lint/post-synth/flux002.d.ts +14 -0
- package/dist/lint/post-synth/flux002.d.ts.map +1 -0
- package/dist/lint/post-synth/flux003.d.ts +17 -0
- package/dist/lint/post-synth/flux003.d.ts.map +1 -0
- package/dist/lint/post-synth/index.d.ts.map +1 -1
- package/dist/lint/rules/flux-source-ref-pin.d.ts +16 -0
- package/dist/lint/rules/flux-source-ref-pin.d.ts.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/meta.json +92 -16
- package/dist/okf/index.md +256 -0
- package/dist/okf/rules/ARGO001.md +16 -0
- package/dist/okf/rules/ARGO002.md +16 -0
- package/dist/okf/rules/ARGO003.md +15 -0
- package/dist/okf/rules/ARGO004.md +17 -0
- package/dist/okf/rules/ARGO005.md +15 -0
- package/dist/okf/rules/FLUX001.md +17 -0
- package/dist/okf/rules/FLUX002.md +19 -0
- package/dist/okf/rules/FLUX003.md +15 -0
- package/dist/okf/rules/WK8001.md +16 -0
- package/dist/okf/rules/WK8002.md +20 -0
- package/dist/okf/rules/WK8003.md +19 -0
- package/dist/okf/rules/WK8005.md +11 -0
- package/dist/okf/rules/WK8006.md +11 -0
- package/dist/okf/rules/WK8041.md +11 -0
- package/dist/okf/rules/WK8042.md +11 -0
- package/dist/okf/rules/WK8101.md +11 -0
- package/dist/okf/rules/WK8102.md +11 -0
- package/dist/okf/rules/WK8103.md +11 -0
- package/dist/okf/rules/WK8104.md +15 -0
- package/dist/okf/rules/WK8105.md +11 -0
- package/dist/okf/rules/WK8201.md +11 -0
- package/dist/okf/rules/WK8202.md +11 -0
- package/dist/okf/rules/WK8203.md +11 -0
- package/dist/okf/rules/WK8204.md +11 -0
- package/dist/okf/rules/WK8205.md +11 -0
- package/dist/okf/rules/WK8207.md +11 -0
- package/dist/okf/rules/WK8208.md +11 -0
- package/dist/okf/rules/WK8209.md +11 -0
- package/dist/okf/rules/WK8301.md +16 -0
- package/dist/okf/rules/WK8302.md +11 -0
- package/dist/okf/rules/WK8303.md +15 -0
- package/dist/okf/rules/WK8304.md +15 -0
- package/dist/okf/rules/WK8305.md +15 -0
- package/dist/okf/rules/WK8306.md +11 -0
- package/dist/okf/rules/WK8401.md +15 -0
- package/dist/okf/rules/WK8402.md +15 -0
- package/dist/okf/rules/WK8403.md +15 -0
- package/dist/okf/types/APIGroup.md +16 -0
- package/dist/okf/types/APIGroupList.md +13 -0
- package/dist/okf/types/APIResourceList.md +14 -0
- package/dist/okf/types/APIService.md +14 -0
- package/dist/okf/types/APIServiceList.md +14 -0
- package/dist/okf/types/APIVersions.md +14 -0
- package/dist/okf/types/Addon.md +14 -0
- package/dist/okf/types/Alert.md +14 -0
- package/dist/okf/types/AppProject.md +19 -0
- package/dist/okf/types/Application.md +23 -0
- package/dist/okf/types/ApplicationSet.md +18 -0
- package/dist/okf/types/Backup.md +14 -0
- package/dist/okf/types/BatchJob.md +14 -0
- package/dist/okf/types/Binding.md +14 -0
- package/dist/okf/types/Bucket.md +18 -0
- package/dist/okf/types/CM.md +16 -0
- package/dist/okf/types/CSIDriver.md +14 -0
- package/dist/okf/types/CSIDriverList.md +14 -0
- package/dist/okf/types/CSINode.md +14 -0
- package/dist/okf/types/CSINodeList.md +14 -0
- package/dist/okf/types/CSIStorageCapacity.md +17 -0
- package/dist/okf/types/CSIStorageCapacityList.md +14 -0
- package/dist/okf/types/Certificate.md +18 -0
- package/dist/okf/types/CertificateRequest.md +14 -0
- package/dist/okf/types/CertificateSigningRequest.md +14 -0
- package/dist/okf/types/CertificateSigningRequestList.md +14 -0
- package/dist/okf/types/Challenge.md +14 -0
- package/dist/okf/types/Cluster.md +14 -0
- package/dist/okf/types/ClusterIssuer.md +14 -0
- package/dist/okf/types/ClusterRole.md +15 -0
- package/dist/okf/types/ClusterRoleBinding.md +15 -0
- package/dist/okf/types/ClusterRoleBindingList.md +14 -0
- package/dist/okf/types/ClusterRoleList.md +14 -0
- package/dist/okf/types/ClusterTrustBundle.md +14 -0
- package/dist/okf/types/ClusterTrustBundleList.md +14 -0
- package/dist/okf/types/ComponentStatus.md +14 -0
- package/dist/okf/types/ComponentStatusList.md +14 -0
- package/dist/okf/types/ConfigMapList.md +14 -0
- package/dist/okf/types/ControllerRevision.md +15 -0
- package/dist/okf/types/ControllerRevisionList.md +14 -0
- package/dist/okf/types/CoreEventList.md +14 -0
- package/dist/okf/types/CrdbCluster.md +14 -0
- package/dist/okf/types/CronJob.md +20 -0
- package/dist/okf/types/CronJobList.md +14 -0
- package/dist/okf/types/CustomResourceDefinition.md +14 -0
- package/dist/okf/types/CustomResourceDefinitionList.md +14 -0
- package/dist/okf/types/DaemonSet.md +19 -0
- package/dist/okf/types/DaemonSetList.md +14 -0
- package/dist/okf/types/DeleteOptions.md +18 -0
- package/dist/okf/types/Deploy.md +14 -0
- package/dist/okf/types/DeploymentList.md +14 -0
- package/dist/okf/types/DeviceClass.md +14 -0
- package/dist/okf/types/DeviceClassList.md +14 -0
- package/dist/okf/types/DeviceTaintRule.md +14 -0
- package/dist/okf/types/DeviceTaintRuleList.md +14 -0
- package/dist/okf/types/EndpointSlice.md +16 -0
- package/dist/okf/types/EndpointSliceList.md +14 -0
- package/dist/okf/types/Endpoints.md +14 -0
- package/dist/okf/types/EndpointsList.md +14 -0
- package/dist/okf/types/Event.md +27 -0
- package/dist/okf/types/EventsEvent.md +27 -0
- package/dist/okf/types/EventsEventList.md +14 -0
- package/dist/okf/types/Eviction.md +14 -0
- package/dist/okf/types/FlowSchema.md +14 -0
- package/dist/okf/types/FlowSchemaList.md +14 -0
- package/dist/okf/types/FluxHelmChart.md +14 -0
- package/dist/okf/types/FluxInstance.md +14 -0
- package/dist/okf/types/FluxReport.md +14 -0
- package/dist/okf/types/GRPCRoute.md +14 -0
- package/dist/okf/types/Gateway.md +14 -0
- package/dist/okf/types/GatewayClass.md +14 -0
- package/dist/okf/types/GitRepository.md +19 -0
- package/dist/okf/types/HTTPRoute.md +14 -0
- package/dist/okf/types/HelmChartConfig.md +14 -0
- package/dist/okf/types/HelmRelease.md +14 -0
- package/dist/okf/types/HelmRepository.md +14 -0
- package/dist/okf/types/HorizontalPodAutoscaler.md +14 -0
- package/dist/okf/types/HorizontalPodAutoscalerList.md +14 -0
- package/dist/okf/types/IPAddress.md +14 -0
- package/dist/okf/types/IPAddressList.md +14 -0
- package/dist/okf/types/ImagePolicy.md +14 -0
- package/dist/okf/types/ImageRepository.md +14 -0
- package/dist/okf/types/ImageUpdateAutomation.md +14 -0
- package/dist/okf/types/InfisicalDynamicSecret.md +14 -0
- package/dist/okf/types/InfisicalPushSecret.md +14 -0
- package/dist/okf/types/InfisicalSecret.md +14 -0
- package/dist/okf/types/Ing.md +14 -0
- package/dist/okf/types/IngressClass.md +14 -0
- package/dist/okf/types/IngressClassList.md +14 -0
- package/dist/okf/types/IngressList.md +14 -0
- package/dist/okf/types/IngressRoute.md +14 -0
- package/dist/okf/types/IngressRouteTCP.md +14 -0
- package/dist/okf/types/IngressRouteUDP.md +14 -0
- package/dist/okf/types/Issuer.md +14 -0
- package/dist/okf/types/JobList.md +14 -0
- package/dist/okf/types/K3sHelmChart.md +14 -0
- package/dist/okf/types/Kustomization.md +20 -0
- package/dist/okf/types/Lease.md +14 -0
- package/dist/okf/types/LeaseCandidate.md +14 -0
- package/dist/okf/types/LeaseCandidateList.md +14 -0
- package/dist/okf/types/LeaseList.md +14 -0
- package/dist/okf/types/LimitRange.md +14 -0
- package/dist/okf/types/LimitRangeList.md +14 -0
- package/dist/okf/types/LocalSubjectAccessReview.md +14 -0
- package/dist/okf/types/MicroVM.md +14 -0
- package/dist/okf/types/MicroVMClass.md +14 -0
- package/dist/okf/types/MicroVMImage.md +14 -0
- package/dist/okf/types/MicroVMNetwork.md +14 -0
- package/dist/okf/types/MicroVMReplicaSet.md +14 -0
- package/dist/okf/types/Middleware.md +14 -0
- package/dist/okf/types/MiddlewareTCP.md +14 -0
- package/dist/okf/types/MutatingAdmissionPolicy.md +14 -0
- package/dist/okf/types/MutatingAdmissionPolicyBinding.md +14 -0
- package/dist/okf/types/MutatingAdmissionPolicyBindingList.md +14 -0
- package/dist/okf/types/MutatingAdmissionPolicyList.md +14 -0
- package/dist/okf/types/MutatingWebhookConfiguration.md +14 -0
- package/dist/okf/types/MutatingWebhookConfigurationList.md +14 -0
- package/dist/okf/types/Namespace.md +19 -0
- package/dist/okf/types/NamespaceList.md +14 -0
- package/dist/okf/types/NetPol.md +14 -0
- package/dist/okf/types/NetworkPolicyList.md +14 -0
- package/dist/okf/types/Node.md +22 -0
- package/dist/okf/types/NodeList.md +14 -0
- package/dist/okf/types/OCIRepository.md +18 -0
- package/dist/okf/types/ObjectStore.md +14 -0
- package/dist/okf/types/Order.md +14 -0
- package/dist/okf/types/PDB.md +18 -0
- package/dist/okf/types/PersistentVolume.md +14 -0
- package/dist/okf/types/PersistentVolumeClaim.md +14 -0
- package/dist/okf/types/PersistentVolumeClaimList.md +14 -0
- package/dist/okf/types/PersistentVolumeList.md +14 -0
- package/dist/okf/types/Pod.md +18 -0
- package/dist/okf/types/PodCertificateRequest.md +14 -0
- package/dist/okf/types/PodCertificateRequestList.md +14 -0
- package/dist/okf/types/PodDisruptionBudgetList.md +14 -0
- package/dist/okf/types/PodList.md +14 -0
- package/dist/okf/types/PodTemplate.md +14 -0
- package/dist/okf/types/PodTemplateList.md +14 -0
- package/dist/okf/types/Pooler.md +14 -0
- package/dist/okf/types/PriorityClass.md +17 -0
- package/dist/okf/types/PriorityClassList.md +14 -0
- package/dist/okf/types/PriorityLevelConfiguration.md +14 -0
- package/dist/okf/types/PriorityLevelConfigurationList.md +14 -0
- package/dist/okf/types/PrometheusRule.md +14 -0
- package/dist/okf/types/Provider.md +14 -0
- package/dist/okf/types/RayCluster.md +20 -0
- package/dist/okf/types/RayJob.md +14 -0
- package/dist/okf/types/RayService.md +14 -0
- package/dist/okf/types/Receiver.md +14 -0
- package/dist/okf/types/ReferenceGrant.md +14 -0
- package/dist/okf/types/ReplicaSet.md +19 -0
- package/dist/okf/types/ReplicaSetList.md +14 -0
- package/dist/okf/types/ReplicationController.md +14 -0
- package/dist/okf/types/ReplicationControllerList.md +14 -0
- package/dist/okf/types/ResourceClaim.md +14 -0
- package/dist/okf/types/ResourceClaimList.md +14 -0
- package/dist/okf/types/ResourceClaimTemplate.md +14 -0
- package/dist/okf/types/ResourceClaimTemplateList.md +14 -0
- package/dist/okf/types/ResourceQuota.md +14 -0
- package/dist/okf/types/ResourceQuotaList.md +14 -0
- package/dist/okf/types/ResourceSet.md +14 -0
- package/dist/okf/types/ResourceSetInputProvider.md +14 -0
- package/dist/okf/types/ResourceSlice.md +14 -0
- package/dist/okf/types/ResourceSliceList.md +14 -0
- package/dist/okf/types/Role.md +14 -0
- package/dist/okf/types/RoleBinding.md +15 -0
- package/dist/okf/types/RoleBindingList.md +14 -0
- package/dist/okf/types/RoleList.md +14 -0
- package/dist/okf/types/RuntimeClass.md +16 -0
- package/dist/okf/types/RuntimeClassList.md +14 -0
- package/dist/okf/types/SA.md +16 -0
- package/dist/okf/types/Scale.md +14 -0
- package/dist/okf/types/ScheduledBackup.md +14 -0
- package/dist/okf/types/Sec.md +17 -0
- package/dist/okf/types/SecretList.md +14 -0
- package/dist/okf/types/SelfSubjectAccessReview.md +14 -0
- package/dist/okf/types/SelfSubjectReview.md +13 -0
- package/dist/okf/types/SelfSubjectRulesReview.md +14 -0
- package/dist/okf/types/ServersTransport.md +14 -0
- package/dist/okf/types/ServersTransportTCP.md +14 -0
- package/dist/okf/types/Service.md +20 -0
- package/dist/okf/types/ServiceAccountList.md +14 -0
- package/dist/okf/types/ServiceCIDR.md +14 -0
- package/dist/okf/types/ServiceCIDRList.md +14 -0
- package/dist/okf/types/ServiceList.md +14 -0
- package/dist/okf/types/ServiceMonitor.md +14 -0
- package/dist/okf/types/StatefulSet.md +19 -0
- package/dist/okf/types/StatefulSetList.md +14 -0
- package/dist/okf/types/Status.md +17 -0
- package/dist/okf/types/StorageClass.md +20 -0
- package/dist/okf/types/StorageClassList.md +14 -0
- package/dist/okf/types/StorageVersionMigration.md +14 -0
- package/dist/okf/types/StorageVersionMigrationList.md +14 -0
- package/dist/okf/types/SubjectAccessReview.md +14 -0
- package/dist/okf/types/TLSOption.md +14 -0
- package/dist/okf/types/TLSStore.md +14 -0
- package/dist/okf/types/TokenRequest.md +14 -0
- package/dist/okf/types/TokenReview.md +14 -0
- package/dist/okf/types/TraefikService.md +14 -0
- package/dist/okf/types/ValidatingAdmissionPolicy.md +14 -0
- package/dist/okf/types/ValidatingAdmissionPolicyBinding.md +14 -0
- package/dist/okf/types/ValidatingAdmissionPolicyBindingList.md +14 -0
- package/dist/okf/types/ValidatingAdmissionPolicyList.md +14 -0
- package/dist/okf/types/ValidatingWebhookConfiguration.md +14 -0
- package/dist/okf/types/ValidatingWebhookConfigurationList.md +14 -0
- package/dist/okf/types/VolumeAttachment.md +14 -0
- package/dist/okf/types/VolumeAttachmentList.md +14 -0
- package/dist/okf/types/VolumeAttributesClass.md +15 -0
- package/dist/okf/types/VolumeAttributesClassList.md +14 -0
- package/dist/okf/types/WatchEvent.md +14 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/rules/argo-helpers.ts +2 -0
- package/dist/rules/flux-source-ref-pin.ts +52 -0
- package/dist/rules/flux002.ts +77 -0
- package/dist/rules/flux003.ts +75 -0
- package/dist/serializer.d.ts.map +1 -1
- package/dist/skills/chant-k8s-flux.md +162 -0
- package/dist/types/index.d.ts +41 -3
- package/dist/validate.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/classify.test.ts +20 -0
- package/src/api/classify.ts +8 -1
- package/src/api/connect.ts +10 -0
- package/src/codegen/docs.ts +11 -0
- package/src/components/argo-app.test.ts +137 -0
- package/src/components/argo-app.ts +163 -0
- package/src/components/builders.ts +8 -0
- package/src/components/capability-plugin.ts +11 -1
- package/src/components/flux-reconcile.test.ts +145 -0
- package/src/components/flux-reconcile.ts +159 -0
- package/src/components/index.ts +13 -0
- package/src/components/kustomize-apply.ts +12 -41
- package/src/composites/composites.test.ts +122 -0
- package/src/composites/flux-app.ts +274 -0
- package/src/composites/index.ts +9 -0
- package/src/config-augmentation.test.ts +72 -0
- package/src/config-schema.ts +5 -0
- package/src/config.ts +33 -5
- package/src/crd/crd-sources.ts +37 -0
- package/src/crd/parser.ts +6 -0
- package/src/deep-observe-hooks.ts +60 -0
- package/src/deep-observe.test.ts +114 -0
- package/src/describe-resources.test.ts +215 -6
- package/src/describe-resources.ts +197 -118
- package/src/generated/index.d.ts +41 -3
- package/src/generated/index.ts +15 -4
- package/src/generated/lexicon-k8s.json +92 -16
- package/src/generated/operations.json +48 -0
- package/src/index.ts +4 -0
- package/src/kube/connect.ts +5 -4
- package/src/kube/get.ts +4 -4
- package/src/kustomize/render.ts +84 -0
- package/src/kustomize/rendered-entity.ts +72 -0
- package/src/kustomize/root.test.ts +268 -0
- package/src/kustomize/root.ts +109 -0
- package/src/lint/audit-catalog.ts +2 -0
- package/src/lint/post-synth/argo-helpers.ts +2 -0
- package/src/lint/post-synth/flux002.ts +77 -0
- package/src/lint/post-synth/flux003.ts +75 -0
- package/src/lint/post-synth/index.ts +4 -0
- package/src/lint/post-synth/post-synth.test.ts +132 -0
- package/src/lint/rules/flux-source-ref-pin.ts +52 -0
- package/src/lint/rules/rules.test.ts +51 -0
- package/src/plugin.test.ts +2 -0
- package/src/plugin.ts +47 -0
- package/src/serializer.ts +34 -4
- package/src/skills/chant-k8s-flux.md +162 -0
- package/src/testdata/kustomize-root/base/deployment.yaml +17 -0
- package/src/testdata/kustomize-root/base/kustomization.yaml +3 -0
- package/src/testdata/kustomize-root/base/service.yaml +9 -0
- package/src/testdata/kustomize-root/overlays/prod/kustomization.yaml +6 -0
- package/src/validate.ts +4 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: SelfSubjectAccessReview
|
|
4
|
+
description: k8s resource type K8s::Authorization::SelfSubjectAccessReview
|
|
5
|
+
name: SelfSubjectAccessReview
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Authorization::SelfSubjectAccessReview
|
|
8
|
+
---
|
|
9
|
+
`K8s::Authorization::SelfSubjectAccessReview`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec holds information about the request being evaluated. user and groups must be empty
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: SelfSubjectReview
|
|
4
|
+
description: k8s resource type K8s::Authentication::SelfSubjectReview
|
|
5
|
+
name: SelfSubjectReview
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Authentication::SelfSubjectReview
|
|
8
|
+
---
|
|
9
|
+
`K8s::Authentication::SelfSubjectReview`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): metadata is standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: SelfSubjectRulesReview
|
|
4
|
+
description: k8s resource type K8s::Authorization::SelfSubjectRulesReview
|
|
5
|
+
name: SelfSubjectRulesReview
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Authorization::SelfSubjectRulesReview
|
|
8
|
+
---
|
|
9
|
+
`K8s::Authorization::SelfSubjectRulesReview`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec holds information about the request being evaluated.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ServersTransport
|
|
4
|
+
description: k8s resource type K8s::Traefik::ServersTransport
|
|
5
|
+
name: ServersTransport
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Traefik::ServersTransport
|
|
8
|
+
---
|
|
9
|
+
`K8s::Traefik::ServersTransport`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): ServersTransportSpec defines the desired state of a ServersTransport.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ServersTransportTCP
|
|
4
|
+
description: k8s resource type K8s::Traefik::ServersTransportTCP
|
|
5
|
+
name: ServersTransportTCP
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Traefik::ServersTransportTCP
|
|
8
|
+
---
|
|
9
|
+
`K8s::Traefik::ServersTransportTCP`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): ServersTransportTCPSpec defines the desired state of a ServersTransportTCP.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: Service
|
|
4
|
+
description: k8s resource type K8s::Core::Service
|
|
5
|
+
name: Service
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Core::Service
|
|
8
|
+
---
|
|
9
|
+
`K8s::Core::Service`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional): Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8104](/rules/WK8104.md): Ports should be named — named ports improve Service and NetworkPolicy configuration
|
|
19
|
+
- [WK8301](/rules/WK8301.md): Probes required — containers should have livenessProbe and readinessProbe
|
|
20
|
+
- [WK8305](/rules/WK8305.md): Ingress port not matching Service — backend port must match a declared Service port
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ServiceAccountList
|
|
4
|
+
description: k8s resource type K8s::Core::ServiceAccountList
|
|
5
|
+
name: ServiceAccountList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Core::ServiceAccountList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Core::ServiceAccountList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ServiceCIDR
|
|
4
|
+
description: k8s resource type K8s::Networking::ServiceCIDR
|
|
5
|
+
name: ServiceCIDR
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Networking::ServiceCIDR
|
|
8
|
+
---
|
|
9
|
+
`K8s::Networking::ServiceCIDR`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional): spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ServiceCIDRList
|
|
4
|
+
description: k8s resource type K8s::Networking::ServiceCIDRList
|
|
5
|
+
name: ServiceCIDRList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Networking::ServiceCIDRList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Networking::ServiceCIDRList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): items is the list of ServiceCIDRs.
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ServiceList
|
|
4
|
+
description: k8s resource type K8s::Core::ServiceList
|
|
5
|
+
name: ServiceList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Core::ServiceList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Core::ServiceList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): List of services
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ServiceMonitor
|
|
4
|
+
description: k8s resource type K8s::Monitoring::ServiceMonitor
|
|
5
|
+
name: ServiceMonitor
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Monitoring::ServiceMonitor
|
|
8
|
+
---
|
|
9
|
+
`K8s::Monitoring::ServiceMonitor`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): Specification of desired Service selection for target discovery by Prometheus.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: StatefulSet
|
|
4
|
+
description: k8s resource type K8s::Apps::StatefulSet
|
|
5
|
+
name: StatefulSet
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Apps::StatefulSet
|
|
8
|
+
---
|
|
9
|
+
`K8s::Apps::StatefulSet`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional): Spec defines the desired identities of pods in this set.
|
|
15
|
+
|
|
16
|
+
## Governed by
|
|
17
|
+
|
|
18
|
+
- [WK8002](/rules/WK8002.md): Latest Image Tag
|
|
19
|
+
- [WK8003](/rules/WK8003.md): Missing Resource Limits
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: StatefulSetList
|
|
4
|
+
description: k8s resource type K8s::Apps::StatefulSetList
|
|
5
|
+
name: StatefulSetList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Apps::StatefulSetList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Apps::StatefulSetList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): Items is the list of stateful sets.
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: Status
|
|
4
|
+
description: k8s resource type K8s::Core::Status
|
|
5
|
+
name: Status
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Core::Status
|
|
8
|
+
---
|
|
9
|
+
`K8s::Core::Status`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `code` (`number`, optional): Suggested HTTP return code for this status, 0 if not set.
|
|
14
|
+
- `details` (`Record<string, unknown>`, optional): Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.
|
|
15
|
+
- `message` (`string`, optional): A human-readable description of the status of this operation.
|
|
16
|
+
- `metadata` (`Record<string, unknown>`, optional): Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
17
|
+
- `reason` (`string`, optional): A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: StorageClass
|
|
4
|
+
description: k8s resource type K8s::Storage::StorageClass
|
|
5
|
+
name: StorageClass
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Storage::StorageClass
|
|
8
|
+
---
|
|
9
|
+
`K8s::Storage::StorageClass`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `provisioner` (`string`, required): provisioner indicates the type of the provisioner.
|
|
14
|
+
- `allowedTopologies` (`Record<string, unknown>[]`, optional): allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
|
|
15
|
+
- `allowVolumeExpansion` (`boolean`, optional): allowVolumeExpansion shows whether the storage class allow volume expand.
|
|
16
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
17
|
+
- `mountOptions` (`string[]`, optional): mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
|
|
18
|
+
- `parameters` (`Record<string, string>`, optional): parameters holds the parameters for the provisioner that should create volumes of this storage class.
|
|
19
|
+
- `reclaimPolicy` (`string`, optional): reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.
|
|
20
|
+
- `volumeBindingMode` (`string`, optional): volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: StorageClassList
|
|
4
|
+
description: k8s resource type K8s::Storage::StorageClassList
|
|
5
|
+
name: StorageClassList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Storage::StorageClassList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Storage::StorageClassList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): items is the list of StorageClasses
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: StorageVersionMigration
|
|
4
|
+
description: k8s resource type K8s::Storagemigration::StorageVersionMigration
|
|
5
|
+
name: StorageVersionMigration
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Storagemigration::StorageVersionMigration
|
|
8
|
+
---
|
|
9
|
+
`K8s::Storagemigration::StorageVersionMigration`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional): Specification of the migration.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: StorageVersionMigrationList
|
|
4
|
+
description: k8s resource type K8s::Storagemigration::StorageVersionMigrationList
|
|
5
|
+
name: StorageVersionMigrationList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Storagemigration::StorageVersionMigrationList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Storagemigration::StorageVersionMigrationList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): Items is the list of StorageVersionMigration
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: SubjectAccessReview
|
|
4
|
+
description: k8s resource type K8s::Authorization::SubjectAccessReview
|
|
5
|
+
name: SubjectAccessReview
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Authorization::SubjectAccessReview
|
|
8
|
+
---
|
|
9
|
+
`K8s::Authorization::SubjectAccessReview`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec holds information about the request being evaluated
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: TLSOption
|
|
4
|
+
description: k8s resource type K8s::Traefik::TLSOption
|
|
5
|
+
name: TLSOption
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Traefik::TLSOption
|
|
8
|
+
---
|
|
9
|
+
`K8s::Traefik::TLSOption`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): TLSOptionSpec defines the desired state of a TLSOption.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: TLSStore
|
|
4
|
+
description: k8s resource type K8s::Traefik::TLSStore
|
|
5
|
+
name: TLSStore
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Traefik::TLSStore
|
|
8
|
+
---
|
|
9
|
+
`K8s::Traefik::TLSStore`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): TLSStoreSpec defines the desired state of a TLSStore.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: TokenRequest
|
|
4
|
+
description: k8s resource type K8s::Authentication::TokenRequest
|
|
5
|
+
name: TokenRequest
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Authentication::TokenRequest
|
|
8
|
+
---
|
|
9
|
+
`K8s::Authentication::TokenRequest`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional): spec holds information about the request being evaluated
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: TokenReview
|
|
4
|
+
description: k8s resource type K8s::Authentication::TokenReview
|
|
5
|
+
name: TokenReview
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Authentication::TokenReview
|
|
8
|
+
---
|
|
9
|
+
`K8s::Authentication::TokenReview`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec holds information about the request being evaluated
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: TraefikService
|
|
4
|
+
description: k8s resource type K8s::Traefik::TraefikService
|
|
5
|
+
name: TraefikService
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Traefik::TraefikService
|
|
8
|
+
---
|
|
9
|
+
`K8s::Traefik::TraefikService`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): TraefikServiceSpec defines the desired state of a TraefikService.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ValidatingAdmissionPolicy
|
|
4
|
+
description: k8s resource type K8s::Admissionregistration::ValidatingAdmissionPolicy
|
|
5
|
+
name: ValidatingAdmissionPolicy
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Admissionregistration::ValidatingAdmissionPolicy
|
|
8
|
+
---
|
|
9
|
+
`K8s::Admissionregistration::ValidatingAdmissionPolicy`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
14
|
+
- `spec` (`Record<string, unknown>`, optional): spec defines the desired behavior of the ValidatingAdmissionPolicy.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ValidatingAdmissionPolicyBinding
|
|
4
|
+
description: k8s resource type K8s::Admissionregistration::ValidatingAdmissionPolicyBinding
|
|
5
|
+
name: ValidatingAdmissionPolicyBinding
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Admissionregistration::ValidatingAdmissionPolicyBinding
|
|
8
|
+
---
|
|
9
|
+
`K8s::Admissionregistration::ValidatingAdmissionPolicyBinding`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ValidatingAdmissionPolicyBindingList
|
|
4
|
+
description: k8s resource type K8s::Admissionregistration::ValidatingAdmissionPolicyBindingList
|
|
5
|
+
name: ValidatingAdmissionPolicyBindingList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Admissionregistration::ValidatingAdmissionPolicyBindingList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Admissionregistration::ValidatingAdmissionPolicyBindingList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): List of PolicyBinding.
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ValidatingAdmissionPolicyList
|
|
4
|
+
description: k8s resource type K8s::Admissionregistration::ValidatingAdmissionPolicyList
|
|
5
|
+
name: ValidatingAdmissionPolicyList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Admissionregistration::ValidatingAdmissionPolicyList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Admissionregistration::ValidatingAdmissionPolicyList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): List of ValidatingAdmissionPolicy.
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ValidatingWebhookConfiguration
|
|
4
|
+
description: k8s resource type K8s::Admissionregistration::ValidatingWebhookConfiguration
|
|
5
|
+
name: ValidatingWebhookConfiguration
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Admissionregistration::ValidatingWebhookConfiguration
|
|
8
|
+
---
|
|
9
|
+
`K8s::Admissionregistration::ValidatingWebhookConfiguration`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `metadata` (`ObjectMeta`, optional): metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
14
|
+
- `webhooks` (`Record<string, unknown>[]`, optional): webhooks is a list of webhooks and the affected resources and operations.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: ValidatingWebhookConfigurationList
|
|
4
|
+
description: k8s resource type K8s::Admissionregistration::ValidatingWebhookConfigurationList
|
|
5
|
+
name: ValidatingWebhookConfigurationList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Admissionregistration::ValidatingWebhookConfigurationList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Admissionregistration::ValidatingWebhookConfigurationList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): List of ValidatingWebhookConfiguration.
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: VolumeAttachment
|
|
4
|
+
description: k8s resource type K8s::Storage::VolumeAttachment
|
|
5
|
+
name: VolumeAttachment
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Storage::VolumeAttachment
|
|
8
|
+
---
|
|
9
|
+
`K8s::Storage::VolumeAttachment`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `spec` (`Record<string, unknown>`, required): spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: VolumeAttachmentList
|
|
4
|
+
description: k8s resource type K8s::Storage::VolumeAttachmentList
|
|
5
|
+
name: VolumeAttachmentList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Storage::VolumeAttachmentList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Storage::VolumeAttachmentList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): items is the list of VolumeAttachments
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: VolumeAttributesClass
|
|
4
|
+
description: k8s resource type K8s::Storage::VolumeAttributesClass
|
|
5
|
+
name: VolumeAttributesClass
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Storage::VolumeAttributesClass
|
|
8
|
+
---
|
|
9
|
+
`K8s::Storage::VolumeAttributesClass`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `driverName` (`string`, required): Name of the CSI driver This field is immutable.
|
|
14
|
+
- `metadata` (`ObjectMeta`, optional): Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
15
|
+
- `parameters` (`Record<string, string>`, optional): parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: VolumeAttributesClassList
|
|
4
|
+
description: k8s resource type K8s::Storage::VolumeAttributesClassList
|
|
5
|
+
name: VolumeAttributesClassList
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Storage::VolumeAttributesClassList
|
|
8
|
+
---
|
|
9
|
+
`K8s::Storage::VolumeAttributesClassList`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `items` (`Record<string, unknown>[]`, required): items is the list of VolumeAttributesClass objects.
|
|
14
|
+
- `metadata` (`Record<string, unknown>`, optional): Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: WatchEvent
|
|
4
|
+
description: k8s resource type K8s::Core::WatchEvent
|
|
5
|
+
name: WatchEvent
|
|
6
|
+
lexicon: k8s
|
|
7
|
+
resource_type: K8s::Core::WatchEvent
|
|
8
|
+
---
|
|
9
|
+
`K8s::Core::WatchEvent`, a resource type of the k8s lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `object` (`Record<string, unknown>`, required): Object is: If Type is Added or Modified: the new state of the object. If Type is Deleted: the state of the object immediately before deletion. If Type is Error: *Status is recommended; other types may make sense depending on context.
|
|
14
|
+
- `type` (`string`, required)
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAqC,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAqC,MAAM,0BAA0B,CAAC;AA2BjG,eAAO,MAAM,SAAS,EAAE,aAqqBvB,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared helpers for the Argo post-synth checks (ARGO002, ARGO003, ARGO005).
|
|
3
|
+
* The generic manifest collectors (`allManifests`, `manifestsOfKind`) are
|
|
4
|
+
* shared by the Flux checks (FLUX002, FLUX003) too.
|
|
3
5
|
*
|
|
4
6
|
* Excluded from check auto-discovery by the "helper" filename filter.
|
|
5
7
|
*/
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
|
|
2
|
+
import { findResourceLiterals, getNestedObject, getNestedString, getProp, lineCol } from "./argo-ast";
|
|
3
|
+
import * as ts from "typescript";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* FLUX001: GitRepository must pin spec.ref
|
|
7
|
+
*
|
|
8
|
+
* A Flux `GitRepository` with no `spec.ref` falls back to the `master` branch,
|
|
9
|
+
* which on most repos no longer exists — the source stalls with a checkout
|
|
10
|
+
* error, and every Kustomization downstream of it stalls too. Real estates pin
|
|
11
|
+
* a branch (or tag) on every source; `FluxGitSource` always emits one. Flag
|
|
12
|
+
* hand-written `GitRepository` literals whose spec carries a `url` but no
|
|
13
|
+
* `ref`.
|
|
14
|
+
*
|
|
15
|
+
* Bad: new GitRepository({ spec: { url: "https://github.com/acme/infra" } })
|
|
16
|
+
* Good: new GitRepository({ spec: { url: "https://github.com/acme/infra", ref: { branch: "main" } } })
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
export const fluxSourceRefPinRule: LintRule = {
|
|
20
|
+
id: "FLUX001",
|
|
21
|
+
severity: "warning",
|
|
22
|
+
category: "correctness",
|
|
23
|
+
description:
|
|
24
|
+
"Flux GitRepository must pin spec.ref (branch, tag, semver, or commit) — the unset default is the master branch",
|
|
25
|
+
|
|
26
|
+
check(context: LintContext): LintDiagnostic[] {
|
|
27
|
+
const { sourceFile } = context;
|
|
28
|
+
const diagnostics: LintDiagnostic[] = [];
|
|
29
|
+
|
|
30
|
+
for (const { literal } of findResourceLiterals(sourceFile, new Set(["GitRepository"]))) {
|
|
31
|
+
const spec = getNestedObject(literal, ["spec"]);
|
|
32
|
+
// No spec object literal to inspect — leave it to other tooling.
|
|
33
|
+
if (!spec) continue;
|
|
34
|
+
if (getProp(spec, "ref") !== undefined) continue;
|
|
35
|
+
|
|
36
|
+
const anchor: ts.Node = spec;
|
|
37
|
+
const { line, column } = lineCol(sourceFile, anchor);
|
|
38
|
+
const name = getNestedString(literal, ["metadata", "name"]) ?? "(unnamed)";
|
|
39
|
+
|
|
40
|
+
diagnostics.push({
|
|
41
|
+
file: sourceFile.fileName,
|
|
42
|
+
line,
|
|
43
|
+
column,
|
|
44
|
+
ruleId: "FLUX001",
|
|
45
|
+
severity: "warning",
|
|
46
|
+
message: `GitRepository "${name}" has no spec.ref — Flux falls back to the master branch. Pin a branch, tag, semver range, or commit.`,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return diagnostics;
|
|
51
|
+
},
|
|
52
|
+
};
|