apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: kialis.kiali.io
spec:
  group: kiali.io
  names:
    kind: Kiali
    listKind: KialiList
    plural: kialis
    singular: kiali
  scope: Namespaced
  versions:
  - name: v1alpha1
    served: true
    storage: true
    subresources:
      status: {}
    schema:
      openAPIV3Schema:
        type: object
        properties:
          status:
            description: "The processing status of this CR as reported by the Kiali operator."
            type: object
            x-kubernetes-preserve-unknown-fields: true
          spec:
            description: "This is the CRD for the resources called Kiali CRs. The Kiali Operator will watch for resources of this type and when it detects a Kiali CR has been added, deleted, or modified, it will install, uninstall, and update the associated Kiali Server installation. The settings here will configure the Kiali Server as well as the Kiali Operator. All of these settings will be stored in the Kiali ConfigMap. Do not modify the ConfigMap; it will be managed by the Kiali Operator. Only modify the Kiali CR when you want to change a configuration setting."
            type: object
            properties:
              additional_display_details:
                description: |
                  A list of additional details that Kiali will look for in annotations. When found on any workload or service, Kiali will display the additional details in the respective workload or service details page. This is typically used to inject some CI metadata or documentation links into Kiali views. For example, by default, Kiali will recognize these annotations on a service or workload (e.g. a Deployment, StatefulSet, etc.):
                  ```
                  annotations:
                    kiali.io/api-spec: http://list/to/my/api/doc
                    kiali.io/api-type: rest
                  ```
                  Note that if you change this setting for your own custom annotations, keep in mind that it would override the current default. So you would have to add the default setting as shown in the example CR if you want to preserve the default links.
                type: array
                items:
                  required: ["title", "annotation"]
                  type: object
                  properties:
                    title:
                      description: "The title of the link that Kiali will display. The link will go to the URL specified in the value of the configured `annotation`."
                      type: string
                    annotation:
                      description: "The name of the annotation whose value is a URL to additional documentation useful to the user."
                      type: string
                    icon_annotation:
                      description: "The name of the annotation whose value is used to determine what icon to display. The annotation name itself can be anything, but note that the value of that annotation must be one of: `rest`, `grpc`, and `graphql` - any other value is ignored."
                      type: string

              installation_tag:
                description: "Tag used to identify a particular instance/installation of the Kiali server. This is merely a human-readable string that will be used within Kiali to help a user identify the Kiali being used (e.g. in the Kiali UI title bar). See `deployment.instance_name` for the setting used to customize Kiali resource names that are created."
                type: string

              istio_namespace:
                description: "The namespace where Istio is installed. If left empty, it is assumed to be the same namespace as where Kiali is installed (i.e. `deployment.namespace`)."
                type: string

              version:
                description: |
                  The version of the Ansible playbook to execute in order to install that version of Kiali.
                  It is rare you will want to set this - if you are thinking of setting this, know what you are doing first.
                  The only supported value today is `default`.

                  If not specified, a default version of Kiali will be installed which will be the most recent release of Kiali.
                  Refer to this file to see where these values are defined in the master branch,
                  https://github.com/kiali/kiali-operator/tree/master/playbooks/default-supported-images.yml

                  This version setting affects the defaults of the deployment.image_name and
                  deployment.image_version settings. See the comments for those settings
                  below for additional details. But in short, this version setting will
                  dictate which version of the Kiali image will be deployed by default.
                  Note that if you explicitly set deployment.image_name and/or
                  deployment.image_version you are responsible for ensuring those settings
                  are compatible with this setting (i.e. the Kiali image must be compatible
                  with the rest of the configuration and resources the operator will install).
                type: string

              api:
                type: object
                properties:
                  namespaces:
                    description: "Settings that control what namespaces are returned by Kiali."
                    type: object
                    properties:
                      exclude:
                        description: "A list of namespaces to be excluded from the list of namespaces provided by the Kiali API and Kiali UI. Regex is supported. This does not affect explicit namespace access."
                        type: array
                        items:
                          type: string
                      label_selector:
                        description: |
                          A Kubernetes label selector (e.g. `myLabel=myValue`) which is used when fetching the list of
                          available namespaces. This does not affect explicit namespace access.

                          If `deployment.accessible_namespaces` does not have the special value of `'**'`
                          then the Kiali operator will add a new label to all accessible namespaces - that new
                          label will be this `label_selector`.

                          Note that if you do not set this `label_selector` setting but `deployment.accessible_namespaces`
                          does not have the special "all namespaces" entry of `'**'` then this `label_selector` will be set
                          to a default value of `kiali.io/[<deployment.instance_name>.]member-of=<deployment.namespace>`
                          where `[<deployment.instance_name>.]` is the instance name assigned to the Kiali installation
                          if it is not the default 'kiali' (otherwise, this is omitted) and `<deployment.namespace>`
                          is the namespace where Kiali is to be installed.
                        type: string

              auth:
                type: object
                properties:
                  strategy:
                    description: |
                      Determines what authentication strategy to use when users log into Kiali.
                      Options are `anonymous`, `token`, `openshift`, `openid`, or `header`.

                      * Choose `anonymous` to allow full access to Kiali without requiring any credentials.
                      * Choose `token` to allow access to Kiali using service account tokens, which controls
                      access based on RBAC roles assigned to the service account.
                      * Choose `openshift` to use the OpenShift OAuth login which controls access based on
                      the individual's RBAC roles in OpenShift. Not valid for non-OpenShift environments.
                      * Choose `openid` to enable OpenID Connect-based authentication. Your cluster is required to
                      be configured to accept the tokens issued by your IdP. There are additional required
                      configurations for this strategy. See below for the additional OpenID configuration section.
                      * Choose `header` when Kiali is running behind a reverse proxy that will inject an
                      Authorization header and potentially impersonation headers.

                      When empty, this value will default to `openshift` on OpenShift and `token` on other Kubernetes environments.
                    type: string
                    enum: ["","anonymous","token","openshift","openid","header"]
                  openid:
                    description: "To learn more about these settings and how to configure the OpenId authentication strategy, read the documentation at https://kiali.io/docs/configuration/authentication/openid/"
                    type: object
                    properties:
                      additional_request_params:
                        type: object
                        x-kubernetes-preserve-unknown-fields: true
                      allowed_domains:
                        type: array
                        items:
                          type: string
                      api_proxy:
                        type: string
                      api_proxy_ca_data:
                        type: string
                      api_token:
                        type: string
                      authentication_timeout:
                        type: integer
                      authorization_endpoint:
                        type: string
                      client_id:
                        type: string
                      disable_rbac:
                        type: boolean
                      http_proxy:
                        type: string
                      https_proxy:
                        type: string
                      insecure_skip_verify_tls:
                        type: boolean
                      issuer_uri:
                        type: string
                      scopes:
                        type: array
                        items:
                          type: string
                      username_claim:
                        type: string
                  openshift:
                    description: "To learn more about these settings and how to configure the OpenShift authentication strategy, read the documentation at https://kiali.io/docs/configuration/authentication/openshift/"
                    type: object
                    properties:
                      client_id_prefix:
                        description: "The Route resource name and OAuthClient resource name will have this value as its prefix. This value normally should never change. The installer will ensure this value is set correctly."
                        type: string

              custom_dashboards:
                description: |
                  A list of user-defined custom monitoring dashboards that you can use to generate metrics charts
                  for your applications. The server has some built-in dashboards; if you define a custom dashboard here
                  with the same name as a built-in dashboard, your custom dashboard takes precedence and will overwrite
                  the built-in dashboard. You can disable one or more of the built-in dashboards by simply defining an
                  empty dashboard.

                  An example of an additional user-defined dashboard,
                  ```
                  - name: myapp
                    title: My App Metrics
                    items:
                    - chart:
                        name: "Thread Count"
                        spans: 4
                        metricName: "thread-count"
                        dataType: "raw"
                  ```

                  An example of disabling a built-in dashboard (in this case, disabling the Envoy dashboard),
                  ```
                  - name: envoy
                  ```

                  To learn more about custom monitoring dashboards, see the documentation at https://kiali.io/docs/configuration/custom-dashboard/
                type: array
                items:
                  type: object
                  x-kubernetes-preserve-unknown-fields: true

              deployment:
                type: object
                properties:
                  accessible_namespaces:
                    description: "A list of namespaces Kiali is to be given access to. These namespaces have service mesh components that are to be observed by Kiali. You can provide names using regex expressions matched against all namespaces the operator can see. The default makes all namespaces accessible except for some internal namespaces that typically should be ignored. NOTE! If this has an entry with the special value of `'**'` (two asterisks), that will denote you want Kiali to be given access to all namespaces via a single cluster role (if using this special value of `'**'`, you are required to have already granted the operator permissions to create cluster roles and cluster role bindings)."
                    type: array
                    items:
                      type: string
                  additional_service_yaml:
                    description: "Additional custom yaml to add to the service definition. This is used mainly to customize the service type. For example, if the `deployment.service_type` is set to 'LoadBalancer' and you want to set the loadBalancerIP, you can do so here with: `additional_service_yaml: { 'loadBalancerIP': '78.11.24.19' }`. Another example would be if the `deployment.service_type` is set to 'ExternalName' you will need to configure the name via: `additional_service_yaml: { 'externalName': 'my.kiali.example.com' }`. A final example would be if external IPs need to be set: `additional_service_yaml: { 'externalIPs': ['80.11.12.10'] }`"
                    type: object
                    x-kubernetes-preserve-unknown-fields: true
                  affinity:
                    description: "Affinity definitions that are to be used to define the nodes where the Kiali pod should be constrained. See the Kubernetes documentation on Assigning Pods to Nodes for the proper syntax for these three different affinity types."
                    type: object
                    properties:
                      node:
                        type: object
                        x-kubernetes-preserve-unknown-fields: true
                      pod:
                        type: object
                        x-kubernetes-preserve-unknown-fields: true
                      pod_anti:
                        type: object
                        x-kubernetes-preserve-unknown-fields: true
                  configmap_annotations:
                    description: "Custom annotations to be created on the Kiali ConfigMap."
                    type: object
                    x-kubernetes-preserve-unknown-fields: true
                  custom_secrets:
                    description: |
                      Defines additional secrets that are to be mounted in the Kiali pod.

                      These are useful to contain certs that are used by Kiali to securely connect to third party systems
                      (for example, see `external_services.tracing.auth.ca_file`).

                      These secrets must be created by an external mechanism. Kiali will not generate these secrets; it
                      is assumed these secrets are externally managed. You can define 0, 1, or more secrets.
                      An example configuration is,
                      ```
                      custom_secrets:
                      - name: mysecret
                        mount: /mysecret-path
                      - name: my-other-secret
                        mount: /my-other-secret-location
                        optional: true
                      ```
                    type: array
                    items:
                      required: ["name", "mount"]
                      type: object
                      properties:
                        name:
                          description: "The name of the secret that is to be mounted to the Kiali pod's file system. The name of the custom secret must not be the same name as one created by the operator. Names such as `kiali`, `kiali-cert-secret`, and `kiali-cabundle` should not be used as a custom secret name because the operator may want to create one with one of those names."
                          type: string
                        mount:
                          description: "The file path location where the secret content will be mounted. The custom secret cannot be mounted on a path that the operator will use to mount its secrets. Make sure you set your custom secret mount path to a unique, unused path. Paths such as `/kiali-configuration`, `/kiali-cert`, `/kiali-cabundle`, and `/kiali-secret` should not be used as mount paths for custom secrets because the operator may want to use one of those paths."
                          type: string
                        optional:
                          description: "Indicates if the secret may or may not exist at the time the Kiali pod starts. This will default to 'false' if not specified."
                          type: boolean
                  hpa:
                    description: |
                      Determines what (if any) HorizontalPodAutoscaler should be created to autoscale the Kiali pod.
                      A typical way to configure HPA for Kiali is,
                      ```
                      hpa:
                        api_version: "autoscaling/v2beta2"
                        spec:
                          maxReplicas: 2
                          minReplicas: 1
                          targetCPUUtilizationPercentage: 80
                      ```
                    type: object
                    properties:
                      api_version:
                        description: "A specific HPA API version that can be specified in case there is some HPA feature you want to use that is only supported in that specific version."
                        type: string
                      spec:
                        description: "The `spec` specified here will be placed in the created HPA resource's 'spec' section. If `spec` is left empty, no HPA resource will be created. Note that you must not specify the 'scaleTargetRef' section in `spec`; the Kiali Operator will populate that for you."
                        type: object
                        x-kubernetes-preserve-unknown-fields: true
                  host_aliases:
                    description: |
                      This is content for the Kubernetes 'hostAliases' setting for the Kiali server.
                      This allows you to modify the Kiali server pod '/etc/hosts' file.
                      A typical way to configure this setting is,
                      ```
                      host_aliases:
                      - ip: 192.168.1.100
                        hostnames:
                        - "foo.local"
                        - "bar.local"
                      ```
                      For details on the content of this setting, see https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/#adding-additional-entries-with-hostaliases
                    type: array
                    items:
                      type: object
                      properties:
                        ip:
                          type: string
                        hostnames:
                          type: array
                          items:
                            type: string
                  image_digest:
                    description: "If `deployment.image_version` is a digest hash, this value indicates what type of digest it is. A typical value would be 'sha256'. Note: do NOT prefix this value with a '@'."
                    type: string
                  image_name:
                    description: "Determines which Kiali image to download and install. If you set this to a specific name (i.e. you do not leave it as the default empty string), you must make sure that image is supported by the operator. If empty, the operator will use a known supported image name based on which `version` was defined. Note that, as a security measure, a cluster admin may have configured the Kiali operator to ignore this setting. A cluster admin may do this to ensure the Kiali operator only installs a single, specific Kiali version, thus this setting may have no effect depending on how the operator itself was configured."
                    type: string
                  image_pull_policy:
                    description: "The Kubernetes pull policy for the Kiali deployment. This is overridden to be 'Always' if `deployment.image_version` is set to 'latest'."
                    type: string
                  image_pull_secrets:
                    description: "The names of the secrets to be used when container images are to be pulled."
                    type: array
                    items:
                      type: string
                  image_version:
                    description: |
                      Determines which version of Kiali to install.
                      Choose 'lastrelease' to use the last Kiali release.
                      Choose 'latest' to use the latest image (which may or may not be a released version of Kiali).
                      Choose 'operator_version' to use the image whose version is the same as the operator version.
                      Otherwise, you can set this to any valid Kiali version (such as 'v1.0') or any valid Kiali
                      digest hash (if you set this to a digest hash, you must indicate the digest in `deployment.image_digest`).

                      Note that if this is set to 'latest' then the `deployment.image_pull_policy` will be set to 'Always'.

                      If you set this to a specific version (i.e. you do not leave it as the default empty string),
                      you must make sure that image is supported by the operator.

                      If empty, the operator will use a known supported image version based on which 'version' was defined.
                      Note that, as a security measure, a cluster admin may have configured the Kiali operator to
                      ignore this setting. A cluster admin may do this to ensure the Kiali operator only installs
                      a single, specific Kiali version, thus this setting may have no effect depending on how the
                      operator itself was configured.
                    type: string
                  ingress:
                    description: "Configures if/how the Kiali endpoint should be exposed externally."
                    type: object
                    properties:
                      additional_labels:
                        description: "Additional labels to add to the Ingress (or Route if on OpenShift). These are added to the labels that are created by default; these do not override the default labels."
                        type: object
                        x-kubernetes-preserve-unknown-fields: true
                      class_name:
                        description: "If `class_name` is a non-empty string, it will be used as the 'spec.ingressClassName' in the created Kubernetes Ingress resource. This setting is ignored if on OpenShift. This is also ignored if `override_yaml.spec` is defined (i.e. you must define the 'ingressClassName' directly in your override yaml)."
                        type: string
                      enabled:
                        description: "Determines if the Kiali endpoint should be exposed externally. If 'true', an Ingress will be created if on Kubernetes or a Route if on OpenShift. If left undefined, this will be 'false' on Kubernetes and 'true' on OpenShift."
                        type: boolean
                      override_yaml:
                        description: |
                          Because an Ingress into a cluster can vary wildly in its desired configuration,
                          this setting provides a way to override complete portions of the Ingress resource
                          configuration (Ingress on Kubernetes and Route on OpenShift). It is up to the user
                          to ensure this override YAML configuration is valid and supports the cluster environment
                          since the operator will blindly copy this custom configuration into the resource it
                          creates.

                          This setting is not used if `deployment.ingress.enabled` is set to 'false'.
                          Note that only 'metadata.annotations' and 'spec' is valid and only they will
                          be used to override those same sections in the created resource. You can define
                          either one or both.

                          Note that `override_yaml.metadata.labels` is not allowed - you cannot override the labels; to add
                          labels to the default set of labels, use the `deployment.ingress.additional_labels` setting.
                          Example,
                          ```
                          override_yaml:
                            metadata:
                              annotations:
                                nginx.ingress.kubernetes.io/secure-backends: "true"
                                nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
                            spec:
                              rules:
                              - http:
                                  paths:
                                  - path: /kiali
                                    pathType: Prefix
                                    backend:
                                      service
                                        name: "kiali"
                                        port: 
                                          number: 20001
                          ```
                        type: object
                        properties:
                          metadata:
                            type: object
                            properties:
                              annotations:
                                type: object
                                x-kubernetes-preserve-unknown-fields: true
                          spec:
                            type: object
                            x-kubernetes-preserve-unknown-fields: true
                  instance_name:
                    description: "The instance name of this Kiali installation. This instance name will be the prefix prepended to the names of all Kiali resources created by the operator and will be used to label those resources as belonging to this Kiali installation instance. You cannot change this instance name after a Kiali CR is created. If you attempt to change it, the operator will abort with an error. If you want to change it, you must first delete the original Kiali CR and create a new one. Note that this does not affect the name of the auto-generated signing key secret. If you do not supply a signing key, the operator will create one for you in a secret, but that secret will always be named 'kiali-signing-key' and shared across all Kiali instances in the same deployment namespace. If you want a different signing key secret, you are free to create your own and tell the operator about it via `login_token.signing_key`. See the docs on that setting for more details. Note also that if you are setting this value, you may also want to change the `installation_tag` setting, but this is not required."
                    type: string
                  logger:
                    description: "Configures the logger that emits messages to the Kiali server pod logs."
                    type: object
                    properties:
                      log_level:
                        description: "The lowest priority of messages to log. Must be one of: `trace`, `debug`, `info`, `warn`, `error`, or `fatal`."
                        type: string
                        enum: ["trace","debug","info","warn","error","fatal"]
                      log_format:
                        description: "Indicates if the logs should be written with one log message per line or using a JSON format. Must be one of: `text` or `json`."
                        type: string
                        enum: ["text","json"]
                      sampler_rate:
                        description: "With this setting every sampler_rate-th message will be logged. By default, every message is logged. As an example, setting this to `'2'` means every other message will be logged. The value of this setting is a string but must be parsable as an integer."
                        type: string
                        pattern: "^[0-9]+$"
                      time_field_format:
                        description: "The log message timestamp format. This supports a golang time format (see https://golang.org/pkg/time/)"
                        type: string
                  namespace:
                    description: "The namespace into which Kiali is to be installed. If this is empty or not defined, the default will be the namespace where the Kiali CR is located."
                    type: string
                  node_selector:
                    description: "A set of node labels that dictate onto which node the Kiali pod will be deployed."
                    type: object
                    x-kubernetes-preserve-unknown-fields: true
                  pod_annotations:
                    description: "Custom annotations to be created on the Kiali pod."
                    type: object
                    x-kubernetes-preserve-unknown-fields: true
                  pod_labels:
                    description: |
                      Custom labels to be created on the Kiali pod.
                      An example use for this setting is to inject an Istio sidecar such as,
                      ```
                      sidecar.istio.io/inject: "true"
                      ```
                    type: object
                    x-kubernetes-preserve-unknown-fields: true
                  priority_class_name:
                    description: "The priorityClassName used to assign the priority of the Kiali pod."
                    type: string
                  replicas:
                    description: "The replica count for the Kiail deployment."
                    type: integer
                  resources:
                    description: |
                       Defines compute resources that are to be given to the Kiali pod's container. The value is a dict as defined by Kubernetes. See the Kubernetes documentation (https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container).
                       If you set this to an empty dict (`{}`) then no resources will be defined in the Deployment.
                       If you do not set this at all, the default is,
                       ```
                       requests:
                         cpu: "10m"
                         memory: "64Mi"
                       limits:
                         memory: "1Gi"
                       ```
                    type: object
                    x-kubernetes-preserve-unknown-fields: true
                  secret_name:
                    description: "The name of a secret used by the Kiali. This secret is optionally used when configuring the OpenID authentication strategy. Consult the OpenID docs for more information at https://kiali.io/docs/configuration/authentication/openid/"
                    type: string
                  service_annotations:
                    description: "Custom annotations to be created on the Kiali Service resource."
                    type: object
                    x-kubernetes-preserve-unknown-fields: true
                  service_type:
                    description: "The Kiali service type. Kubernetes determines what values are valid. Common values are 'NodePort', 'ClusterIP', and 'LoadBalancer'."
                    type: string
                  tolerations:
                    description: "A list of tolerations which declare which node taints Kiali can tolerate. See the Kubernetes documentation on Taints and Tolerations for more details."
                    type: array
                    items:
                      type: object
                      x-kubernetes-preserve-unknown-fields: true
                  verbose_mode:
                    description: "DEPRECATED! Determines which priority levels of log messages Kiali will output. Use `deployment.logger` settings instead."
                    type: string
                  version_label:
                    description: |
                      Kiali resources will be assigned a 'version' label when they are deployed.
                      This setting determines what value those 'version' labels will have.
                      When empty, its default will be determined as follows,

                      * If `deployment.image_version` is 'latest', `version_label` will be fixed to 'master'.
                      * If `deployment.image_version` is 'lastrelease', `version_label` will be fixed to the last Kiali release version string.
                      * If `deployment.image_version` is anything else, `version_label` will be that value, too.
                    type: string
                  view_only_mode:
                    description: "When true, Kiali will be in 'view only' mode, allowing the user to view and retrieve management and monitoring data for the service mesh, but not allow the user to modify the service mesh."
                    type: boolean

              external_services:
                description: |
                  These external service configuration settings define how to connect to the external services
                  like Prometheus, Grafana, and Jaeger.

                  Regarding sensitive values in the external_services 'auth' sections:
                  Some external services configured below support an 'auth' sub-section in order to tell Kiali
                  how it should authenticate with the external services. Credentials used to authenticate Kiali
                  to those external services can be defined in the `auth.password` and `auth.token` values
                  within the `auth` sub-section. Because these are sensitive values, you may not want to declare
                  the actual credentials here in the Kiali CR. In this case, you may store the actual password
                  or token string in a Kubernetes secret. If you do, you need to set the `auth.password` or
                  `auth.token` to a value in the format `secret:<secretName>:<secretKey>` where `<secretName>`
                  is the name of the secret object that Kiali can access, and `<secretKey>` is the name of the
                  key within the named secret that contains the actual password or token string. For example,
                  if Grafana requires a password, you can store that password in a secret named 'myGrafanaCredentials'
                  in a key named 'myGrafanaPw'. In this case, you would set `external_services.grafana.auth.password`
                  to `secret:myGrafanaCredentials:myGrafanaPw`.
                type: object
                properties:
                  custom_dashboards:
                    description: "Settings for enabling and discovering custom dashboards."
                    type: object
                    properties:
                      discovery_auto_threshold:
                        description: "Threshold of the number of pods, for a given Application or Workload, above which dashboards discovery will be skipped. This setting only takes effect when `discovery_enabled` is set to 'auto'."
                        type: integer
                      discovery_enabled:
                        description: "Enable, disable or set 'auto' mode to the dashboards discovery process. If set to 'true', Kiali will always try to discover dashboards based on metrics. Note that this can generate performance penalties while discovering dashboards for workloads having many pods (thus many metrics). When set to 'auto', Kiali will skip dashboards discovery for workloads with more than a configured threshold of pods (see `discovery_auto_threshold`). When discovery is disabled or auto/skipped, it is still possible to tie workloads with dashboards through annotations on pods (refer to the doc https://kiali.io/docs/configuration/custom-dashboard/#pod-annotations). Value must be one of: `true`, `false`, `auto`."
                        type: string
                      enabled:
                        description: "Enable or disable custom dashboards, including the dashboards discovery process."
                        type: boolean
                      is_core:
                        description: "Used in the Components health feature. When true, the unhealthy scenarios will be raised as errors. Otherwise, they will be raised as a warning."
                        type: boolean
                      namespace_label:
                        description: "The Prometheus label name used for identifying namespaces in metrics for custom dashboards. The default is `namespace` but you may want to use `kubernetes_namespace` depending on your Prometheus configuration."
                        type: string
                      prometheus:
                        description: "The Prometheus configuration defined here refers to the Prometheus instance that is dedicated to fetching metrics for custom dashboards. This means you can obtain these metrics for the custom dashboards from a Prometheus instance that is different from the one that Istio uses. If this section is omitted, the same Prometheus that is used to obtain the Istio metrics will also be used for retrieving custom dashboard metrics."
                        type: object
                        properties:
                          auth:
                            description: "Settings used to authenticate with the Prometheus instance."
                            type: object
                            properties:
                              ca_file:
                                description: "The certificate authority file to use when accessing Prometheus using https. An empty string means no extra certificate authority file is used."
                                type: string
                              insecure_skip_verify:
                                description: "Set true to skip verifying certificate validity when Kiali contacts Prometheus over https."
                                type: boolean
                              password:
                                description: "Password to be used when making requests to Prometheus, for basic authentication. May refer to a secret."
                                type: string
                              token:
                                description: "Token / API key to access Prometheus, for token-based authentication. May refer to a secret."
                                type: string
                              type:
                                description: "The type of authentication to use when contacting the server. Use `bearer` to send the token to the Prometheus server. Use `basic` to connect with username and password credentials. Use `none` to not use any authentication (this is the default)."
                                type: string
                              use_kiali_token:
                                description: "When true and if `auth.type` is `bearer`, Kiali Service Account token will be used for the API calls to Prometheus (in this case, `auth.token` config is ignored)."
                                type: boolean
                              username:
                                description: "Username to be used when making requests to Prometheus with `basic` authentication."
                                type: string
                          cache_duration:
                            description: "Prometheus caching duration expressed in seconds."
                            type: integer
                          cache_enabled:
                            description: "Enable/disable Prometheus caching used for Health services."
                            type: boolean
                          cache_expiration:
                            description: "Prometheus caching expiration expressed in seconds."
                            type: integer
                          custom_headers:
                            description: "A set of name/value settings that will be passed as headers when requests are sent to Prometheus."
                            type: object
                            x-kubernetes-preserve-unknown-fields: true
                          health_check_url:
                            description: "Used in the Components health feature. This is the url which Kiali will ping to determine whether the component is reachable or not. It defaults to `url` when not provided."
                            type: string
                          is_core:
                            description: "Used in the Components health feature. When true, the unhealthy scenarios will be raised as errors. Otherwise, they will be raised as a warning."
                            type: boolean
                          query_scope:
                            description: "A set of labelName/labelValue settings applied to every Prometheus query. Used to narrow unified metrics to only those scoped to the Kiali instance."
                            type: object
                            x-kubernetes-preserve-unknown-fields: true
                          thanos_proxy:
                            description: "Define this section if Prometheus is to be queried through a Thanos proxy. Kiali will still use the `url` setting to query for Prometheus metrics so make sure that is set appropriately."
                            type: object
                            properties:
                              enabled:
                                description: "Set to true when a Thanos proxy is in front of Prometheus."
                                type: boolean
                              retention_period:
                                description: "Thanos Retention period value expresed as a string."
                                type: string
                              scrape_interval:
                                description: "Thanos Scrape interval value expresed as a string."
                                type: string
                          url:
                            description: "The URL used to query the Prometheus Server. This URL must be accessible from the Kiali pod. If empty, the default will assume Prometheus is in the Istio control plane namespace; e.g. `http://prometheus.<istio_namespace>:9090`."
                            type: string
                  grafana:
                    description: "Configuration used to access the Grafana dashboards."
                    type: object
                    properties:
                      auth:
                        description: "Settings used to authenticate with the Grafana instance."
                        type: object
                        properties:
                          ca_file:
                            description: "The certificate authority file to use when accessing Grafana using https. An empty string means no extra certificate authority file is used."
                            type: string
                          insecure_skip_verify:
                            description: "Set true to skip verifying certificate validity when Kiali contacts Grafana over https."
                            type: boolean
                          password:
                            description: "Password to be used when making requests to Grafana, for basic authentication. May refer to a secret."
                            type: string
                          token:
                            description: "Token / API key to access Grafana, for token-based authentication. May refer to a secret."
                            type: string
                          type:
                            description: "The type of authentication to use when contacting the server. Use `bearer` to send the token to the Grafana server. Use `basic` to connect with username and password credentials. Use `none` to not use any authentication (this is the default)."
                            type: string
                          use_kiali_token:
                            description: "When true and if `auth.type` is `bearer`, Kiali Service Account token will be used for the API calls to Grafana (in this case, `auth.token` config is ignored)."
                            type: boolean
                          username:
                            description: "Username to be used when making requests to Grafana with `basic` authentication."
                            type: string
                      dashboards:
                        description: "A list of Grafana dashboards that Kiali can link to."
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              description: "The name of the Grafana dashboard."
                              type: string
                            variables:
                              type: object
                              properties:
                                app:
                                  description: "The name of a variable that holds the app name, if used in that dashboard (else it must be omitted)."
                                  type: string
                                namespace:
                                  description: "The name of a variable that holds the namespace, if used in that dashboard (else it must be omitted)."
                                  type: string
                                service:
                                  description: "The name of a variable that holds the service name, if used in that dashboard (else it must be omitted)."
                                  type: string
                                workload:
                                  description: "The name of a variable that holds the workload name, if used in that dashboard (else it must be omitted)."
                                  type: string
                      enabled:
                        description: "When true, Grafana support will be enabled in Kiali."
                        type: boolean
                      health_check_url:
                        description: "Used in the Components health feature. This is the URL which Kiali will ping to determine whether the component is reachable or not. It defaults to `in_cluster_url` when not provided."
                        type: string
                      in_cluster_url:
                        description: "The URL used for in-cluster access. An example would be `http://grafana.istio-system:3000`. This URL can contain query parameters if needed, such as '?orgId=1'. If not defined, it will default to `http://grafana.<istio_namespace>:3000`."
                        type: string
                      is_core:
                        description: "Used in the Components health feature. When true, the unhealthy scenarios will be raised as errors. Otherwise, they will be raised as a warning."
                        type: boolean
                      url:
                        description: "The URL that Kiali uses when integrating with Grafana. This URL must be accessible to clients external to the cluster in order for the integration to work properly. If empty, an attempt to auto-discover it is made. This URL can contain query parameters if needed, such as '?orgId=1'."
                        type: string
                  istio:
                    description: "Istio configuration that Kiali needs to know about in order to observe the mesh."
                    type: object
                    properties:
                      component_status:
                        description: "Istio components whose status will be monitored by Kiali."
                        type: object
                        properties:
                          components:
                            description: "A specific Istio component whose status will be monitored by Kiali."
                            type: array
                            items:
                              type: object
                              properties:
                                app_label:
                                  description: "Istio component pod app label."
                                  type: string
                                is_core:
                                  description: "Whether the component is to be considered a core component for your deployment."
                                  type: boolean
                                is_proxy:
                                  description: "Whether the component is a native Envoy proxy."
                                  type: boolean
                                namespace:
                                  description: "The namespace where the component is installed. It defaults to the Istio control plane namespace (e.g. `istio_namespace`) setting. Note that the Istio documentation suggests you install the ingress and egress to different namespaces, so you most likely will want to explicitly set this namespace value for the ingress and egress components."
                                  type: string
                          enabled:
                            description: "Determines if Istio component statuses will be displayed in the Kiali masthead indicator."
                            type: boolean
                      config_map_name:
                        description: "The name of the istio control plane config map."
                        type: string
                      envoy_admin_local_port:
                        description: "The port which kiali will open to fetch envoy config data information."
                        type: integer
                      istio_canary_revision:
                        description: "These values are used in Canary upgrade/downgrade functionality when `istio_upgrade_action` is true."
                        type: object
                        properties:
                          current:
                            description: "The currently installed Istio revision."
                            type: string
                          upgrade:
                            description: "The installed Istio canary revision to upgrade to."
                            type: string
                      istio_identity_domain:
                        description: "The annotation used by Istio to identify domains."
                        type: string
                      istio_injection_annotation:
                        description: "The name of the field that annotates a workload to indicate a sidecar should be automatically injected by Istio. This is the name of a Kubernetes annotation. Note that some Istio implementations also support labels by the same name. In other words, if a workload has a Kubernetes label with this name, that may also trigger automatic sidecar injection."
                        type: string
                      istio_sidecar_annotation:
                        description: "The pod annotation used by Istio to identify the sidecar."
                        type: string
                      istio_sidecar_injector_config_map_name:
                        description: "The name of the istio-sidecar-injector config map."
                        type: string
                      istiod_deployment_name:
                        description: "The name of the istiod deployment."
                        type: string
                      istiod_pod_monitoring_port:
                        description: "The monitoring port of the IstioD pod (not the Service)."
                        type: integer
                      root_namespace:
                        description: "The namespace to treat as the administrative root namespace for Istio configuration."
                        type: string
                      url_service_version:
                        description: "The Istio service used to determine the Istio version. If empty, assumes the URL for the well-known Istio version endpoint."
                        type: string
                  prometheus:
                    description: "The Prometheus configuration defined here refers to the Prometheus instance that is used by Istio to store its telemetry."
                    type: object
                    properties:
                      auth:
                        description: "Settings used to authenticate with the Prometheus instance."
                        type: object
                        properties:
                          ca_file:
                            description: "The certificate authority file to use when accessing Prometheus using https. An empty string means no extra certificate authority file is used."
                            type: string
                          insecure_skip_verify:
                            description: "Set true to skip verifying certificate validity when Kiali contacts Prometheus over https."
                            type: boolean
                          password:
                            description: "Password to be used when making requests to Prometheus, for basic authentication. May refer to a secret."
                            type: string
                          token:
                            description: "Token / API key to access Prometheus, for token-based authentication. May refer to a secret."
                            type: string
                          type:
                            description: "The type of authentication to use when contacting the server. Use `bearer` to send the token to the Prometheus server. Use `basic` to connect with username and password credentials. Use `none` to not use any authentication (this is the default)."
                            type: string
                          use_kiali_token:
                            description: "When true and if `auth.type` is `bearer`, Kiali Service Account token will be used for the API calls to Prometheus (in this case, `auth.token` config is ignored)."
                            type: boolean
                          username:
                            description: "Username to be used when making requests to Prometheus with `basic` authentication."
                            type: string
                      cache_duration:
                        description: "Prometheus caching duration expressed in seconds."
                        type: integer
                      cache_enabled:
                        description: "Enable/disable Prometheus caching used for Health services."
                        type: boolean
                      cache_expiration:
                        description: "Prometheus caching expiration expressed in seconds."
                        type: integer
                      custom_headers:
                        description: "A set of name/value settings that will be passed as headers when requests are sent to Prometheus."
                        type: object
                        x-kubernetes-preserve-unknown-fields: true
                      health_check_url:
                        description: "Used in the Components health feature. This is the url which Kiali will ping to determine whether the component is reachable or not. It defaults to `url` when not provided."
                        type: string
                      is_core:
                        description: "Used in the Components health feature. When true, the unhealthy scenarios will be raised as errors. Otherwise, they will be raised as a warning."
                        type: boolean
                      query_scope:
                        description: "A set of labelName/labelValue settings applied to every Prometheus query. Used to narrow unified metrics to only those scoped to the Kiali instance."
                        type: object
                        x-kubernetes-preserve-unknown-fields: true
                      thanos_proxy:
                        description: "Define this section if Prometheus is to be queried through a Thanos proxy. Kiali will still use the `url` setting to query for Prometheus metrics so make sure that is set appropriately."
                        type: object
                        properties:
                          enabled:
                            description: "Set to true when a Thanos proxy is in front of Prometheus."
                            type: boolean
                          retention_period:
                            description: "Thanos Retention period value expresed as a string."
                            type: string
                          scrape_interval:
                            description: "Thanos Scrape interval value expresed as a string."
                            type: string
                      url:
                        description: "The URL used to query the Prometheus Server. This URL must be accessible from the Kiali pod. If empty, the default will assume Prometheus is in the Istio control plane namespace; e.g. `http://prometheus.<istio_namespace>:9090`."
                        type: string
                  tracing:
                    description: "Configuration used to access the Tracing (Jaeger) dashboards."
                    type: object
                    properties:
                      auth:
                        description: "Settings used to authenticate with the Tracing server instance."
                        type: object
                        properties:
                          ca_file:
                            description: "The certificate authority file to use when accessing the Tracing server using https. An empty string means no extra certificate authority file is used."
                            type: string
                          insecure_skip_verify:
                            description: "Set true to skip verifying certificate validity when Kiali contacts the Tracing server over https."
                            type: boolean
                          password:
                            description: "Password to be used when making requests to the Tracing server, for basic authentication. May refer to a secret."
                            type: string
                          token:
                            description: "Token / API key to access the Tracing server, for token-based authentication. May refer to a secret."
                            type: string
                          type:
                            description: "The type of authentication to use when contacting the server. Use `bearer` to send the token to the Tracing server. Use `basic` to connect with username and password credentials. Use `none` to not use any authentication (this is the default)."
                            type: string
                          use_kiali_token:
                            description: "When true and if `auth.type` is `bearer`, Kiali Service Account token will be used for the API calls to the Tracing server (in this case, `auth.token` config is ignored)."
                            type: boolean
                          username:
                            description: "Username to be used when making requests to the Tracing server with `basic` authentication."
                            type: string
                      enabled:
                        description: "When true, connections to the Tracing server are enabled. `in_cluster_url` and/or `url` need to be provided."
                        type: boolean
                      in_cluster_url:
                        description: "Set URL for in-cluster access, which enables further integration between Kiali and Jaeger. When not provided, Kiali will only show external links using the `url` setting. Note: Jaeger v1.20+ has separated ports for GRPC(16685) and HTTP(16686) requests. Make sure you use the appropriate port according to the `use_grpc` value. Example: http://tracing.istio-system:16685"
                        type: string
                      is_core:
                        description: "Used in the Components health feature. When true, the unhealthy scenarios will be raised as errors. Otherwise, they will be raised as a warning."
                        type: boolean
                      namespace_selector:
                        description: "Kiali use this boolean to find traces with a namespace selector : service.namespace."
                        type: boolean
                      url:
                        description: "The external URL that will be used to generate links to Jaeger. It must be accessible to clients external to the cluster (e.g: a browser) in order to generate valid links. If the tracing service is deployed with a QUERY_BASE_PATH set, set this URL like https://<hostname>/<QUERY_BASE_PATH>. For example, https://tracing-service:8080/jaeger"
                        type: string
                      use_grpc:
                        description: "Set to true in order to enable GRPC connections between Kiali and Jaeger which will speed up the queries. In some setups you might not be able to use GRPC (e.g. if Jaeger is behind some reverse proxy that doesn't support it). If not specified, this will defalt to 'false' if deployed within a Maistra/OSSM+OpenShift environment, 'true' otherwise."
                        type: boolean
                      whitelist_istio_system:
                        description: "Kiali will get the traces of these services found in the Istio control plane namespace."
                        type: array
                        items:
                          description: "A name of a service found in the Istio control plane namespace whose traces will be retrieved by Kiali."
                          type: string

              health_config:
                description: "This section defines what it means for nodes to be healthy. For more details, see https://kiali.io/docs/configuration/health/"
                type: object
                properties:
                  rate:
                    type: array
                    items:
                      type: object
                      properties:
                        namespace:
                          description: "The name of the namespace that this configuration applies to. This is a regular expression."
                          type: string
                        kind:
                          description: "The type of resource that this configuration applies to. This is a regular expression."
                          type: string
                        name:
                          description: "The name of a resource that this configuration applies to. This is a regular expression."
                          type: string
                        tolerance:
                          description: "A list of tolerances for this configuration."
                          type: array
                          items:
                            type: object
                            properties:
                              protocol:
                                description: "The protocol that applies for this tolerance (e.g. grpc or http). This is a regular expression."
                                type: string
                              direction:
                                description: "The direction that applies for this tolerance (e.g. inbound or outbound). This is a regular expression."
                                type: string
                              code:
                                description: "The status code that applies for this tolerance. This is a regular expression."
                                type: string
                              degraded:
                                description: "Health will be considered degraded when the telemetry reaches this value (specified as an integer representing a percentage)."
                                type: integer
                              failure:
                                description: "A failure status will be shown when the telemetry reaches this value (specified as an integer representing a percentage)."
                                type: integer

              identity:
                description: "Settings that define the Kiali server identity."
                type: object
                properties:
                  cert_file:
                    description: "Certificate file used to identify the Kiali server. If set, you must go over https to access Kiali. The Kiali operator will set this if it deploys Kiali behind https. When left undefined, the operator will attempt to generate a cluster-specific cert file that provides https by default (today, this auto-generation of a cluster-specific cert is only supported on OpenShift). When set to an empty string, https will be disabled."
                    type: string
                  private_key_file:
                    description: "Private key file used to identify the Kiali server. If set, you must go over https to access Kiali. When left undefined, the Kiali operator will attempt to generate a cluster-specific private key file that provides https by default (today, this auto-generation of a cluster-specific private key is only supported on OpenShift). When set to an empty string, https will be disabled."
                    type: string

              istio_labels:
                description: "Defines specific labels used by Istio that Kiali needs to know about."
                type: object
                properties:
                  app_label_name:
                    description: "The name of the label used to define what application a workload belongs to. This is typically something like `app` or `app.kubernetes.io/name`."
                    type: string
                  injection_label_name:
                    description: "The name of the label used to instruct Istio to automatically inject sidecar proxies when applications are deployed."
                    type: string
                  injection_label_rev:
                    description: "The label used to identify the Istio revision."
                    type: string
                  version_label_name:
                    description: "The name of the label used to define what version of the application a workload belongs to. This is typically something like `version` or `app.kubernetes.io/version`."
                    type: string

              kiali_feature_flags:
                description: "Kiali features that can be enabled or disabled."
                type: object
                properties:
                  certificates_information_indicators:
                    description: "Flag to enable/disable displaying certificates information and which secrets to grant read permissions."
                    type: object
                    properties:
                      enabled:
                        type: boolean
                      secrets:
                        type: array
                        items:
                          type: string
                  clustering:
                    description: "Clustering and federation related features."
                    type: object
                    properties:
                      enabled:
                        description: "Flag to enable/disable clustering and federation related features."
                        type: boolean
                  disabled_features:
                    description: "There may be some features that admins do not want to be accessible to users (even in 'view only' mode). In this case, this setting allows you to disable one or more of those features entirely."
                    type: array
                    items:
                      type: string
                      enum: ["logs-tab"]
                  istio_injection_action:
                    description: "Flag to enable/disable an Action to label a namespace for automatic Istio Sidecar injection."
                    type: boolean
                  istio_upgrade_action:
                    description: "Flag to activate the Kiali functionality of upgrading namespaces to point to an installed Istio Canary revision. Related Canary upgrade and current revisions of Istio should be defined in `istio_canary_revision` section."
                    type: boolean
                  ui_defaults:
                    description: "Default settings for the UI. These defaults apply to all users."
                    type: object
                    properties:
                      graph:
                        description: "Default settings for the Graph UI."
                        type: object
                        properties:
                          find_options:
                            description: "A list of commonly used and useful find expressions that will be provided to the user out-of-box."
                            type: array
                            items:
                              type: object
                              properties:
                                description:
                                  description: "Human-readable text to let the user know what the expression does."
                                  type: string
                                expression:
                                  description: "The find expression."
                                  type: string
                          hide_options:
                            description: "A list of commonly used and useful hide expressions that will be provided to the user out-of-box."
                            type: array
                            items:
                              type: object
                              properties:
                                description:
                                  description: "Human-readable text to let the user know what the expression does."
                                  type: string
                                expression:
                                  type: string
                                  description: "The hide expression."
                          traffic:
                            description: "These settings determine which rates are used to determine graph traffic."
                            type: object
                            properties:
                              grpc:
                                description: "gRPC traffic is measured in requests or sent/received/total messages. Value must be one of: `none`, `requests`, `sent`, `received`, or `total`."
                                type: string
                                enum: ["none","requests","sent","received","total"]
                              http:
                                description: "HTTP traffic is measured in requests. Value must be one of: `none` or `requests`."
                                type: string
                                enum: ["none","requests"]
                              tcp:
                                description: "TCP traffic is measured in sent/received/total bytes. Only request traffic supplies response codes. Value must be one of: `none`, `sent`, `received`, or `total`."
                                type: string
                                enum: ["none","sent","received","total"]
                      metrics_per_refresh:
                        description: "Duration of metrics to fetch on each refresh. Value must be one of: `1m`, `5m`, `10m`, `30m`, `1h`, `3h`, `6h`, `12h`, `1d`, `7d`, or `30d`"
                        type: string
                        enum: ["1m","5m","10m","30m","1h","3h","6h","12h","1d","7d","30d"]
                      metrics_inbound:
                        description: |
                          Additional label aggregation for inbound metric pages in detail pages.
                          You will see these configurations in the 'Metric Settings' drop-down.
                          An example,
                          ```
                          metrics_inbound:
                            aggregations:
                            - display_name: Istio Network
                              label: topology_istio_io_network
                            - display_name: Istio Revision
                              label: istio_io_rev
                          ```
                        type: object
                        properties:
                          aggregations:
                            type: array
                            items:
                              type: object
                              properties:
                                display_name:
                                  type: string
                                label:
                                  type: string
                      metrics_outbound:
                        description: |
                          Additional label aggregation for outbound metric pages in detail pages.
                          You will see these configurations in the 'Metric Settings' drop-down.
                          An example,
                          ```
                          metrics_outbound:
                            aggregations:
                            - display_name: Istio Network
                              label: topology_istio_io_network
                            - display_name: Istio Revision
                              label: istio_io_rev
                          ```
                        type: object
                        properties:
                          aggregations:
                            type: array
                            items:
                              type: object
                              properties:
                                display_name:
                                  type: string
                                label:
                                  type: string
                      namespaces:
                        description: "Default selections for the namespace selection dropdown. Non-existent or inaccessible namespaces will be ignored. Omit or set to an empty array for no default namespaces."
                        type: array
                        items:
                          type: string
                      refresh_interval:
                        description: "The automatic refresh interval for pages offering automatic refresh. Value must be one of: `pause`, `10s`, `15s`, `30s`, `1m`, `5m` or `15m`"
                        type: string
                        enum: ["pause","10s","15s","30s","1m","5m","15m"]
                  validations:
                    description: "Features specific to the validations subsystem."
                    type: object
                    properties:
                      ignore:
                        description: "A list of one or more validation codes whose errors are to be ignored."
                        type: array
                        items:
                          description: "A validation code (e.g. `KIA0101`) for a specific validation error that is to be ignored."
                          type: string

              kubernetes_config:
                description: "Configuration of Kiali's access of the Kubernetes API."
                type: object
                properties:
                  burst:
                    description: "The Burst value of the Kubernetes client."
                    type: integer
                  cache_duration:
                    description: "The ratio interval (expressed in seconds) used for the cache to perform a full refresh. Only used when `cache_enabled` is true."
                    type: integer
                  cache_enabled:
                    description: "Flag to use a Kubernetes cache for watching changes and updating pods and controllers data asynchronously."
                    type: boolean
                  cache_istio_types:
                    description: "Kiali can cache VirtualService, DestinationRule, Gateway and ServiceEntry Istio resources if they are present on this list of Istio types. Other Istio types are not yet supported."
                    type: array
                    items:
                      type: string
                  cache_namespaces:
                    description: "List of namespaces or regex defining namespaces to include in a cache."
                    type: array
                    items:
                      type: string
                  cache_token_namespace_duration:
                    description: "This Kiali cache is a list of namespaces per user. This is typically a short-lived cache compared with the duration of the namespace cache defined by the `cache_duration` setting. This is specified in seconds."
                    type: integer
                  excluded_workloads:
                    description: "List of controllers that won't be used for Workload calculation. Kiali queries Deployment, ReplicaSet, ReplicationController, DeploymentConfig, StatefulSet, Job and CronJob controllers. Deployment and ReplicaSet will be always queried, but ReplicationController, DeploymentConfig, StatefulSet, Job and CronJobs can be skipped from Kiali workloads queries if they are present in this list."
                    type: array
                    items:
                      type: string
                  qps:
                    description: "The QPS value of the Kubernetes client."
                    type: integer

              login_token:
                type: object
                properties:
                  expiration_seconds:
                    description: "A user's login token expiration specified in seconds. This is applicable to token and header auth strategies only."
                    type: integer
                  signing_key:
                    description: "The signing key used to generate tokens for user authentication. Because this is potentially sensitive, you have the option to store this value in a secret. If you store this signing key value in a secret, you must indicate what key in what secret by setting this value to a string in the form of `secret:<secretName>:<secretKey>`. If left as an empty string, a secret with a random signing key will be generated for you. The signing key must be 16, 24 or 32 byte long."
                    type: string

              server:
                description: "Configuration that controls some core components within the Kiali Server."
                type: object
                properties:
                  address:
                    description: "Where the Kiali server is bound. The console and API server are accessible on this host."
                    type: string
                  audit_log:
                    description: "When true, allows additional audit logging on write operations."
                    type: boolean
                  cors_allow_all:
                    description: "When true, allows the web console to send requests to other domains other than where the console came from. Typically used for development environments only."
                    type: boolean
                  gzip_enabled:
                    description: "When true, Kiali serves http requests with gzip enabled (if the browser supports it) when the requests are over 1400 bytes."
                    type: boolean
                  observability:
                    description: "Settings to enable observability into the Kiali server itself."
                    type: object
                    properties:
                      metrics:
                        description: "Settings that control how Kiali itself emits its own metrics."
                        type: object
                        properties:
                          enabled:
                            description: "When true, the metrics endpoint will be available for Prometheus to scrape."
                            type: boolean
                          port:
                            description: "The port that the server will bind to in order to receive metric requests. This is the port Prometheus will need to scrape when collecting metrics from Kiali."
                            type: integer
                      tracing:
                        description: "Settings that control how the Kiali server itself emits its own tracing data."
                        type: object
                        properties:
                          collector_url:
                            description: "The URL used to determine where the Kiali server tracing data will be stored."
                            type: string
                          enabled:
                            description: "When true, the Kiali server itself will product its own tracing data."
                            type: boolean
                  port:
                    description: "The port that the server will bind to in order to receive console and API requests."
                    type: integer
                  web_fqdn:
                    description: "Defines the public domain where Kiali is being served. This is the 'domain' part of the URL (usually it's a fully-qualified domain name). For example, `kiali.example.org`. When empty, Kiali will try to guess this value from HTTP headers. On non-OpenShift clusters, you must populate this value if you want to enable cross-linking between Kiali instances in a multi-cluster setup."
                    type: string
                  web_history_mode:
                    description: "Define the history mode of kiali UI. Value must be one of: `browser` or `hash`."
                    type: string
                  web_port:
                    description: "Defines the ingress port where the connections come from. This is usually necessary when the application responds through a proxy/ingress, and it does not forward the correct headers (when this happens, Kiali cannot guess the port). When empty, Kiali will try to guess this value from HTTP headers."
                    type: string
                  web_root:
                    description: "Defines the context root path for the Kiali console and API endpoints and readiness probes. When providing a context root path that is not `/`, do not add a trailing slash (i.e. use `/kiali` not `/kiali/`). When empty, this will default to `/` on OpenShift and `/kiali` on other Kubernetes environments."
                    type: string
                  web_schema:
                    description: "Defines the public HTTP schema used to serve Kiali. Value must be one of: `http` or `https`. When empty, Kiali will try to guess this value from HTTP headers. On non-OpenShift clusters, you must populate this value if you want to enable cross-linking between Kiali instances in a multi-cluster setup."
                    type: string
                    enum: ["","http","https"]