apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: navconfigurations.foundation.ibm.com
spec:
  group: foundation.ibm.com
  names:
    kind: NavConfiguration
    listKind: NavconfigurationList
    plural: navconfigurations
    singular: navconfiguration
  scope: Namespaced
  versions:
  - name: v1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        description: Navconfiguration is the Schema for the navconfigurations 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: NavconfigurationSpec defines the desired state of Navconfiguration
            properties:
              about:
                description: Customizations for the about modal
                properties:
                  copyright:
                    description: Copyright string for the cloud pak
                    type: string
                  edition:
                    description: Edition of the cloud pak
                    type: string
                  licenses:
                    description: List of licenses we ship with the cloud pak
                    items:
                      type: string
                    type: array
                  logoUrl:
                    description: URL of the Logo on the About page for the cloud pak
                    type: string
                  version:
                    description: Version of the cloud pak
                    type: string
                type: object
              header:
                description: Customizations for the common web ui header
                properties:
                  detectHeaderItems:
                    description: An object that maps header items to service detection values, such as service name, label selector, and namespace. The only supported header item is 'search'.
                    properties:
                      additionalProperties:
                        properties:
                          detectionLabelSelector:
                            type: string
                          detectionNamespace:
                            type: string
                          detectionServiceName:
                            type: string
                          isAuthorized:
                            items:
                              type: string
                            type: array
                        type: object
                    type: object
                  disabledItems:
                    description: An array of header items that should be disabled when running within this CR context. Valid values are 'catalog', 'createResource', 'bookmark'
                    items:
                      type: string
                    type: array
                  docUrlMapping:
                    description: URL of the Knowledge center page for the cloud pak
                    type: string
                  logoAltText:
                    description: Alternate text of the shared header logo for cloud pak
                    type: string
                  logoHeight:
                    description: Height of the logo for the login page in pixels
                    type: string
                  logoUrl:
                    description: The URL that provides the login page logo. Must be an unprotected URL.
                    type: string
                  logoWidth:
                    description: Width of the logo for the login page in pixels
                    type: string
                type: object
              license:
                description: SwitcherItemSpec defines the desired state of SwitcherItem
                properties:
                  accept:
                    type: boolean
                type: object
              login:
                description: Customizations for the login page
                properties:
                  loginDialog:
                    properties:
                      acceptText:
                        description: Text that will display as the accept button text
                        type: string
                      dialogText:
                        description: Text that will display as the content of the user acceptance dialog on the login page
                        type: string
                      enable:
                        description: This value is used to enable/disable the user acceptance dialog on the login page
                        type: boolean
                      headerText:
                        description: Text that will display as the title of the user acceptance dialog on the login page
                        type: string
                    type: object
                  logoAltText:
                    description: Alternate text of the shared header logo for cloud pak
                    type: string
                  logoHeight:
                    description: Height of the shared header logo in pixels
                    type: string
                  logoUrl:
                    description: URL of the shared header logo for the cloud pak
                    type: string
                  logoWidth:
                    description: Width of the shared header logo in pixels
                    type: string
                type: object
              logoutRedirects:
                description: A list a URLs we make requests to logout the users of all applications within the cloudpack.
                items:
                  type: string
                type: array
              navItems:
                description: Navigation items for the common web ui header as defined by the cloud paks
                items:
                  properties:
                    detectionServiceName:
                      description: Informs the shared web console detection service to use the serviceName for auto discovery. Value should be true or false
                      x-kubernetes-preserve-unknown-fields: true
                    iconUrl:
                      description: URL of the icon that will display for the top level parents.
                      type: string
                    id:
                      description: Id of the navigation item, must be unique
                      type: string
                    isAuthorized:
                      description: A list of authorized roles for the user
                      items:
                        type: string
                      type: array
                    label:
                      description: label of the navigation item
                      type: string
                    namespace:
                      description: Namespace where the microservice associated with this item is running. Used with service detection
                      type: string
                    parentId:
                      description: ID of the parent this child item will be nested under
                      type: string
                    serviceId:
                      description: Must be unique from a different microservice link. But the service id should remain the same for all links running on the same microservice for rendering purposes.
                      type: string
                    serviceName:
                      description: Name of the service running in the namespace above tied to the deployment/daemonset. Used for service detection
                      type: string
                    target:
                      description: name of the tab or _blank where the navigation item will launch within the window
                      type: string
                    url:
                      description: URL of the nav item. It can either but an FQDN or a relative path based on the ingress of the cluster
                      type: string
                  type: object
                type: array
              operatorVersion:
                type: string
              version:
                type: string
            type: object
          status:
            description: NavconfigurationStatus defines the observed state of Navconfiguration
            properties:
              versions:
                properties:
                  reconciled:
                    type: string
                type: object
            type: object
        type: object
    subresources:
      status: {}