diff --git a/Sources/Model/KubernetesResource.swift b/Sources/Model/KubernetesResource.swift index 22fca5d2..e86e7bff 100644 --- a/Sources/Model/KubernetesResource.swift +++ b/Sources/Model/KubernetesResource.swift @@ -75,3 +75,15 @@ public protocol ListableResource: KubernetesResource { /// The associated type of a `KubernetesResourceList`. associatedtype List: KubernetesResourceList } + +/// +/// A marker protocol for all namespace-scoped API resources. +/// +/// For example a `Pod` or an `Ingress` are `NamespacedResource`s. +public protocol NamespacedResource {} + +/// +/// A marker protocol for all cluster-scoped API resources. +/// +/// For example a `Node` or a `ClusterRole` are ClusterScopedResource`s. +public protocol ClusterScopedResource {} diff --git a/Sources/Model/admissionregistration/v1/MutatingWebhookConfiguration+admissionregistration.v1.swift b/Sources/Model/admissionregistration/v1/MutatingWebhookConfiguration+admissionregistration.v1.swift index 42d07f92..63f37464 100644 --- a/Sources/Model/admissionregistration/v1/MutatingWebhookConfiguration+admissionregistration.v1.swift +++ b/Sources/Model/admissionregistration/v1/MutatingWebhookConfiguration+admissionregistration.v1.swift @@ -27,7 +27,7 @@ public extension admissionregistration.v1 { /// /// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. /// - struct MutatingWebhookConfiguration: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct MutatingWebhookConfiguration: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/admissionregistration/v1/ValidatingWebhookConfiguration+admissionregistration.v1.swift b/Sources/Model/admissionregistration/v1/ValidatingWebhookConfiguration+admissionregistration.v1.swift index 6ea9ca1e..0fa90384 100644 --- a/Sources/Model/admissionregistration/v1/ValidatingWebhookConfiguration+admissionregistration.v1.swift +++ b/Sources/Model/admissionregistration/v1/ValidatingWebhookConfiguration+admissionregistration.v1.swift @@ -27,7 +27,7 @@ public extension admissionregistration.v1 { /// /// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. /// - struct ValidatingWebhookConfiguration: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ValidatingWebhookConfiguration: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/admissionregistration/v1beta1/MutatingWebhookConfiguration+admissionregistration.v1beta1.swift b/Sources/Model/admissionregistration/v1beta1/MutatingWebhookConfiguration+admissionregistration.v1beta1.swift index 07706bae..23ae5c38 100644 --- a/Sources/Model/admissionregistration/v1beta1/MutatingWebhookConfiguration+admissionregistration.v1beta1.swift +++ b/Sources/Model/admissionregistration/v1beta1/MutatingWebhookConfiguration+admissionregistration.v1beta1.swift @@ -27,7 +27,7 @@ public extension admissionregistration.v1beta1 { /// /// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. /// - struct MutatingWebhookConfiguration: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct MutatingWebhookConfiguration: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/admissionregistration/v1beta1/ValidatingWebhookConfiguration+admissionregistration.v1beta1.swift b/Sources/Model/admissionregistration/v1beta1/ValidatingWebhookConfiguration+admissionregistration.v1beta1.swift index 209b855f..bffc8ef8 100644 --- a/Sources/Model/admissionregistration/v1beta1/ValidatingWebhookConfiguration+admissionregistration.v1beta1.swift +++ b/Sources/Model/admissionregistration/v1beta1/ValidatingWebhookConfiguration+admissionregistration.v1beta1.swift @@ -27,7 +27,7 @@ public extension admissionregistration.v1beta1 { /// /// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. /// - struct ValidatingWebhookConfiguration: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ValidatingWebhookConfiguration: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/apiextensions/v1/CustomResourceDefinition+apiextensions.v1.swift b/Sources/Model/apiextensions/v1/CustomResourceDefinition+apiextensions.v1.swift index 7bab8699..e53e588f 100644 --- a/Sources/Model/apiextensions/v1/CustomResourceDefinition+apiextensions.v1.swift +++ b/Sources/Model/apiextensions/v1/CustomResourceDefinition+apiextensions.v1.swift @@ -27,7 +27,7 @@ public extension apiextensions.v1 { /// /// CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. /// - struct CustomResourceDefinition: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct CustomResourceDefinition: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/apiextensions/v1beta1/CustomResourceDefinition+apiextensions.v1beta1.swift b/Sources/Model/apiextensions/v1beta1/CustomResourceDefinition+apiextensions.v1beta1.swift index c905a611..fa67b9eb 100644 --- a/Sources/Model/apiextensions/v1beta1/CustomResourceDefinition+apiextensions.v1beta1.swift +++ b/Sources/Model/apiextensions/v1beta1/CustomResourceDefinition+apiextensions.v1beta1.swift @@ -27,7 +27,7 @@ public extension apiextensions.v1beta1 { /// /// CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.19. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead. /// - struct CustomResourceDefinition: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct CustomResourceDefinition: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/apiregistration/v1/APIService+apiregistration.v1.swift b/Sources/Model/apiregistration/v1/APIService+apiregistration.v1.swift index 33d32cd9..041a41f2 100644 --- a/Sources/Model/apiregistration/v1/APIService+apiregistration.v1.swift +++ b/Sources/Model/apiregistration/v1/APIService+apiregistration.v1.swift @@ -27,7 +27,7 @@ public extension apiregistration.v1 { /// /// APIService represents a server for a particular GroupVersion. Name must be "version.group". /// - struct APIService: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct APIService: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/apiregistration/v1beta1/APIService+apiregistration.v1beta1.swift b/Sources/Model/apiregistration/v1beta1/APIService+apiregistration.v1beta1.swift index 5e8bbcc3..8cb84359 100644 --- a/Sources/Model/apiregistration/v1beta1/APIService+apiregistration.v1beta1.swift +++ b/Sources/Model/apiregistration/v1beta1/APIService+apiregistration.v1beta1.swift @@ -27,7 +27,7 @@ public extension apiregistration.v1beta1 { /// /// APIService represents a server for a particular GroupVersion. Name must be "version.group". /// - struct APIService: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct APIService: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/apps/v1/ControllerRevision+apps.v1.swift b/Sources/Model/apps/v1/ControllerRevision+apps.v1.swift index 26dab14e..1651137d 100644 --- a/Sources/Model/apps/v1/ControllerRevision+apps.v1.swift +++ b/Sources/Model/apps/v1/ControllerRevision+apps.v1.swift @@ -27,7 +27,7 @@ public extension apps.v1 { /// /// ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. /// - struct ControllerRevision: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ControllerRevision: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/apps/v1/DaemonSet+apps.v1.swift b/Sources/Model/apps/v1/DaemonSet+apps.v1.swift index b8eb7f0d..9ad8b29b 100644 --- a/Sources/Model/apps/v1/DaemonSet+apps.v1.swift +++ b/Sources/Model/apps/v1/DaemonSet+apps.v1.swift @@ -27,7 +27,7 @@ public extension apps.v1 { /// /// DaemonSet represents the configuration of a daemon set. /// - struct DaemonSet: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct DaemonSet: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/apps/v1/Deployment+apps.v1.swift b/Sources/Model/apps/v1/Deployment+apps.v1.swift index 58b0f3c9..edd4fbd5 100644 --- a/Sources/Model/apps/v1/Deployment+apps.v1.swift +++ b/Sources/Model/apps/v1/Deployment+apps.v1.swift @@ -27,7 +27,7 @@ public extension apps.v1 { /// /// Deployment enables declarative updates for Pods and ReplicaSets. /// - struct Deployment: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Deployment: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/apps/v1/ReplicaSet+apps.v1.swift b/Sources/Model/apps/v1/ReplicaSet+apps.v1.swift index 7158dfa4..0157d494 100644 --- a/Sources/Model/apps/v1/ReplicaSet+apps.v1.swift +++ b/Sources/Model/apps/v1/ReplicaSet+apps.v1.swift @@ -27,7 +27,7 @@ public extension apps.v1 { /// /// ReplicaSet ensures that a specified number of pod replicas are running at any given time. /// - struct ReplicaSet: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ReplicaSet: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/apps/v1/StatefulSet+apps.v1.swift b/Sources/Model/apps/v1/StatefulSet+apps.v1.swift index 81b95325..0b254bf6 100644 --- a/Sources/Model/apps/v1/StatefulSet+apps.v1.swift +++ b/Sources/Model/apps/v1/StatefulSet+apps.v1.swift @@ -30,7 +30,7 @@ public extension apps.v1 { /// - Storage: As many VolumeClaims as requested. /// The StatefulSet guarantees that a given network identity will always map to the same storage identity. /// - struct StatefulSet: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct StatefulSet: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/authentication/v1/TokenReview+authentication.v1.swift b/Sources/Model/authentication/v1/TokenReview+authentication.v1.swift index 6b81833e..6672127b 100644 --- a/Sources/Model/authentication/v1/TokenReview+authentication.v1.swift +++ b/Sources/Model/authentication/v1/TokenReview+authentication.v1.swift @@ -27,7 +27,7 @@ public extension authentication.v1 { /// /// TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. /// - struct TokenReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct TokenReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ClusterScopedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/authentication/v1beta1/TokenReview+authentication.v1beta1.swift b/Sources/Model/authentication/v1beta1/TokenReview+authentication.v1beta1.swift index cf03cfd9..fc65c19b 100644 --- a/Sources/Model/authentication/v1beta1/TokenReview+authentication.v1beta1.swift +++ b/Sources/Model/authentication/v1beta1/TokenReview+authentication.v1beta1.swift @@ -27,7 +27,7 @@ public extension authentication.v1beta1 { /// /// TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. /// - struct TokenReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct TokenReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ClusterScopedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/authorization/v1/LocalSubjectAccessReview+authorization.v1.swift b/Sources/Model/authorization/v1/LocalSubjectAccessReview+authorization.v1.swift index 105ca09e..d5d7e5e6 100644 --- a/Sources/Model/authorization/v1/LocalSubjectAccessReview+authorization.v1.swift +++ b/Sources/Model/authorization/v1/LocalSubjectAccessReview+authorization.v1.swift @@ -27,7 +27,7 @@ public extension authorization.v1 { /// /// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. /// - struct LocalSubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct LocalSubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, NamespacedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/authorization/v1/SelfSubjectAccessReview+authorization.v1.swift b/Sources/Model/authorization/v1/SelfSubjectAccessReview+authorization.v1.swift index 193ddeda..98aa0fcd 100644 --- a/Sources/Model/authorization/v1/SelfSubjectAccessReview+authorization.v1.swift +++ b/Sources/Model/authorization/v1/SelfSubjectAccessReview+authorization.v1.swift @@ -27,7 +27,7 @@ public extension authorization.v1 { /// /// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action /// - struct SelfSubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct SelfSubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ClusterScopedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/authorization/v1/SelfSubjectRulesReview+authorization.v1.swift b/Sources/Model/authorization/v1/SelfSubjectRulesReview+authorization.v1.swift index cd745016..d8c7570c 100644 --- a/Sources/Model/authorization/v1/SelfSubjectRulesReview+authorization.v1.swift +++ b/Sources/Model/authorization/v1/SelfSubjectRulesReview+authorization.v1.swift @@ -27,7 +27,7 @@ public extension authorization.v1 { /// /// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. /// - struct SelfSubjectRulesReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct SelfSubjectRulesReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ClusterScopedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/authorization/v1/SubjectAccessReview+authorization.v1.swift b/Sources/Model/authorization/v1/SubjectAccessReview+authorization.v1.swift index 2b2a08aa..5888aaaf 100644 --- a/Sources/Model/authorization/v1/SubjectAccessReview+authorization.v1.swift +++ b/Sources/Model/authorization/v1/SubjectAccessReview+authorization.v1.swift @@ -27,7 +27,7 @@ public extension authorization.v1 { /// /// SubjectAccessReview checks whether or not a user or group can perform an action. /// - struct SubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct SubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ClusterScopedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/authorization/v1beta1/LocalSubjectAccessReview+authorization.v1beta1.swift b/Sources/Model/authorization/v1beta1/LocalSubjectAccessReview+authorization.v1beta1.swift index 6ee384f7..e3ab88b0 100644 --- a/Sources/Model/authorization/v1beta1/LocalSubjectAccessReview+authorization.v1beta1.swift +++ b/Sources/Model/authorization/v1beta1/LocalSubjectAccessReview+authorization.v1beta1.swift @@ -27,7 +27,7 @@ public extension authorization.v1beta1 { /// /// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. /// - struct LocalSubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct LocalSubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, NamespacedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/authorization/v1beta1/SelfSubjectAccessReview+authorization.v1beta1.swift b/Sources/Model/authorization/v1beta1/SelfSubjectAccessReview+authorization.v1beta1.swift index ea4ea2d8..9deeb68c 100644 --- a/Sources/Model/authorization/v1beta1/SelfSubjectAccessReview+authorization.v1beta1.swift +++ b/Sources/Model/authorization/v1beta1/SelfSubjectAccessReview+authorization.v1beta1.swift @@ -27,7 +27,7 @@ public extension authorization.v1beta1 { /// /// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action /// - struct SelfSubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct SelfSubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ClusterScopedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/authorization/v1beta1/SelfSubjectRulesReview+authorization.v1beta1.swift b/Sources/Model/authorization/v1beta1/SelfSubjectRulesReview+authorization.v1beta1.swift index b232ba43..dc137ec7 100644 --- a/Sources/Model/authorization/v1beta1/SelfSubjectRulesReview+authorization.v1beta1.swift +++ b/Sources/Model/authorization/v1beta1/SelfSubjectRulesReview+authorization.v1beta1.swift @@ -27,7 +27,7 @@ public extension authorization.v1beta1 { /// /// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. /// - struct SelfSubjectRulesReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct SelfSubjectRulesReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ClusterScopedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/authorization/v1beta1/SubjectAccessReview+authorization.v1beta1.swift b/Sources/Model/authorization/v1beta1/SubjectAccessReview+authorization.v1beta1.swift index c7f4bfd1..67556d97 100644 --- a/Sources/Model/authorization/v1beta1/SubjectAccessReview+authorization.v1beta1.swift +++ b/Sources/Model/authorization/v1beta1/SubjectAccessReview+authorization.v1beta1.swift @@ -27,7 +27,7 @@ public extension authorization.v1beta1 { /// /// SubjectAccessReview checks whether or not a user or group can perform an action. /// - struct SubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct SubjectAccessReview: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ClusterScopedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/autoscaling/v1/HorizontalPodAutoscaler+autoscaling.v1.swift b/Sources/Model/autoscaling/v1/HorizontalPodAutoscaler+autoscaling.v1.swift index 560538f7..a3bb2a24 100644 --- a/Sources/Model/autoscaling/v1/HorizontalPodAutoscaler+autoscaling.v1.swift +++ b/Sources/Model/autoscaling/v1/HorizontalPodAutoscaler+autoscaling.v1.swift @@ -27,7 +27,7 @@ public extension autoscaling.v1 { /// /// configuration of a horizontal pod autoscaler. /// - struct HorizontalPodAutoscaler: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct HorizontalPodAutoscaler: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/autoscaling/v2beta1/HorizontalPodAutoscaler+autoscaling.v2beta1.swift b/Sources/Model/autoscaling/v2beta1/HorizontalPodAutoscaler+autoscaling.v2beta1.swift index fdde2436..27c8483b 100644 --- a/Sources/Model/autoscaling/v2beta1/HorizontalPodAutoscaler+autoscaling.v2beta1.swift +++ b/Sources/Model/autoscaling/v2beta1/HorizontalPodAutoscaler+autoscaling.v2beta1.swift @@ -27,7 +27,7 @@ public extension autoscaling.v2beta1 { /// /// HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. /// - struct HorizontalPodAutoscaler: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct HorizontalPodAutoscaler: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/autoscaling/v2beta2/HorizontalPodAutoscaler+autoscaling.v2beta2.swift b/Sources/Model/autoscaling/v2beta2/HorizontalPodAutoscaler+autoscaling.v2beta2.swift index 80b2d964..0b7f65e6 100644 --- a/Sources/Model/autoscaling/v2beta2/HorizontalPodAutoscaler+autoscaling.v2beta2.swift +++ b/Sources/Model/autoscaling/v2beta2/HorizontalPodAutoscaler+autoscaling.v2beta2.swift @@ -27,7 +27,7 @@ public extension autoscaling.v2beta2 { /// /// HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. /// - struct HorizontalPodAutoscaler: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct HorizontalPodAutoscaler: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/batch/v1/Job+batch.v1.swift b/Sources/Model/batch/v1/Job+batch.v1.swift index 2ba7caa3..4701b877 100644 --- a/Sources/Model/batch/v1/Job+batch.v1.swift +++ b/Sources/Model/batch/v1/Job+batch.v1.swift @@ -27,7 +27,7 @@ public extension batch.v1 { /// /// Job represents the configuration of a single job. /// - struct Job: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Job: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/batch/v1beta1/CronJob+batch.v1beta1.swift b/Sources/Model/batch/v1beta1/CronJob+batch.v1beta1.swift index 83b653bf..73293679 100644 --- a/Sources/Model/batch/v1beta1/CronJob+batch.v1beta1.swift +++ b/Sources/Model/batch/v1beta1/CronJob+batch.v1beta1.swift @@ -27,7 +27,7 @@ public extension batch.v1beta1 { /// /// CronJob represents the configuration of a single cron job. /// - struct CronJob: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct CronJob: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/batch/v2alpha1/CronJob+batch.v2alpha1.swift b/Sources/Model/batch/v2alpha1/CronJob+batch.v2alpha1.swift index 5a352f7f..46bc77bb 100644 --- a/Sources/Model/batch/v2alpha1/CronJob+batch.v2alpha1.swift +++ b/Sources/Model/batch/v2alpha1/CronJob+batch.v2alpha1.swift @@ -27,7 +27,7 @@ public extension batch.v2alpha1 { /// /// CronJob represents the configuration of a single cron job. /// - struct CronJob: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct CronJob: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/certificates/v1beta1/CertificateSigningRequest+certificates.v1beta1.swift b/Sources/Model/certificates/v1beta1/CertificateSigningRequest+certificates.v1beta1.swift index ee520cbe..1394c794 100644 --- a/Sources/Model/certificates/v1beta1/CertificateSigningRequest+certificates.v1beta1.swift +++ b/Sources/Model/certificates/v1beta1/CertificateSigningRequest+certificates.v1beta1.swift @@ -27,7 +27,7 @@ public extension certificates.v1beta1 { /// /// Describes a certificate signing request /// - struct CertificateSigningRequest: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct CertificateSigningRequest: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/coordination/v1/Lease+coordination.v1.swift b/Sources/Model/coordination/v1/Lease+coordination.v1.swift index 7597a054..064611e4 100644 --- a/Sources/Model/coordination/v1/Lease+coordination.v1.swift +++ b/Sources/Model/coordination/v1/Lease+coordination.v1.swift @@ -27,7 +27,7 @@ public extension coordination.v1 { /// /// Lease defines a lease concept. /// - struct Lease: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Lease: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/coordination/v1beta1/Lease+coordination.v1beta1.swift b/Sources/Model/coordination/v1beta1/Lease+coordination.v1beta1.swift index db1224a4..ae484aef 100644 --- a/Sources/Model/coordination/v1beta1/Lease+coordination.v1beta1.swift +++ b/Sources/Model/coordination/v1beta1/Lease+coordination.v1beta1.swift @@ -27,7 +27,7 @@ public extension coordination.v1beta1 { /// /// Lease defines a lease concept. /// - struct Lease: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Lease: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/Binding+core.v1.swift b/Sources/Model/core/v1/Binding+core.v1.swift index c787ca71..49932eee 100644 --- a/Sources/Model/core/v1/Binding+core.v1.swift +++ b/Sources/Model/core/v1/Binding+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. /// - struct Binding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource { + struct Binding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, NamespacedResource { /// /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// diff --git a/Sources/Model/core/v1/ComponentStatus+core.v1.swift b/Sources/Model/core/v1/ComponentStatus+core.v1.swift index 1b091762..87db6c3b 100644 --- a/Sources/Model/core/v1/ComponentStatus+core.v1.swift +++ b/Sources/Model/core/v1/ComponentStatus+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// ComponentStatus (and ComponentStatusList) holds the cluster validation info. /// - struct ComponentStatus: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ComponentStatus: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/ConfigMap+core.v1.swift b/Sources/Model/core/v1/ConfigMap+core.v1.swift index fcb7940d..750db324 100644 --- a/Sources/Model/core/v1/ConfigMap+core.v1.swift +++ b/Sources/Model/core/v1/ConfigMap+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// ConfigMap holds configuration data for pods to consume. /// - struct ConfigMap: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ConfigMap: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/Endpoints+core.v1.swift b/Sources/Model/core/v1/Endpoints+core.v1.swift index dd8e633c..75721f2c 100644 --- a/Sources/Model/core/v1/Endpoints+core.v1.swift +++ b/Sources/Model/core/v1/Endpoints+core.v1.swift @@ -38,7 +38,7 @@ public extension core.v1 { /// }, /// ] /// - struct Endpoints: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Endpoints: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/Event+core.v1.swift b/Sources/Model/core/v1/Event+core.v1.swift index d2d53d77..ba29b134 100644 --- a/Sources/Model/core/v1/Event+core.v1.swift +++ b/Sources/Model/core/v1/Event+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// Event is a report of an event somewhere in the cluster. /// - struct Event: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Event: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/LimitRange+core.v1.swift b/Sources/Model/core/v1/LimitRange+core.v1.swift index 1de24af7..6fbf5626 100644 --- a/Sources/Model/core/v1/LimitRange+core.v1.swift +++ b/Sources/Model/core/v1/LimitRange+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// LimitRange sets resource usage limits for each kind of resource in a Namespace. /// - struct LimitRange: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct LimitRange: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/Namespace+core.v1.swift b/Sources/Model/core/v1/Namespace+core.v1.swift index 63d79792..806ddcf8 100644 --- a/Sources/Model/core/v1/Namespace+core.v1.swift +++ b/Sources/Model/core/v1/Namespace+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// Namespace provides a scope for Names. Use of multiple namespaces is optional. /// - struct Namespace: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Namespace: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/Node+core.v1.swift b/Sources/Model/core/v1/Node+core.v1.swift index aca60d7d..c45d562a 100644 --- a/Sources/Model/core/v1/Node+core.v1.swift +++ b/Sources/Model/core/v1/Node+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). /// - struct Node: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Node: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/PersistentVolume+core.v1.swift b/Sources/Model/core/v1/PersistentVolume+core.v1.swift index 94bc407b..54c53227 100644 --- a/Sources/Model/core/v1/PersistentVolume+core.v1.swift +++ b/Sources/Model/core/v1/PersistentVolume+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes /// - struct PersistentVolume: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct PersistentVolume: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/PersistentVolumeClaim+core.v1.swift b/Sources/Model/core/v1/PersistentVolumeClaim+core.v1.swift index 26c18b81..927aea42 100644 --- a/Sources/Model/core/v1/PersistentVolumeClaim+core.v1.swift +++ b/Sources/Model/core/v1/PersistentVolumeClaim+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// PersistentVolumeClaim is a user's request for and claim to a persistent volume /// - struct PersistentVolumeClaim: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct PersistentVolumeClaim: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/Pod+core.v1.swift b/Sources/Model/core/v1/Pod+core.v1.swift index fc3bcde6..01255b8f 100644 --- a/Sources/Model/core/v1/Pod+core.v1.swift +++ b/Sources/Model/core/v1/Pod+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. /// - struct Pod: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Pod: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/PodTemplate+core.v1.swift b/Sources/Model/core/v1/PodTemplate+core.v1.swift index fa0228eb..7fc9f486 100644 --- a/Sources/Model/core/v1/PodTemplate+core.v1.swift +++ b/Sources/Model/core/v1/PodTemplate+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// PodTemplate describes a template for creating copies of a predefined pod. /// - struct PodTemplate: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct PodTemplate: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/ReplicationController+core.v1.swift b/Sources/Model/core/v1/ReplicationController+core.v1.swift index 8bbe5c90..8cff4107 100644 --- a/Sources/Model/core/v1/ReplicationController+core.v1.swift +++ b/Sources/Model/core/v1/ReplicationController+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// ReplicationController represents the configuration of a replication controller. /// - struct ReplicationController: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ReplicationController: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/ResourceQuota+core.v1.swift b/Sources/Model/core/v1/ResourceQuota+core.v1.swift index f0d43818..899be099 100644 --- a/Sources/Model/core/v1/ResourceQuota+core.v1.swift +++ b/Sources/Model/core/v1/ResourceQuota+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// ResourceQuota sets aggregate quota restrictions enforced per namespace /// - struct ResourceQuota: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ResourceQuota: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/Secret+core.v1.swift b/Sources/Model/core/v1/Secret+core.v1.swift index a34cc6db..3c15a371 100644 --- a/Sources/Model/core/v1/Secret+core.v1.swift +++ b/Sources/Model/core/v1/Secret+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. /// - struct Secret: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Secret: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/Service+core.v1.swift b/Sources/Model/core/v1/Service+core.v1.swift index 8567eb61..1c72286e 100644 --- a/Sources/Model/core/v1/Service+core.v1.swift +++ b/Sources/Model/core/v1/Service+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. /// - struct Service: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Service: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/core/v1/ServiceAccount+core.v1.swift b/Sources/Model/core/v1/ServiceAccount+core.v1.swift index bd1f02cf..bd7ae459 100644 --- a/Sources/Model/core/v1/ServiceAccount+core.v1.swift +++ b/Sources/Model/core/v1/ServiceAccount+core.v1.swift @@ -27,7 +27,7 @@ public extension core.v1 { /// /// ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets /// - struct ServiceAccount: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ServiceAccount: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/discovery/v1beta1/EndpointSlice+discovery.v1beta1.swift b/Sources/Model/discovery/v1beta1/EndpointSlice+discovery.v1beta1.swift index cf0587de..d6c9458a 100644 --- a/Sources/Model/discovery/v1beta1/EndpointSlice+discovery.v1beta1.swift +++ b/Sources/Model/discovery/v1beta1/EndpointSlice+discovery.v1beta1.swift @@ -27,7 +27,7 @@ public extension discovery.v1beta1 { /// /// EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. /// - struct EndpointSlice: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct EndpointSlice: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/events/v1beta1/Event+events.v1beta1.swift b/Sources/Model/events/v1beta1/Event+events.v1beta1.swift index 42dded9b..cde79169 100644 --- a/Sources/Model/events/v1beta1/Event+events.v1beta1.swift +++ b/Sources/Model/events/v1beta1/Event+events.v1beta1.swift @@ -27,7 +27,7 @@ public extension events.v1beta1 { /// /// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. /// - struct Event: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Event: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/extensions/v1beta1/Ingress+extensions.v1beta1.swift b/Sources/Model/extensions/v1beta1/Ingress+extensions.v1beta1.swift index ffa961e4..7a262439 100644 --- a/Sources/Model/extensions/v1beta1/Ingress+extensions.v1beta1.swift +++ b/Sources/Model/extensions/v1beta1/Ingress+extensions.v1beta1.swift @@ -27,7 +27,7 @@ public extension extensions.v1beta1 { /// /// Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information. /// - struct Ingress: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Ingress: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/networking/v1/NetworkPolicy+networking.v1.swift b/Sources/Model/networking/v1/NetworkPolicy+networking.v1.swift index 46adb937..453a5b93 100644 --- a/Sources/Model/networking/v1/NetworkPolicy+networking.v1.swift +++ b/Sources/Model/networking/v1/NetworkPolicy+networking.v1.swift @@ -27,7 +27,7 @@ public extension networking.v1 { /// /// NetworkPolicy describes what network traffic is allowed for a set of Pods /// - struct NetworkPolicy: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct NetworkPolicy: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/networking/v1beta1/Ingress+networking.v1beta1.swift b/Sources/Model/networking/v1beta1/Ingress+networking.v1beta1.swift index 50831cfc..1ac85494 100644 --- a/Sources/Model/networking/v1beta1/Ingress+networking.v1beta1.swift +++ b/Sources/Model/networking/v1beta1/Ingress+networking.v1beta1.swift @@ -27,7 +27,7 @@ public extension networking.v1beta1 { /// /// Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. /// - struct Ingress: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Ingress: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/networking/v1beta1/IngressClass+networking.v1beta1.swift b/Sources/Model/networking/v1beta1/IngressClass+networking.v1beta1.swift index 6ca7887e..0f19adee 100644 --- a/Sources/Model/networking/v1beta1/IngressClass+networking.v1beta1.swift +++ b/Sources/Model/networking/v1beta1/IngressClass+networking.v1beta1.swift @@ -27,7 +27,7 @@ public extension networking.v1beta1 { /// /// IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. /// - struct IngressClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct IngressClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/node/v1alpha1/RuntimeClass+node.v1alpha1.swift b/Sources/Model/node/v1alpha1/RuntimeClass+node.v1alpha1.swift index be172ce9..ad744058 100644 --- a/Sources/Model/node/v1alpha1/RuntimeClass+node.v1alpha1.swift +++ b/Sources/Model/node/v1alpha1/RuntimeClass+node.v1alpha1.swift @@ -27,7 +27,7 @@ public extension node.v1alpha1 { /// /// RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md /// - struct RuntimeClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct RuntimeClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/node/v1beta1/RuntimeClass+node.v1beta1.swift b/Sources/Model/node/v1beta1/RuntimeClass+node.v1beta1.swift index da21fed2..c6b1cc4a 100644 --- a/Sources/Model/node/v1beta1/RuntimeClass+node.v1beta1.swift +++ b/Sources/Model/node/v1beta1/RuntimeClass+node.v1beta1.swift @@ -27,7 +27,7 @@ public extension node.v1beta1 { /// /// RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md /// - struct RuntimeClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct RuntimeClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/policy/v1beta1/PodDisruptionBudget+policy.v1beta1.swift b/Sources/Model/policy/v1beta1/PodDisruptionBudget+policy.v1beta1.swift index 17002617..0c3b98a1 100644 --- a/Sources/Model/policy/v1beta1/PodDisruptionBudget+policy.v1beta1.swift +++ b/Sources/Model/policy/v1beta1/PodDisruptionBudget+policy.v1beta1.swift @@ -27,7 +27,7 @@ public extension policy.v1beta1 { /// /// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods /// - struct PodDisruptionBudget: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct PodDisruptionBudget: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/policy/v1beta1/PodSecurityPolicy+policy.v1beta1.swift b/Sources/Model/policy/v1beta1/PodSecurityPolicy+policy.v1beta1.swift index 4821628a..26d1177a 100644 --- a/Sources/Model/policy/v1beta1/PodSecurityPolicy+policy.v1beta1.swift +++ b/Sources/Model/policy/v1beta1/PodSecurityPolicy+policy.v1beta1.swift @@ -27,7 +27,7 @@ public extension policy.v1beta1 { /// /// PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. /// - struct PodSecurityPolicy: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct PodSecurityPolicy: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1/ClusterRole+rbac.v1.swift b/Sources/Model/rbac/v1/ClusterRole+rbac.v1.swift index bc2110af..a3dd2b5c 100644 --- a/Sources/Model/rbac/v1/ClusterRole+rbac.v1.swift +++ b/Sources/Model/rbac/v1/ClusterRole+rbac.v1.swift @@ -27,7 +27,7 @@ public extension rbac.v1 { /// /// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. /// - struct ClusterRole: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ClusterRole: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1/ClusterRoleBinding+rbac.v1.swift b/Sources/Model/rbac/v1/ClusterRoleBinding+rbac.v1.swift index 00b54e2f..8f2909f0 100644 --- a/Sources/Model/rbac/v1/ClusterRoleBinding+rbac.v1.swift +++ b/Sources/Model/rbac/v1/ClusterRoleBinding+rbac.v1.swift @@ -27,7 +27,7 @@ public extension rbac.v1 { /// /// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. /// - struct ClusterRoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ClusterRoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1/Role+rbac.v1.swift b/Sources/Model/rbac/v1/Role+rbac.v1.swift index 10b199b5..d5fb28ce 100644 --- a/Sources/Model/rbac/v1/Role+rbac.v1.swift +++ b/Sources/Model/rbac/v1/Role+rbac.v1.swift @@ -27,7 +27,7 @@ public extension rbac.v1 { /// /// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. /// - struct Role: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Role: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1/RoleBinding+rbac.v1.swift b/Sources/Model/rbac/v1/RoleBinding+rbac.v1.swift index 2ffd796c..ad40eab4 100644 --- a/Sources/Model/rbac/v1/RoleBinding+rbac.v1.swift +++ b/Sources/Model/rbac/v1/RoleBinding+rbac.v1.swift @@ -27,7 +27,7 @@ public extension rbac.v1 { /// /// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. /// - struct RoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct RoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1alpha1/ClusterRole+rbac.v1alpha1.swift b/Sources/Model/rbac/v1alpha1/ClusterRole+rbac.v1alpha1.swift index 3940d26d..e550e738 100644 --- a/Sources/Model/rbac/v1alpha1/ClusterRole+rbac.v1alpha1.swift +++ b/Sources/Model/rbac/v1alpha1/ClusterRole+rbac.v1alpha1.swift @@ -27,7 +27,7 @@ public extension rbac.v1alpha1 { /// /// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. /// - struct ClusterRole: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ClusterRole: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1alpha1/ClusterRoleBinding+rbac.v1alpha1.swift b/Sources/Model/rbac/v1alpha1/ClusterRoleBinding+rbac.v1alpha1.swift index d2c91962..b5b7d7ba 100644 --- a/Sources/Model/rbac/v1alpha1/ClusterRoleBinding+rbac.v1alpha1.swift +++ b/Sources/Model/rbac/v1alpha1/ClusterRoleBinding+rbac.v1alpha1.swift @@ -27,7 +27,7 @@ public extension rbac.v1alpha1 { /// /// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. /// - struct ClusterRoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ClusterRoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1alpha1/Role+rbac.v1alpha1.swift b/Sources/Model/rbac/v1alpha1/Role+rbac.v1alpha1.swift index f7bcfb3c..dc452113 100644 --- a/Sources/Model/rbac/v1alpha1/Role+rbac.v1alpha1.swift +++ b/Sources/Model/rbac/v1alpha1/Role+rbac.v1alpha1.swift @@ -27,7 +27,7 @@ public extension rbac.v1alpha1 { /// /// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.20. /// - struct Role: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Role: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1alpha1/RoleBinding+rbac.v1alpha1.swift b/Sources/Model/rbac/v1alpha1/RoleBinding+rbac.v1alpha1.swift index 5b5f8935..3e12545b 100644 --- a/Sources/Model/rbac/v1alpha1/RoleBinding+rbac.v1alpha1.swift +++ b/Sources/Model/rbac/v1alpha1/RoleBinding+rbac.v1alpha1.swift @@ -27,7 +27,7 @@ public extension rbac.v1alpha1 { /// /// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.20. /// - struct RoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct RoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1beta1/ClusterRole+rbac.v1beta1.swift b/Sources/Model/rbac/v1beta1/ClusterRole+rbac.v1beta1.swift index 688e0826..550d6ad9 100644 --- a/Sources/Model/rbac/v1beta1/ClusterRole+rbac.v1beta1.swift +++ b/Sources/Model/rbac/v1beta1/ClusterRole+rbac.v1beta1.swift @@ -27,7 +27,7 @@ public extension rbac.v1beta1 { /// /// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. /// - struct ClusterRole: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ClusterRole: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1beta1/ClusterRoleBinding+rbac.v1beta1.swift b/Sources/Model/rbac/v1beta1/ClusterRoleBinding+rbac.v1beta1.swift index 63c407dd..5c1d3f25 100644 --- a/Sources/Model/rbac/v1beta1/ClusterRoleBinding+rbac.v1beta1.swift +++ b/Sources/Model/rbac/v1beta1/ClusterRoleBinding+rbac.v1beta1.swift @@ -27,7 +27,7 @@ public extension rbac.v1beta1 { /// /// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. /// - struct ClusterRoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct ClusterRoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1beta1/Role+rbac.v1beta1.swift b/Sources/Model/rbac/v1beta1/Role+rbac.v1beta1.swift index c7eeea3e..c8ec6550 100644 --- a/Sources/Model/rbac/v1beta1/Role+rbac.v1beta1.swift +++ b/Sources/Model/rbac/v1beta1/Role+rbac.v1beta1.swift @@ -27,7 +27,7 @@ public extension rbac.v1beta1 { /// /// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.20. /// - struct Role: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct Role: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/rbac/v1beta1/RoleBinding+rbac.v1beta1.swift b/Sources/Model/rbac/v1beta1/RoleBinding+rbac.v1beta1.swift index d824b82c..5c5f153c 100644 --- a/Sources/Model/rbac/v1beta1/RoleBinding+rbac.v1beta1.swift +++ b/Sources/Model/rbac/v1beta1/RoleBinding+rbac.v1beta1.swift @@ -27,7 +27,7 @@ public extension rbac.v1beta1 { /// /// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.20. /// - struct RoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct RoleBinding: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, NamespacedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/scheduling/v1/PriorityClass+scheduling.v1.swift b/Sources/Model/scheduling/v1/PriorityClass+scheduling.v1.swift index ebd79185..9a921d8d 100644 --- a/Sources/Model/scheduling/v1/PriorityClass+scheduling.v1.swift +++ b/Sources/Model/scheduling/v1/PriorityClass+scheduling.v1.swift @@ -27,7 +27,7 @@ public extension scheduling.v1 { /// /// PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. /// - struct PriorityClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct PriorityClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/scheduling/v1alpha1/PriorityClass+scheduling.v1alpha1.swift b/Sources/Model/scheduling/v1alpha1/PriorityClass+scheduling.v1alpha1.swift index 046a43fc..153d0508 100644 --- a/Sources/Model/scheduling/v1alpha1/PriorityClass+scheduling.v1alpha1.swift +++ b/Sources/Model/scheduling/v1alpha1/PriorityClass+scheduling.v1alpha1.swift @@ -27,7 +27,7 @@ public extension scheduling.v1alpha1 { /// /// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. /// - struct PriorityClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct PriorityClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/scheduling/v1beta1/PriorityClass+scheduling.v1beta1.swift b/Sources/Model/scheduling/v1beta1/PriorityClass+scheduling.v1beta1.swift index 331778ad..03717f4f 100644 --- a/Sources/Model/scheduling/v1beta1/PriorityClass+scheduling.v1beta1.swift +++ b/Sources/Model/scheduling/v1beta1/PriorityClass+scheduling.v1beta1.swift @@ -27,7 +27,7 @@ public extension scheduling.v1beta1 { /// /// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. /// - struct PriorityClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct PriorityClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/storage/v1/CSIDriver+storage.v1.swift b/Sources/Model/storage/v1/CSIDriver+storage.v1.swift index a42ac001..0243f9f1 100644 --- a/Sources/Model/storage/v1/CSIDriver+storage.v1.swift +++ b/Sources/Model/storage/v1/CSIDriver+storage.v1.swift @@ -27,7 +27,7 @@ public extension storage.v1 { /// /// CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. /// - struct CSIDriver: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct CSIDriver: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/storage/v1/CSINode+storage.v1.swift b/Sources/Model/storage/v1/CSINode+storage.v1.swift index 90bd6a9f..db57eaa7 100644 --- a/Sources/Model/storage/v1/CSINode+storage.v1.swift +++ b/Sources/Model/storage/v1/CSINode+storage.v1.swift @@ -27,7 +27,7 @@ public extension storage.v1 { /// /// CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. /// - struct CSINode: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct CSINode: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/storage/v1/StorageClass+storage.v1.swift b/Sources/Model/storage/v1/StorageClass+storage.v1.swift index 3dbe5e5d..0bdd6cfa 100644 --- a/Sources/Model/storage/v1/StorageClass+storage.v1.swift +++ b/Sources/Model/storage/v1/StorageClass+storage.v1.swift @@ -29,7 +29,7 @@ public extension storage.v1 { /// /// StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. /// - struct StorageClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct StorageClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/storage/v1/VolumeAttachment+storage.v1.swift b/Sources/Model/storage/v1/VolumeAttachment+storage.v1.swift index 5a9dc6f4..73878832 100644 --- a/Sources/Model/storage/v1/VolumeAttachment+storage.v1.swift +++ b/Sources/Model/storage/v1/VolumeAttachment+storage.v1.swift @@ -29,7 +29,7 @@ public extension storage.v1 { /// /// VolumeAttachment objects are non-namespaced. /// - struct VolumeAttachment: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct VolumeAttachment: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/storage/v1alpha1/VolumeAttachment+storage.v1alpha1.swift b/Sources/Model/storage/v1alpha1/VolumeAttachment+storage.v1alpha1.swift index ffe552b7..0806eb12 100644 --- a/Sources/Model/storage/v1alpha1/VolumeAttachment+storage.v1alpha1.swift +++ b/Sources/Model/storage/v1alpha1/VolumeAttachment+storage.v1alpha1.swift @@ -29,7 +29,7 @@ public extension storage.v1alpha1 { /// /// VolumeAttachment objects are non-namespaced. /// - struct VolumeAttachment: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct VolumeAttachment: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/storage/v1beta1/CSIDriver+storage.v1beta1.swift b/Sources/Model/storage/v1beta1/CSIDriver+storage.v1beta1.swift index 8584b9ae..50b2be6b 100644 --- a/Sources/Model/storage/v1beta1/CSIDriver+storage.v1beta1.swift +++ b/Sources/Model/storage/v1beta1/CSIDriver+storage.v1beta1.swift @@ -27,7 +27,7 @@ public extension storage.v1beta1 { /// /// CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. /// - struct CSIDriver: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct CSIDriver: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/storage/v1beta1/CSINode+storage.v1beta1.swift b/Sources/Model/storage/v1beta1/CSINode+storage.v1beta1.swift index 65790692..fb4041f9 100644 --- a/Sources/Model/storage/v1beta1/CSINode+storage.v1beta1.swift +++ b/Sources/Model/storage/v1beta1/CSINode+storage.v1beta1.swift @@ -27,7 +27,7 @@ public extension storage.v1beta1 { /// /// DEPRECATED - This group version of CSINode is deprecated by storage/v1/CSINode. See the release notes for more information. CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. /// - struct CSINode: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct CSINode: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/storage/v1beta1/StorageClass+storage.v1beta1.swift b/Sources/Model/storage/v1beta1/StorageClass+storage.v1beta1.swift index 1c04920b..77c8af8e 100644 --- a/Sources/Model/storage/v1beta1/StorageClass+storage.v1beta1.swift +++ b/Sources/Model/storage/v1beta1/StorageClass+storage.v1beta1.swift @@ -29,7 +29,7 @@ public extension storage.v1beta1 { /// /// StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. /// - struct StorageClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct StorageClass: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type /// diff --git a/Sources/Model/storage/v1beta1/VolumeAttachment+storage.v1beta1.swift b/Sources/Model/storage/v1beta1/VolumeAttachment+storage.v1beta1.swift index 745b1199..dc8a9da3 100644 --- a/Sources/Model/storage/v1beta1/VolumeAttachment+storage.v1beta1.swift +++ b/Sources/Model/storage/v1beta1/VolumeAttachment+storage.v1beta1.swift @@ -29,7 +29,7 @@ public extension storage.v1beta1 { /// /// VolumeAttachment objects are non-namespaced. /// - struct VolumeAttachment: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource { + struct VolumeAttachment: KubernetesResource, KubernetesAPIResource, MetadataHavingResource, ListableResource, ClusterScopedResource { /// /// ListableResource.List associated type ///