# Code generated by skv2. DO NOT EDIT.

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    crd.solo.io/specHash: ad9e1dd2ecf8891d
    crd.solo.io/version: 1.2.0
  labels:
    app: skv2
    app.kubernetes.io/name: skv2
  name: kubernetesclusters.multicluster.solo.io
spec:
  group: multicluster.solo.io
  names:
    kind: KubernetesCluster
    listKind: KubernetesClusterList
    plural: kubernetesclusters
    singular: kubernetescluster
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        properties:
          spec:
            description: Representation of a Kubernetes cluster that has been registered.
            properties:
              clusterDomain:
                description: |-
                  name local DNS suffix used by the cluster.
                  used for building FQDNs for in-cluster services
                  defaults to 'cluster.local'
                type: string
              providerInfo:
                description: Metadata for clusters provisioned from cloud providers.
                oneOf:
                - not:
                    anyOf:
                    - required:
                      - eks
                - required:
                  - eks
                properties:
                  eks:
                    description: Provider info for an AWS EKS provisioned cluster.
                    properties:
                      accountId:
                        description: AWS 12 digit account ID.
                        type: string
                      arn:
                        description: AWS ARN.
                        type: string
                      name:
                        description: EKS resource name.
                        type: string
                      region:
                        description: AWS region.
                        type: string
                    type: object
                type: object
              secretName:
                description: name of the secret which contains the kubeconfig with
                  information to connect to the remote cluster.
                type: string
            type: object
          status:
            properties:
              namespace:
                description: The namespace in which cluster registration resources
                  were created.
                type: string
              policyRules:
                description: The set of PolicyRules attached to ClusterRoles when
                  this cluster was registered.
                items:
                  properties:
                    apiGroups:
                      description: |-
                        APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
                        the enumerated resources in any API group will be allowed.
                        +optional
                      items:
                        type: string
                      type: array
                    nonResourceUrls:
                      description: |-
                        NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
                        Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
                        Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
                        +optional
                      items:
                        type: string
                      type: array
                    resourceNames:
                      description: |-
                        ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
                        +optional
                      items:
                        type: string
                      type: array
                    resources:
                      description: |-
                        Resources is a list of resources this rule applies to.  ResourceAll represents all resources.
                        +optional
                      items:
                        type: string
                      type: array
                    verbs:
                      description: Verbs is a list of Verbs that apply to ALL the
                        ResourceKinds and AttributeRestrictions contained in this
                        rule.  VerbAll represents all kinds.
                      items:
                        type: string
                      type: array
                  type: object
                type: array
              status:
                description: |-
                  List of statuses about the kubernetes cluster.
                  This list allows for multiple applications/pods to record their connection status.
                items:
                  properties:
                    message:
                      description: A human readable message about the current state
                        of the object
                      type: string
                    observedGeneration:
                      description: |-
                        The most recently observed generation of the resource. This value corresponds to the `metadata.generation` of
                        a kubernetes resource
                      format: int64
                      type: integer
                    owner:
                      description: |-
                        (optional) The owner of the status, this value can be used to identify the entity which wrote this status.
                        This is useful in situations where a given resource may have multiple owners.
                      nullable: true
                      type: string
                    processingTime:
                      description: The time at which this status was recorded
                      format: date-time
                      type: string
                    state:
                      description: The current state of the resource
                      enum:
                      - PENDING
                      - PROCESSING
                      - INVALID
                      - FAILED
                      - ACCEPTED
                      type: string
                  type: object
                type: array
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
