# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC require "yaml" require "json" require "../../../apimachinery/apis/meta/v1/object_meta" require "./role_ref" require "./subject" ::K8S::Kubernetes::Resource.define_resource("rbac.authorization.k8s.io", "v1", "RoleBinding", namespace: "::K8S::Api::Rbac::V1", properties: [ {name: "role_ref", kind: ::K8S::Api::Rbac::V1::RoleRef, key: "roleRef", nilable: false, read_only: false, description: "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error."}, {name: "subjects", kind: ::Array(::K8S::Api::Rbac::V1::Subject), key: "subjects", nilable: true, read_only: false, description: "Subjects holds references to the objects the role applies to."}, ], description: "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.", versions: [{group: "rbac.authorization.k8s.io", kind: "RoleBinding", version: "v1"}], )