apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.12.1
  creationTimestamp: null
  name: sonarpermissiontemplates.edp.epam.com
spec:
  group: edp.epam.com
  names:
    kind: SonarPermissionTemplate
    listKind: SonarPermissionTemplateList
    plural: sonarpermissiontemplates
    singular: sonarpermissiontemplate
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        description: SonarPermissionTemplate is the Schema for the sonar permission
          template API.
        properties:
          apiVersion:
            description: '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'
            type: string
          kind:
            description: 'Kind is a string value representing the REST resource this
              object represents. Servers may infer this from the endpoint the client
              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
            type: string
          metadata:
            type: object
          spec:
            description: SonarPermissionTemplateSpec defines the desired state of
              SonarPermissionTemplate.
            properties:
              default:
                description: Default is a flag to set permission template as default.
                  Only one permission template can be default. If several permission
                  templates have default flag, the random one will be chosen. Default
                  permission template can't be deleted. You need to set another permission
                  template as default before.
                example: "true"
                type: boolean
              description:
                description: Description of sonar permission template.
                example: Default permission template for new users
                type: string
              groupsPermissions:
                additionalProperties:
                  items:
                    type: string
                  type: array
                description: GroupsPermissions is a map of groups and permissions
                  assigned to them.
                example:
                  sonar-users:
                  - codeviewer
                  - scan
                nullable: true
                type: object
              name:
                description: Name is a name of permission template. Name should be
                  unique across all permission templates. Do not edit this field after
                  creation. Otherwise, the permission template will be recreated.
                example: sonar-users-tmpl
                maxLength: 100
                type: string
              projectKeyPattern:
                description: ProjectKeyPattern is key pattern. Must be a valid Java
                  regular expression.
                example: finance.*
                type: string
              sonarRef:
                description: SonarRef is a reference to Sonar custom resource.
                properties:
                  kind:
                    default: Sonar
                    description: Kind specifies the kind of the Sonar resource.
                    type: string
                  name:
                    description: Name specifies the name of the Sonar resource.
                    type: string
                required:
                - name
                type: object
            required:
            - name
            - sonarRef
            type: object
          status:
            description: SonarPermissionTemplateStatus defines the observed state
              of SonarPermissionTemplate.
            properties:
              error:
                description: Error is an error message if something went wrong.
                type: string
              value:
                description: Value is a status of the permission template.
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: null
  storedVersions: null
