<commit_before>apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: elasticsearches.logging.openshift.io
spec:
  group: logging.openshift.io
  names:
    kind: Elasticsearch
    listKind: ElasticsearchList
    plural: elasticsearches
    singular: elasticsearch
  scope: Namespaced
  version: v1alpha1
  validation:
    openAPIV3Schema:
      properties:
        spec:
          description: Specification of the desired behavior of the Elasticsearch cluster
          properties:
            managementState:
              description: Indicator if the resource is 'Managed' or 'Unmanaged' by the operator
              type: string
              enum:
              - "Managed"
              - "Unmanaged"
            redundancyPolicy:
              description: The policy towards data redundancy to specify the number of redundant primary shards
              type: string
              enum:
              - "FullRedundancy"
              - "MultipleRedundancy"
              - "SingleRedundancy"
              - "ZeroRedundancy"
            nodes:
              description: Specification of the different Elasticsearch nodes
              type: array
              items:
                type: object
                properties:
                  roles:
                    description: The specific Elasticsearch cluster roles the node should perform
                    type: object
                  nodeCount:
                    description: Number of nodes to deploy
                    format: int32
                    type: integer
                  nodeSpec:
                    description: Specification of a specific Elasticsearch node
                    properties:
                      image:
                        description: The image to use for the Elasticsearch node
                        type: string
                      resources:
                        description: The resource requirements for the Elasticsearch node
                        properties:
                          limits:
                            description: 'Limits describes the maximum amount of compute
                              resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
                            type: object
                          requests:
                            description: 'Requests describes the minimum amount of compute
                              resources required. If Requests is omitted for a container,
                              it defaults to Limits if that is explicitly specified, otherwise
                              to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
                            type: object
                  nodeSelector:
                    description: Define which Nodes the Pods are scheduled on.
                    type: object
                  storage:
                    description: The type of backing storage that should be used for the node
                    properties:
                      storageClassName:
                        description: The name of the storage class to use with creating the node's PVC
                        type: string
                      size:
                        description: The max storage capacity for the node
                        type: string
            nodeSpec:
              description: Default specification applied to all Elasticsearch nodes
              properties:
                image:
                  description: The image to use for the Elasticsearch nodes
                  type: string
                resources:
                  description: The resource requirements for the Elasticsearch nodes
                  properties:
                    limits:
                      description: 'Limits describes the maximum amount of compute
                        resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
                      type: object
                    requests:
                      description: 'Requests describes the minimum amount of compute
                        resources required. If Requests is omitted for a container,
                        it defaults to Limits if that is explicitly specified, otherwise
                        to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
                      type: object
<commit_msg>Updating elasticsearch crd roles to be array of type object<commit_after>apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: elasticsearches.logging.openshift.io
spec:
  group: logging.openshift.io
  names:
    kind: Elasticsearch
    listKind: ElasticsearchList
    plural: elasticsearches
    singular: elasticsearch
  scope: Namespaced
  version: v1alpha1
  validation:
    openAPIV3Schema:
      properties:
        spec:
          description: Specification of the desired behavior of the Elasticsearch cluster
          properties:
            managementState:
              description: Indicator if the resource is 'Managed' or 'Unmanaged' by the operator
              type: string
              enum:
              - "Managed"
              - "Unmanaged"
            redundancyPolicy:
              description: The policy towards data redundancy to specify the number of redundant primary shards
              type: string
              enum:
              - "FullRedundancy"
              - "MultipleRedundancy"
              - "SingleRedundancy"
              - "ZeroRedundancy"
            nodes:
              description: Specification of the different Elasticsearch nodes
              type: array
              items:
                type: object
                properties:
                  roles:
                    description: The specific Elasticsearch cluster roles the node should perform
                    type: array
                    items:
                      type: object
                  nodeCount:
                    description: Number of nodes to deploy
                    format: int32
                    type: integer
                  nodeSpec:
                    description: Specification of a specific Elasticsearch node
                    properties:
                      image:
                        description: The image to use for the Elasticsearch node
                        type: string
                      resources:
                        description: The resource requirements for the Elasticsearch node
                        properties:
                          limits:
                            description: 'Limits describes the maximum amount of compute
                              resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
                            type: object
                          requests:
                            description: 'Requests describes the minimum amount of compute
                              resources required. If Requests is omitted for a container,
                              it defaults to Limits if that is explicitly specified, otherwise
                              to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
                            type: object
                  nodeSelector:
                    description: Define which Nodes the Pods are scheduled on.
                    type: object
                  storage:
                    description: The type of backing storage that should be used for the node
                    properties:
                      storageClassName:
                        description: The name of the storage class to use with creating the node's PVC
                        type: string
                      size:
                        description: The max storage capacity for the node
                        type: string
            nodeSpec:
              description: Default specification applied to all Elasticsearch nodes
              properties:
                image:
                  description: The image to use for the Elasticsearch nodes
                  type: string
                resources:
                  description: The resource requirements for the Elasticsearch nodes
                  properties:
                    limits:
                      description: 'Limits describes the maximum amount of compute
                        resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
                      type: object
                    requests:
                      description: 'Requests describes the minimum amount of compute
                        resources required. If Requests is omitted for a container,
                        it defaults to Limits if that is explicitly specified, otherwise
                        to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
                      type: object
{'fraction_non_alphanumeric': 0.040314025037131336, 'fraction_numerical': 0.001697432633142372, 'mean_word_length': 1.3265054294175715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3107104', 'n_tokens_mistral': 1865, 'n_tokens_neox': 1748, 'n_words': 692}