redhat-developer / odo

odo - Developer-focused CLI for fast & iterative container-based application development on Podman and Kubernetes. Implementation of the open Devfile standard.
https://odo.dev
Apache License 2.0
797 stars 243 forks source link

odo catalog describe service doesn't work if provided with just top level operator type #4786

Closed kadel closed 3 years ago

kadel commented 3 years ago

/kind bug

What versions of software are you using?

Operating System:

Output of odo version:

How did you run odo exactly?

Sevice exists I can see it in catalog, but it fails to describe it

▶ odo catalog list services
Services available through Operators
NAME                                CRDs
rhsso-operator.7.4.7                Keycloak, KeycloakRealm, KeycloakBackup, KeycloakClient, KeycloakUser
service-binding-operator.v0.7.1     ServiceBinding

▶ odo catalog describe service rhsso-operator.7.4.7
 ✗  unable to search classes by name (clusterserviceclasses.servicecatalog.k8s.io is forbidden: User "developer" cannot list resource "clusterserviceclasses" in API group "servicecatalog.k8s.io" at the cluster scope)

Actual behavior

▶ odo catalog describe service rhsso-operator.7.4.7
 ✗  unable to search classes by name (clusterserviceclasses.servicecatalog.k8s.io is forbidden: User "developer" cannot list resource "clusterserviceclasses" in API group "servicecatalog.k8s.io" at the cluster scope)

Expected behavior

I should be able to see some details about the operator service

▶ odo catalog describe service rhsso-operator.7.4.7

Name: Red Hat Single Sign-On Operator

Description:
A Kubernetes Operator based on the Operator SDK for installing and managing Red Hat Single Sign-On.

Red Hat Single Sign-On lets you add authentication to applications and secure services with minimum fuss. No need to deal with storing users or authenticating users. It's all available out of the box.

The operator can deploy and manage Keycloak instances on Kubernetes and OpenShift. The following features are supported:

Install Keycloak to a namespace
Import Keycloak Realms
Import Keycloak Clients
Import Keycloak Users
Create scheduled backups of the database

CRDs:
Name            Description
Keycloak        Represents a Red Hat Single Sign-On Instance
KeycloakRealm   Represents a Red Hat Single Sign-On Realm
KeycloakBackup  Represents a Red Hat Single Sign-On Backup
KeycloakClient  Represents a Red Hat Single Sign-On Client
KeycloakUser    Represents a Red Hat Single Sign-On User

For detailed information run 'odo catalog describe service rhsso-operator.7.4.7/<CRD-name>'

I would also expect the same information, but in json format

▶ odo catalog describe service rhsso-operator.7.4.7 -o json

above information is taken from oc get csv rhsso-operator.7.4.7 -o yaml

Any logs, error output, etc?

/kind bug /area service /area service-operators /priority high

dharmit commented 3 years ago

IMO, this is a feature and not a bug. We didn't scope/think of this when implementing.

Besides that, for Operator backed services we expect the users to provide <operator-name>/<cr-name> instead of just <operator-name>. That's our basis for differentiating if user wants details about Operator backed service or Service Catalog backed service.

PTAL https://github.com/openshift/odo/issues/2615#issuecomment-829145664.

Moreover, I don't think this should be high priority; medium at best, because odo catalog describe service -h clearly states that a user should provide <operator>/<cr-name> for Operator backed service.

kadel commented 3 years ago

Moreover, I don't think this should be high priority; medium at best, because odo catalog describe service -h clearly states that a user should provide <operator>/<cr-name> for Operator backed service.

This is really confusing for the user. I think that if someone runs odo catalog describe service with the argument that matches the operator name it should show a description and list of CRDs..

IMO, this is a feature and not a bug. We didn't scope/think of this when implementing.

ok, maybe overacted to this. But I still feel that this should be relatively high priority as the is a big usability problem.

/remove-kind bug /kind feature

girishramnani commented 3 years ago

I can work on this, can we finalise the json output as well @kadel

girishramnani commented 3 years ago

renamed the title to match the feature

girishramnani commented 3 years ago

should we add this to milestone 2.3 @dharmit ?

dharmit commented 3 years ago

should we add this to milestone 2.3 @dharmit ?

IMO, no. We should pick this up in 2.4 IMO.

kadel commented 3 years ago

I can work on this, can we finalise the json output as well @kadel

feel free to start with initial proposal of how the output could look like

valaparthvi commented 3 years ago

We need to fix the odo catalog service describe <operator>/<cr_name> output as well. It is not at all readable.

valaparthvi commented 3 years ago
{
        "kind":       "ClusterServiceVersion",
        "apiVersion": "operators.coreos.com/v1alpha1",
        "metadata": {
            "name": "redis-operator.v0.8.0",
        },
        "spec": {
            "displayName": "Redis Operator",
            "description": "A Golang based redis operator that will make/oversee Redis\nstandalone/cluster mode setup on top of the Kubernetes. It can create a\nredis cluster setup with best practices on Cloud as well as the Bare metal\nenvironment. Also, it provides an in-built monitoring capability using\nredis-exporter.\n\n### Supported Features\n\nHere the features which are supported by this operator:-\n- Redis cluster/standalone mode setup\n- Redis cluster failover and recovery\n- Inbuilt monitoring with prometheus exporter\n- Dynamic storage provisioning with pvc template\n- Resources restrictions with k8s requests and limits\n- Password/Password-less setup\n- External configuration support for leader and follower\n- Node selector and affinity for follower and leader\n- Priority class to manage setup priority\n- SecurityContext to manipulate kernel parameters\n\n### Documentation\n\n[Documentation](https://ot-container-kit.github.io/redis-operator/)\n\n### Getting Help\nThis project is managed by OpsTree Solutions. If you have any queries or\nsuggestions, mail us at opensource@opstree.com.\n\n### Contributing\n\nYou can contribute to this project by:-\n- Raising Bugs and Feature Requests\n- Fixing issue by opening a Pull Request\n- Improving Documentation\n\n### License\n\nLogging Operator is licensed under [Apache License, Version\n2.0](https://github.com/OT-CONTAINER-KIT/redis-operator/blob/master/LICENSE)\n",
            "customresourcedefinitions": [
                {
                    "displayName": "RedisCluster",
                    "description": "Redis Cluster",
                },
                {
                    "displayName": "Redis",
                    "description": "Redis",
                },
            ],
        },
    }
valaparthvi commented 3 years ago

Acceptance Criteria:

    • [ ] odo catalog service describe <operator_name> should work.
    • [ ] odo catalog service describe <operator_name> -o json should work.
    • [ ] Add integration tests.
    • [ ] Add unit tests.
    • [ ] Add documentation to Command Reference > odo catalog describe service
    • [ ] Add documentation to Command REference > JSON Output

The JSON output can look similar to the Human Readable Output, example -

➜  ~ odo catalog describe service redis-operator.v0.8.0 -o json
{
    "kind": "OperatorCatalogService",
    "apiVersion": "odo.dev/v1alpha1",
    "metadata": {
        "name": "redis-operator.v0.8.0",
        "creationTimestamp": null
    },
    "spec": {
        "displayName": "Redis Operator",
        "description": "A Golang based redis operator that will make/oversee Redis\nstandalone/cluster mode setup on top of the Kubernetes. It can create a\nredis cluster setup with best practices on Cloud as well as the Bare metal\nenvironment. Also, it provides an in-built monitoring capability using\nredis-exporter.\n\n### Supported Features\n\nHere the features which are supported by this operator:-\n- Redis cluster/standalone mode setup\n- Redis cluster failover and recovery\n- Inbuilt monitoring with prometheus exporter\n- Dynamic storage provisioning with pvc template\n- Resources restrictions with k8s requests and limits\n- Password/Password-less setup\n- External configuration support for leader and follower\n- Node selector and affinity for follower and leader\n- Priority class to manage setup priority\n- SecurityContext to manipulate kernel parameters\n\n### Documentation\n\n[Documentation](https://ot-container-kit.github.io/redis-operator/)\n\n### Getting Help\nThis project is managed by OpsTree Solutions. If you have any queries or\nsuggestions, mail us at opensource@opstree.com.\n\n### Contributing\n\nYou can contribute to this project by:-\n- Raising Bugs and Feature Requests\n- Fixing issue by opening a Pull Request\n- Improving Documentation\n\n### License\n\nLogging Operator is licensed under [Apache License, Version\n2.0](https://github.com/OT-CONTAINER-KIT/redis-operator/blob/master/LICENSE)\n",
        "crds": [
            {
                "Kind": "RedisCluster",
                "Description": "Redis Cluster"
            },
            {
                "Kind": "Redis",
                "Description": "Redis"
            }
        ]
    }
}
➜  ~ odo catalog describe service redis-operator.v0.8.0      
Name:redis-operator.v0.8.0
Description:A Golang based redis operator that will make/oversee Redis
standalone/cluster mode setup on top of the Kubernetes. It can create a
redis cluster setup with best practices on Cloud as well as the Bare metal
environment. Also, it provides an in-built monitoring capability using
redis-exporter.

### Supported Features

Here the features which are supported by this operator:-
- Redis cluster/standalone mode setup
- Redis cluster failover and recovery
- Inbuilt monitoring with prometheus exporter
- Dynamic storage provisioning with pvc template
- Resources restrictions with k8s requests and limits
- Password/Password-less setup
- External configuration support for leader and follower
- Node selector and affinity for follower and leader
- Priority class to manage setup priority
- SecurityContext to manipulate kernel parameters

### Documentation

[Documentation](https://ot-container-kit.github.io/redis-operator/)

### Getting Help
This project is managed by OpsTree Solutions. If you have any queries or
suggestions, mail us at opensource@opstree.com.

### Contributing

You can contribute to this project by:-
- Raising Bugs and Feature Requests
- Fixing issue by opening a Pull Request
- Improving Documentation

### License

Logging Operator is licensed under [Apache License, Version
2.0](https://github.com/OT-CONTAINER-KIT/redis-operator/blob/master/LICENSE)

CRDs:
Name                Description
RedisCluster    Redis Cluster
Redis                   Redis

There are existing structs such as CRDDescriptionRepr that can be used. I have created a POC that showcases potential changes that needs to be done - https://github.com/openshift/odo/compare/main...valaparthvi:catservdesci?expand=1

mohammedzee1000 commented 3 years ago

Started implementing this should have wip soon

mohammedzee1000 commented 3 years ago

ok so here is some progress

> odo catalog list services
Services available through Operators
NAME                      CRDs
redis-operator.v0.8.0     RedisCluster, Redis

> odo catalog describe service redis-operator.v0.8.0/RedisCluster
KIND:    RedisCluster
VERSION: v1beta1

DESCRIPTION:
     Redis Cluster

FIELDS:
   clusterSize (integer)   -required-

   kubernetesConfig (object)   -required-
     KubernetesConfig will be the JSON struct for Basic Redis Config

     kubernetesConfig.image (string)   -required-

     kubernetesConfig.serviceType (string)   -required-

     kubernetesConfig.imagePullPolicy (string)   
       PullPolicy describes a policy for if/when to pull a container image

     kubernetesConfig.imagePullSecrets ([]object)   

     kubernetesConfig.redisSecret (object)   
       ExistingPasswordSecret is the struct to access the existing secret

       kubernetesConfig.redisSecret.key (string)   

       kubernetesConfig.redisSecret.name (string)   

     kubernetesConfig.resources (object)   
       ResourceRequirements describes the compute resource requirements.

       kubernetesConfig.resources.limits (object)   
         Limits describes the maximum amount of compute resources allowed. More
         info:
         https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

       kubernetesConfig.resources.requests (object)   
         Requests describes the minimum amount of compute resources required. If
         Requests is omitted for a container, it defaults to Limits if that is
         explicitly specified, otherwise to an implementation-defined value.
         More info:
         https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

   nodeSelector (object)   

   priorityClassName (string)   

   redisExporter (object)   
     RedisExporter interface will have the information for redis exporter
     related stuff

     redisExporter.image (string)   -required-

     redisExporter.enabled (boolean)   

     redisExporter.env ([]object)   

     redisExporter.imagePullPolicy (string)   
       PullPolicy describes a policy for if/when to pull a container image

     redisExporter.resources (object)   
       ResourceRequirements describes the compute resource requirements.

       redisExporter.resources.limits (object)   
         Limits describes the maximum amount of compute resources allowed. More
         info:
         https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

       redisExporter.resources.requests (object)   
         Requests describes the minimum amount of compute resources required. If
         Requests is omitted for a container, it defaults to Limits if that is
         explicitly specified, otherwise to an implementation-defined value.
         More info:
         https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

   redisFollower (object)   
     RedisFollower interface will have the redis follower configuration

     redisFollower.affinity (object)   
       Affinity is a group of affinity scheduling rules.

       redisFollower.affinity.nodeAffinity (object)   
         Describes node affinity scheduling rules for the pod.

         redisFollower.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution ([]object)   
           The scheduler will prefer to schedule pods to nodes that satisfy the
           affinity expressions specified by this field, but it may choose a
           node that violates one or more of the expressions. The node that is
           most preferred is the one with the greatest sum of weights, i.e. for
           each node that meets all of the scheduling requirements (resource
           request, requiredDuringScheduling affinity expressions, etc.),
           compute a sum by iterating through the elements of this field and
           adding "weight" to the sum if the node matches the corresponding
           matchExpressions; the node(s) with the highest sum are the most
           preferred.

         redisFollower.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution (object)   
           If the affinity requirements specified by this field are not met at
           scheduling time, the pod will not be scheduled onto the node. If the
           affinity requirements specified by this field cease to be met at some
           point during pod execution (e.g. due to an update), the system may or
           may not try to eventually evict the pod from its node.

           redisFollower.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms ([]object)   -required-
             Required. A list of node selector terms. The terms are ORed.

       redisFollower.affinity.podAffinity (object)   
         Describes pod affinity scheduling rules (e.g. co-locate this pod in the
         same node, zone, etc. as some other pod(s)).

         redisFollower.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution ([]object)   
           The scheduler will prefer to schedule pods to nodes that satisfy the
           affinity expressions specified by this field, but it may choose a
           node that violates one or more of the expressions. The node that is
           most preferred is the one with the greatest sum of weights, i.e. for
           each node that meets all of the scheduling requirements (resource
           request, requiredDuringScheduling affinity expressions, etc.),
           compute a sum by iterating through the elements of this field and
           adding "weight" to the sum if the node has pods which matches the
           corresponding podAffinityTerm; the node(s) with the highest sum are
           the most preferred.

         redisFollower.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution ([]object)   
           If the affinity requirements specified by this field are not met at
           scheduling time, the pod will not be scheduled onto the node. If the
           affinity requirements specified by this field cease to be met at some
           point during pod execution (e.g. due to a pod label update), the
           system may or may not try to eventually evict the pod from its node.
           When there are multiple elements, the lists of nodes corresponding to
           each podAffinityTerm are intersected, i.e. all terms must be
           satisfied.

       redisFollower.affinity.podAntiAffinity (object)   
         Describes pod anti-affinity scheduling rules (e.g. avoid putting this
         pod in the same node, zone, etc. as some other pod(s)).

         redisFollower.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution ([]object)   
           The scheduler will prefer to schedule pods to nodes that satisfy the
           anti-affinity expressions specified by this field, but it may choose
           a node that violates one or more of the expressions. The node that is
           most preferred is the one with the greatest sum of weights, i.e. for
           each node that meets all of the scheduling requirements (resource
           request, requiredDuringScheduling anti-affinity expressions, etc.),
           compute a sum by iterating through the elements of this field and
           adding "weight" to the sum if the node has pods which matches the
           corresponding podAffinityTerm; the node(s) with the highest sum are
           the most preferred.

         redisFollower.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution ([]object)   
           If the anti-affinity requirements specified by this field are not met
           at scheduling time, the pod will not be scheduled onto the node. If
           the anti-affinity requirements specified by this field cease to be
           met at some point during pod execution (e.g. due to a pod label
           update), the system may or may not try to eventually evict the pod
           from its node. When there are multiple elements, the lists of nodes
           corresponding to each podAffinityTerm are intersected, i.e. all terms
           must be satisfied.

     redisFollower.redisConfig (object)   
       RedisConfig defines the external configuration of Redis

       redisFollower.redisConfig.additionalRedisConfig (string)   

     redisFollower.replicas (integer)   

     redisFollower.serviceType (string)   

   redisLeader (object)   
     RedisLeader interface will have the redis leader configuration

     redisLeader.affinity (object)   
       Affinity is a group of affinity scheduling rules.

       redisLeader.affinity.nodeAffinity (object)   
         Describes node affinity scheduling rules for the pod.

         redisLeader.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution ([]object)   
           The scheduler will prefer to schedule pods to nodes that satisfy the
           affinity expressions specified by this field, but it may choose a
           node that violates one or more of the expressions. The node that is
           most preferred is the one with the greatest sum of weights, i.e. for
           each node that meets all of the scheduling requirements (resource
           request, requiredDuringScheduling affinity expressions, etc.),
           compute a sum by iterating through the elements of this field and
           adding "weight" to the sum if the node matches the corresponding
           matchExpressions; the node(s) with the highest sum are the most
           preferred.

         redisLeader.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution (object)   
           If the affinity requirements specified by this field are not met at
           scheduling time, the pod will not be scheduled onto the node. If the
           affinity requirements specified by this field cease to be met at some
           point during pod execution (e.g. due to an update), the system may or
           may not try to eventually evict the pod from its node.

           redisLeader.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms ([]object)   -required-
             Required. A list of node selector terms. The terms are ORed.

       redisLeader.affinity.podAffinity (object)   
         Describes pod affinity scheduling rules (e.g. co-locate this pod in the
         same node, zone, etc. as some other pod(s)).

         redisLeader.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution ([]object)   
           The scheduler will prefer to schedule pods to nodes that satisfy the
           affinity expressions specified by this field, but it may choose a
           node that violates one or more of the expressions. The node that is
           most preferred is the one with the greatest sum of weights, i.e. for
           each node that meets all of the scheduling requirements (resource
           request, requiredDuringScheduling affinity expressions, etc.),
           compute a sum by iterating through the elements of this field and
           adding "weight" to the sum if the node has pods which matches the
           corresponding podAffinityTerm; the node(s) with the highest sum are
           the most preferred.

         redisLeader.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution ([]object)   
           If the affinity requirements specified by this field are not met at
           scheduling time, the pod will not be scheduled onto the node. If the
           affinity requirements specified by this field cease to be met at some
           point during pod execution (e.g. due to a pod label update), the
           system may or may not try to eventually evict the pod from its node.
           When there are multiple elements, the lists of nodes corresponding to
           each podAffinityTerm are intersected, i.e. all terms must be
           satisfied.

       redisLeader.affinity.podAntiAffinity (object)   
         Describes pod anti-affinity scheduling rules (e.g. avoid putting this
         pod in the same node, zone, etc. as some other pod(s)).

         redisLeader.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution ([]object)   
           The scheduler will prefer to schedule pods to nodes that satisfy the
           anti-affinity expressions specified by this field, but it may choose
           a node that violates one or more of the expressions. The node that is
           most preferred is the one with the greatest sum of weights, i.e. for
           each node that meets all of the scheduling requirements (resource
           request, requiredDuringScheduling anti-affinity expressions, etc.),
           compute a sum by iterating through the elements of this field and
           adding "weight" to the sum if the node has pods which matches the
           corresponding podAffinityTerm; the node(s) with the highest sum are
           the most preferred.

         redisLeader.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution ([]object)   
           If the anti-affinity requirements specified by this field are not met
           at scheduling time, the pod will not be scheduled onto the node. If
           the anti-affinity requirements specified by this field cease to be
           met at some point during pod execution (e.g. due to a pod label
           update), the system may or may not try to eventually evict the pod
           from its node. When there are multiple elements, the lists of nodes
           corresponding to each podAffinityTerm are intersected, i.e. all terms
           must be satisfied.

     redisLeader.redisConfig (object)   
       RedisConfig defines the external configuration of Redis

       redisLeader.redisConfig.additionalRedisConfig (string)   

     redisLeader.replicas (integer)   

     redisLeader.serviceType (string)   

   resources (object)   
     ResourceRequirements describes the compute resource requirements.

     resources.limits (object)   
       Limits describes the maximum amount of compute resources allowed. More
       info:
       https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

     resources.requests (object)   
       Requests describes the minimum amount of compute resources required. If
       Requests is omitted for a container, it defaults to Limits if that is
       explicitly specified, otherwise to an implementation-defined value. More
       info:
       https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

   securityContext (object)   
     PodSecurityContext holds pod-level security attributes and common container
     settings. Some fields are also present in container.securityContext. Field
     values of container.securityContext take precedence over field values of
     PodSecurityContext.

     securityContext.fsGroup (integer)   
       A special supplemental group that applies to all containers in a pod.
       Some volume types allow the Kubelet to change the ownership of that
       volume to be owned by the pod:
       1. The owning GID will be the FSGroup 2. The setgid bit is set (new files
       created in the volume will be owned by FSGroup) 3. The permission bits
       are OR'd with rw-rw---- If unset, the Kubelet will not modify the
       ownership and permissions of any volume.

     securityContext.fsGroupChangePolicy (string)   
       fsGroupChangePolicy defines behavior of changing ownership and permission
       of the volume before being exposed inside Pod. This field will only apply
       to volume types which support fsGroup based ownership(and permissions).
       It will have no effect on ephemeral volume types such as: secret,
       configmaps and emptydir. Valid values are "OnRootMismatch" and "Always".
       If not specified defaults to "Always".

     securityContext.runAsGroup (integer)   
       The GID to run the entrypoint of the container process. Uses runtime
       default if unset. May also be set in SecurityContext. If set in both
       SecurityContext and PodSecurityContext, the value specified in
       SecurityContext takes precedence for that container.

     securityContext.runAsNonRoot (boolean)   
       Indicates that the container must run as a non-root user. If true, the
       Kubelet will validate the image at runtime to ensure that it does not run
       as UID 0 (root) and fail to start the container if it does. If unset or
       false, no such validation will be performed. May also be set in
       SecurityContext. If set in both SecurityContext and PodSecurityContext,
       the value specified in SecurityContext takes precedence.

     securityContext.runAsUser (integer)   
       The UID to run the entrypoint of the container process. Defaults to user
       specified in image metadata if unspecified. May also be set in
       SecurityContext. If set in both SecurityContext and PodSecurityContext,
       the value specified in SecurityContext takes precedence for that
       container.

     securityContext.seLinuxOptions (object)   
       The SELinux context to be applied to all containers. If unspecified, the
       container runtime will allocate a random SELinux context for each
       container. May also be set in SecurityContext. If set in both
       SecurityContext and PodSecurityContext, the value specified in
       SecurityContext takes precedence for that container.

       securityContext.seLinuxOptions.level (string)   
         Level is SELinux level label that applies to the container.

       securityContext.seLinuxOptions.role (string)   
         Role is a SELinux role label that applies to the container.

       securityContext.seLinuxOptions.type (string)   
         Type is a SELinux type label that applies to the container.

       securityContext.seLinuxOptions.user (string)   
         User is a SELinux user label that applies to the container.

     securityContext.seccompProfile (object)   
       The seccomp options to use by the containers in this pod.

       securityContext.seccompProfile.type (string)   -required-
         type indicates which kind of seccomp profile will be applied. Valid
         options are:
         Localhost - a profile defined in a file on the node should be used.
         RuntimeDefault - the container runtime default profile should be used.
         Unconfined - no profile should be applied.

       securityContext.seccompProfile.localhostProfile (string)   
         localhostProfile indicates a profile defined in a file on the node
         should be used. The profile must be preconfigured on the node to work.
         Must be a descending path, relative to the kubelet's configured seccomp
         profile location. Must only be set if type is "Localhost".

     securityContext.supplementalGroups ([]integer)   
       A list of groups applied to the first process run in each container, in
       addition to the container's primary GID. If unspecified, no groups will
       be added to any container.

     securityContext.sysctls ([]object)   
       Sysctls hold a list of namespaced sysctls used for the pod. Pods with
       unsupported sysctls (by the container runtime) might fail to launch.

     securityContext.windowsOptions (object)   
       The Windows specific settings applied to all containers. If unspecified,
       the options within a container's SecurityContext will be used. If set in
       both SecurityContext and PodSecurityContext, the value specified in
       SecurityContext takes precedence.

       securityContext.windowsOptions.gmsaCredentialSpec (string)   
         GMSACredentialSpec is where the GMSA admission webhook
         (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents
         of the GMSA credential spec named by the GMSACredentialSpecName field.

       securityContext.windowsOptions.gmsaCredentialSpecName (string)   
         GMSACredentialSpecName is the name of the GMSA credential spec to use.

       securityContext.windowsOptions.runAsUserName (string)   
         The UserName in Windows to run the entrypoint of the container process.
         Defaults to the user specified in image metadata if unspecified. May
         also be set in PodSecurityContext. If set in both SecurityContext and
         PodSecurityContext, the value specified in SecurityContext takes
         precedence.

   storage (object)   
     Storage is the inteface to add pvc and pv support in redis

     storage.volumeClaimTemplate (object)   
       PersistentVolumeClaim is a user's request for and claim to a persistent
       volume

       storage.volumeClaimTemplate.apiVersion (string)   
         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

       storage.volumeClaimTemplate.kind (string)   
         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

       storage.volumeClaimTemplate.metadata (object)   
         Standard object's metadata. More info:
         https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

       storage.volumeClaimTemplate.spec (object)   
         Spec defines the desired characteristics of a volume requested by a pod
         author. More info:
         https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

         storage.volumeClaimTemplate.spec.accessModes ([]string)   
           AccessModes contains the desired access modes the volume should have.
           More info:
           https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

         storage.volumeClaimTemplate.spec.dataSource (object)   
           This field can be used to specify either: * An existing
           VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta)
           * An existing PVC (PersistentVolumeClaim) * An existing custom
           resource/object that implements data population (Alpha) In order to
           use VolumeSnapshot object types, the appropriate feature gate must be
           enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the
           provisioner or an external controller can support the specified data
           source, it will create a new volume based on the contents of the
           specified data source. If the specified data source is not supported,
           the volume will not be created and the failure will be reported as an
           event. In the future, we plan to support more data source types and
           the behavior of the provisioner may change.

           storage.volumeClaimTemplate.spec.dataSource.kind (string)   -required-
             Kind is the type of resource being referenced

           storage.volumeClaimTemplate.spec.dataSource.name (string)   -required-
             Name is the name of resource being referenced

           storage.volumeClaimTemplate.spec.dataSource.apiGroup (string)   
             APIGroup is the group for the resource being referenced. If
             APIGroup is not specified, the specified Kind must be in the core
             API group. For any other third-party types, APIGroup is required.

         storage.volumeClaimTemplate.spec.resources (object)   
           Resources represents the minimum resources the volume should have.
           More info:
           https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

           storage.volumeClaimTemplate.spec.resources.limits (object)   
             Limits describes the maximum amount of compute resources allowed.
             More info:
             https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

           storage.volumeClaimTemplate.spec.resources.requests (object)   
             Requests describes the minimum amount of compute resources
             required. If Requests is omitted for a container, it defaults to
             Limits if that is explicitly specified, otherwise to an
             implementation-defined value. More info:
             https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

         storage.volumeClaimTemplate.spec.selector (object)   
           A label query over volumes to consider for binding.

           storage.volumeClaimTemplate.spec.selector.matchExpressions ([]object)   
             matchExpressions is a list of label selector requirements. The
             requirements are ANDed.

           storage.volumeClaimTemplate.spec.selector.matchLabels (object)   
             matchLabels is a map of {key,value} pairs. A single {key,value} in
             the matchLabels map is equivalent to an element of
             matchExpressions, whose key field is "key", the operator is "In",
             and the values array contains only "value". The requirements are
             ANDed.

         storage.volumeClaimTemplate.spec.storageClassName (string)   
           Name of the StorageClass required by the claim. More info:
           https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1

         storage.volumeClaimTemplate.spec.volumeMode (string)   
           volumeMode defines what type of volume is required by the claim.
           Value of Filesystem is implied when not included in claim spec.

         storage.volumeClaimTemplate.spec.volumeName (string)   
           VolumeName is the binding reference to the PersistentVolume backing
           this claim.

       storage.volumeClaimTemplate.status (object)   
         Status represents the current information/status of a persistent volume
         claim. Read-only. More info:
         https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

         storage.volumeClaimTemplate.status.accessModes ([]string)   
           AccessModes contains the actual access modes the volume backing the
           PVC has. More info:
           https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

         storage.volumeClaimTemplate.status.capacity (object)   
           Represents the actual resources of the underlying volume.

         storage.volumeClaimTemplate.status.conditions ([]object)   
           Current Condition of persistent volume claim. If underlying
           persistent volume is being resized then the Condition will be set to
           'ResizeStarted'.

         storage.volumeClaimTemplate.status.phase (string)   
           Phase represents the current phase of PersistentVolumeClaim.

   tolerations ([]object)   

> odo catalog describe service redis-operator.v0.8.0/RedisCluster -o json | jq
{
  "kind": "Service",
  "apiVersion": "odo.dev/v1alpha1",
  "metadata": {
    "name": "redis-operator.v0.8.0/RedisCluster",
    "creationTimestamp": null
  },
  "spec": {
    "kind": "RedisCluster",
    "version": "v1beta1",
    "description": "Redis Cluster",
    "displayName": "RedisCluster",
    "schema": {
      "description": "RedisClusterSpec defines the desired state of RedisCluster",
      "type": "object",
      "required": [
        "clusterSize",
        "kubernetesConfig"
      ],
      "properties": {
        "clusterSize": {
          "type": "integer",
          "format": "int32",
          "minimum": 3
        },
        "kubernetesConfig": {
          "description": "KubernetesConfig will be the JSON struct for Basic Redis Config",
          "type": "object",
          "required": [
            "image",
            "serviceType"
          ],
          "properties": {
            "image": {
              "type": "string"
            },
            "imagePullPolicy": {
              "description": "PullPolicy describes a policy for if/when to pull a container image",
              "type": "string"
            },
            "imagePullSecrets": {
              "type": "array",
              "items": {
                "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.",
                "type": "object",
                "properties": {
                  "name": {
                    "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
                    "type": "string"
                  }
                }
              }
            },
            "redisSecret": {
              "description": "ExistingPasswordSecret is the struct to access the existing secret",
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              }
            },
            "resources": {
              "description": "ResourceRequirements describes the compute resource requirements.",
              "type": "object",
              "properties": {
                "limits": {
                  "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/",
                  "type": "object",
                  "additionalProperties": {
                    "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                    "x-kubernetes-int-or-string": true
                  }
                },
                "requests": {
                  "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/",
                  "type": "object",
                  "additionalProperties": {
                    "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                    "x-kubernetes-int-or-string": true
                  }
                }
              }
            },
            "serviceType": {
              "type": "string"
            }
          }
        },
        "nodeSelector": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "priorityClassName": {
          "type": "string"
        },
        "redisExporter": {
          "description": "RedisExporter interface will have the information for redis exporter related stuff",
          "type": "object",
          "required": [
            "image"
          ],
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "env": {
              "type": "array",
              "items": {
                "description": "EnvVar represents an environment variable present in a Container.",
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "description": "Name of the environment variable. Must be a C_IDENTIFIER.",
                    "type": "string"
                  },
                  "value": {
                    "description": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".",
                    "type": "string"
                  },
                  "valueFrom": {
                    "description": "Source for the environment variable's value. Cannot be used if value is not empty.",
                    "type": "object",
                    "properties": {
                      "configMapKeyRef": {
                        "description": "Selects a key of a ConfigMap.",
                        "type": "object",
                        "required": [
                          "key"
                        ],
                        "properties": {
                          "key": {
                            "description": "The key to select.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
                            "type": "string"
                          },
                          "optional": {
                            "description": "Specify whether the ConfigMap or its key must be defined",
                            "type": "boolean"
                          }
                        }
                      },
                      "fieldRef": {
                        "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.",
                        "type": "object",
                        "required": [
                          "fieldPath"
                        ],
                        "properties": {
                          "apiVersion": {
                            "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".",
                            "type": "string"
                          },
                          "fieldPath": {
                            "description": "Path of the field to select in the specified API version.",
                            "type": "string"
                          }
                        }
                      },
                      "resourceFieldRef": {
                        "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.",
                        "type": "object",
                        "required": [
                          "resource"
                        ],
                        "properties": {
                          "containerName": {
                            "description": "Container name: required for volumes, optional for env vars",
                            "type": "string"
                          },
                          "divisor": {
                            "description": "Specifies the output format of the exposed resources, defaults to \"1\"",
                            "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                            "x-kubernetes-int-or-string": true
                          },
                          "resource": {
                            "description": "Required: resource to select",
                            "type": "string"
                          }
                        }
                      },
                      "secretKeyRef": {
                        "description": "Selects a key of a secret in the pod's namespace",
                        "type": "object",
                        "required": [
                          "key"
                        ],
                        "properties": {
                          "key": {
                            "description": "The key of the secret to select from.  Must be a valid secret key.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
                            "type": "string"
                          },
                          "optional": {
                            "description": "Specify whether the Secret or its key must be defined",
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "image": {
              "type": "string"
            },
            "imagePullPolicy": {
              "description": "PullPolicy describes a policy for if/when to pull a container image",
              "type": "string"
            },
            "resources": {
              "description": "ResourceRequirements describes the compute resource requirements.",
              "type": "object",
              "properties": {
                "limits": {
                  "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/",
                  "type": "object",
                  "additionalProperties": {
                    "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                    "x-kubernetes-int-or-string": true
                  }
                },
                "requests": {
                  "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/",
                  "type": "object",
                  "additionalProperties": {
                    "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                    "x-kubernetes-int-or-string": true
                  }
                }
              }
            }
          }
        },
        "redisFollower": {
          "description": "RedisFollower interface will have the redis follower configuration",
          "type": "object",
          "properties": {
            "affinity": {
              "description": "Affinity is a group of affinity scheduling rules.",
              "type": "object",
              "properties": {
                "nodeAffinity": {
                  "description": "Describes node affinity scheduling rules for the pod.",
                  "type": "object",
                  "properties": {
                    "preferredDuringSchedulingIgnoredDuringExecution": {
                      "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.",
                      "type": "array",
                      "items": {
                        "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).",
                        "type": "object",
                        "required": [
                          "preference",
                          "weight"
                        ],
                        "properties": {
                          "preference": {
                            "description": "A node selector term, associated with the corresponding weight.",
                            "type": "object",
                            "properties": {
                              "matchExpressions": {
                                "description": "A list of node selector requirements by node's labels.",
                                "type": "array",
                                "items": {
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "matchFields": {
                                "description": "A list of node selector requirements by node's fields.",
                                "type": "array",
                                "items": {
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "weight": {
                            "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.",
                            "type": "integer",
                            "format": "int32"
                          }
                        }
                      }
                    },
                    "requiredDuringSchedulingIgnoredDuringExecution": {
                      "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.",
                      "type": "object",
                      "required": [
                        "nodeSelectorTerms"
                      ],
                      "properties": {
                        "nodeSelectorTerms": {
                          "description": "Required. A list of node selector terms. The terms are ORed.",
                          "type": "array",
                          "items": {
                            "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.",
                            "type": "object",
                            "properties": {
                              "matchExpressions": {
                                "description": "A list of node selector requirements by node's labels.",
                                "type": "array",
                                "items": {
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "matchFields": {
                                "description": "A list of node selector requirements by node's fields.",
                                "type": "array",
                                "items": {
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "podAffinity": {
                  "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).",
                  "type": "object",
                  "properties": {
                    "preferredDuringSchedulingIgnoredDuringExecution": {
                      "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.",
                      "type": "array",
                      "items": {
                        "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)",
                        "type": "object",
                        "required": [
                          "podAffinityTerm",
                          "weight"
                        ],
                        "properties": {
                          "podAffinityTerm": {
                            "description": "Required. A pod affinity term, associated with the corresponding weight.",
                            "type": "object",
                            "required": [
                              "topologyKey"
                            ],
                            "properties": {
                              "labelSelector": {
                                "description": "A label query over a set of resources, in this case pods.",
                                "type": "object",
                                "properties": {
                                  "matchExpressions": {
                                    "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                    "type": "array",
                                    "items": {
                                      "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                      "type": "object",
                                      "required": [
                                        "key",
                                        "operator"
                                      ],
                                      "properties": {
                                        "key": {
                                          "description": "key is the label key that the selector applies to.",
                                          "type": "string"
                                        },
                                        "operator": {
                                          "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
                                          "type": "string"
                                        },
                                        "values": {
                                          "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "matchLabels": {
                                    "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                    "type": "object",
                                    "additionalProperties": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "namespaces": {
                                "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "topologyKey": {
                                "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.",
                                "type": "string"
                              }
                            }
                          },
                          "weight": {
                            "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.",
                            "type": "integer",
                            "format": "int32"
                          }
                        }
                      }
                    },
                    "requiredDuringSchedulingIgnoredDuringExecution": {
                      "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.",
                      "type": "array",
                      "items": {
                        "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running",
                        "type": "object",
                        "required": [
                          "topologyKey"
                        ],
                        "properties": {
                          "labelSelector": {
                            "description": "A label query over a set of resources, in this case pods.",
                            "type": "object",
                            "properties": {
                              "matchExpressions": {
                                "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                "type": "array",
                                "items": {
                                  "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "key is the label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "matchLabels": {
                                "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "namespaces": {
                            "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "topologyKey": {
                            "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.",
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "podAntiAffinity": {
                  "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).",
                  "type": "object",
                  "properties": {
                    "preferredDuringSchedulingIgnoredDuringExecution": {
                      "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.",
                      "type": "array",
                      "items": {
                        "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)",
                        "type": "object",
                        "required": [
                          "podAffinityTerm",
                          "weight"
                        ],
                        "properties": {
                          "podAffinityTerm": {
                            "description": "Required. A pod affinity term, associated with the corresponding weight.",
                            "type": "object",
                            "required": [
                              "topologyKey"
                            ],
                            "properties": {
                              "labelSelector": {
                                "description": "A label query over a set of resources, in this case pods.",
                                "type": "object",
                                "properties": {
                                  "matchExpressions": {
                                    "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                    "type": "array",
                                    "items": {
                                      "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                      "type": "object",
                                      "required": [
                                        "key",
                                        "operator"
                                      ],
                                      "properties": {
                                        "key": {
                                          "description": "key is the label key that the selector applies to.",
                                          "type": "string"
                                        },
                                        "operator": {
                                          "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
                                          "type": "string"
                                        },
                                        "values": {
                                          "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "matchLabels": {
                                    "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                    "type": "object",
                                    "additionalProperties": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "namespaces": {
                                "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "topologyKey": {
                                "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.",
                                "type": "string"
                              }
                            }
                          },
                          "weight": {
                            "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.",
                            "type": "integer",
                            "format": "int32"
                          }
                        }
                      }
                    },
                    "requiredDuringSchedulingIgnoredDuringExecution": {
                      "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.",
                      "type": "array",
                      "items": {
                        "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running",
                        "type": "object",
                        "required": [
                          "topologyKey"
                        ],
                        "properties": {
                          "labelSelector": {
                            "description": "A label query over a set of resources, in this case pods.",
                            "type": "object",
                            "properties": {
                              "matchExpressions": {
                                "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                "type": "array",
                                "items": {
                                  "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "key is the label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "matchLabels": {
                                "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "namespaces": {
                            "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "topologyKey": {
                            "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.",
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "redisConfig": {
              "description": "RedisConfig defines the external configuration of Redis",
              "type": "object",
              "properties": {
                "additionalRedisConfig": {
                  "type": "string"
                }
              }
            },
            "replicas": {
              "type": "integer",
              "format": "int32"
            },
            "serviceType": {
              "type": "string"
            }
          }
        },
        "redisLeader": {
          "description": "RedisLeader interface will have the redis leader configuration",
          "type": "object",
          "properties": {
            "affinity": {
              "description": "Affinity is a group of affinity scheduling rules.",
              "type": "object",
              "properties": {
                "nodeAffinity": {
                  "description": "Describes node affinity scheduling rules for the pod.",
                  "type": "object",
                  "properties": {
                    "preferredDuringSchedulingIgnoredDuringExecution": {
                      "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.",
                      "type": "array",
                      "items": {
                        "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).",
                        "type": "object",
                        "required": [
                          "preference",
                          "weight"
                        ],
                        "properties": {
                          "preference": {
                            "description": "A node selector term, associated with the corresponding weight.",
                            "type": "object",
                            "properties": {
                              "matchExpressions": {
                                "description": "A list of node selector requirements by node's labels.",
                                "type": "array",
                                "items": {
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "matchFields": {
                                "description": "A list of node selector requirements by node's fields.",
                                "type": "array",
                                "items": {
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "weight": {
                            "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.",
                            "type": "integer",
                            "format": "int32"
                          }
                        }
                      }
                    },
                    "requiredDuringSchedulingIgnoredDuringExecution": {
                      "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.",
                      "type": "object",
                      "required": [
                        "nodeSelectorTerms"
                      ],
                      "properties": {
                        "nodeSelectorTerms": {
                          "description": "Required. A list of node selector terms. The terms are ORed.",
                          "type": "array",
                          "items": {
                            "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.",
                            "type": "object",
                            "properties": {
                              "matchExpressions": {
                                "description": "A list of node selector requirements by node's labels.",
                                "type": "array",
                                "items": {
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "matchFields": {
                                "description": "A list of node selector requirements by node's fields.",
                                "type": "array",
                                "items": {
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "podAffinity": {
                  "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).",
                  "type": "object",
                  "properties": {
                    "preferredDuringSchedulingIgnoredDuringExecution": {
                      "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.",
                      "type": "array",
                      "items": {
                        "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)",
                        "type": "object",
                        "required": [
                          "podAffinityTerm",
                          "weight"
                        ],
                        "properties": {
                          "podAffinityTerm": {
                            "description": "Required. A pod affinity term, associated with the corresponding weight.",
                            "type": "object",
                            "required": [
                              "topologyKey"
                            ],
                            "properties": {
                              "labelSelector": {
                                "description": "A label query over a set of resources, in this case pods.",
                                "type": "object",
                                "properties": {
                                  "matchExpressions": {
                                    "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                    "type": "array",
                                    "items": {
                                      "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                      "type": "object",
                                      "required": [
                                        "key",
                                        "operator"
                                      ],
                                      "properties": {
                                        "key": {
                                          "description": "key is the label key that the selector applies to.",
                                          "type": "string"
                                        },
                                        "operator": {
                                          "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
                                          "type": "string"
                                        },
                                        "values": {
                                          "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "matchLabels": {
                                    "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                    "type": "object",
                                    "additionalProperties": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "namespaces": {
                                "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "topologyKey": {
                                "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.",
                                "type": "string"
                              }
                            }
                          },
                          "weight": {
                            "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.",
                            "type": "integer",
                            "format": "int32"
                          }
                        }
                      }
                    },
                    "requiredDuringSchedulingIgnoredDuringExecution": {
                      "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.",
                      "type": "array",
                      "items": {
                        "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running",
                        "type": "object",
                        "required": [
                          "topologyKey"
                        ],
                        "properties": {
                          "labelSelector": {
                            "description": "A label query over a set of resources, in this case pods.",
                            "type": "object",
                            "properties": {
                              "matchExpressions": {
                                "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                "type": "array",
                                "items": {
                                  "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "key is the label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "matchLabels": {
                                "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "namespaces": {
                            "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "topologyKey": {
                            "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.",
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "podAntiAffinity": {
                  "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).",
                  "type": "object",
                  "properties": {
                    "preferredDuringSchedulingIgnoredDuringExecution": {
                      "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.",
                      "type": "array",
                      "items": {
                        "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)",
                        "type": "object",
                        "required": [
                          "podAffinityTerm",
                          "weight"
                        ],
                        "properties": {
                          "podAffinityTerm": {
                            "description": "Required. A pod affinity term, associated with the corresponding weight.",
                            "type": "object",
                            "required": [
                              "topologyKey"
                            ],
                            "properties": {
                              "labelSelector": {
                                "description": "A label query over a set of resources, in this case pods.",
                                "type": "object",
                                "properties": {
                                  "matchExpressions": {
                                    "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                    "type": "array",
                                    "items": {
                                      "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                      "type": "object",
                                      "required": [
                                        "key",
                                        "operator"
                                      ],
                                      "properties": {
                                        "key": {
                                          "description": "key is the label key that the selector applies to.",
                                          "type": "string"
                                        },
                                        "operator": {
                                          "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
                                          "type": "string"
                                        },
                                        "values": {
                                          "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "matchLabels": {
                                    "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                    "type": "object",
                                    "additionalProperties": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "namespaces": {
                                "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "topologyKey": {
                                "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.",
                                "type": "string"
                              }
                            }
                          },
                          "weight": {
                            "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.",
                            "type": "integer",
                            "format": "int32"
                          }
                        }
                      }
                    },
                    "requiredDuringSchedulingIgnoredDuringExecution": {
                      "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.",
                      "type": "array",
                      "items": {
                        "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running",
                        "type": "object",
                        "required": [
                          "topologyKey"
                        ],
                        "properties": {
                          "labelSelector": {
                            "description": "A label query over a set of resources, in this case pods.",
                            "type": "object",
                            "properties": {
                              "matchExpressions": {
                                "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                "type": "array",
                                "items": {
                                  "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "properties": {
                                    "key": {
                                      "description": "key is the label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "matchLabels": {
                                "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "namespaces": {
                            "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "topologyKey": {
                            "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.",
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "redisConfig": {
              "description": "RedisConfig defines the external configuration of Redis",
              "type": "object",
              "properties": {
                "additionalRedisConfig": {
                  "type": "string"
                }
              }
            },
            "replicas": {
              "type": "integer",
              "format": "int32",
              "minimum": 3
            },
            "serviceType": {
              "type": "string"
            }
          }
        },
        "resources": {
          "description": "ResourceRequirements describes the compute resource requirements.",
          "type": "object",
          "properties": {
            "limits": {
              "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/",
              "type": "object",
              "additionalProperties": {
                "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                "x-kubernetes-int-or-string": true
              }
            },
            "requests": {
              "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/",
              "type": "object",
              "additionalProperties": {
                "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                "x-kubernetes-int-or-string": true
              }
            }
          }
        },
        "securityContext": {
          "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext.  Field values of container.securityContext take precedence over field values of PodSecurityContext.",
          "type": "object",
          "properties": {
            "fsGroup": {
              "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: \n 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- \n If unset, the Kubelet will not modify the ownership and permissions of any volume.",
              "type": "integer",
              "format": "int64"
            },
            "fsGroupChangePolicy": {
              "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified defaults to \"Always\".",
              "type": "string"
            },
            "runAsGroup": {
              "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
              "type": "integer",
              "format": "int64"
            },
            "runAsNonRoot": {
              "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
              "type": "boolean"
            },
            "runAsUser": {
              "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
              "type": "integer",
              "format": "int64"
            },
            "seLinuxOptions": {
              "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container.  May also be set in SecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
              "type": "object",
              "properties": {
                "level": {
                  "description": "Level is SELinux level label that applies to the container.",
                  "type": "string"
                },
                "role": {
                  "description": "Role is a SELinux role label that applies to the container.",
                  "type": "string"
                },
                "type": {
                  "description": "Type is a SELinux type label that applies to the container.",
                  "type": "string"
                },
                "user": {
                  "description": "User is a SELinux user label that applies to the container.",
                  "type": "string"
                }
              }
            },
            "seccompProfile": {
              "description": "The seccomp options to use by the containers in this pod.",
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "localhostProfile": {
                  "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".",
                  "type": "string"
                },
                "type": {
                  "description": "type indicates which kind of seccomp profile will be applied. Valid options are: \n Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.",
                  "type": "string"
                }
              }
            },
            "supplementalGroups": {
              "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID.  If unspecified, no groups will be added to any container.",
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int64"
              }
            },
            "sysctls": {
              "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.",
              "type": "array",
              "items": {
                "description": "Sysctl defines a kernel parameter to be set",
                "type": "object",
                "required": [
                  "name",
                  "value"
                ],
                "properties": {
                  "name": {
                    "description": "Name of a property to set",
                    "type": "string"
                  },
                  "value": {
                    "description": "Value of a property to set",
                    "type": "string"
                  }
                }
              }
            },
            "windowsOptions": {
              "description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
              "type": "object",
              "properties": {
                "gmsaCredentialSpec": {
                  "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.",
                  "type": "string"
                },
                "gmsaCredentialSpecName": {
                  "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.",
                  "type": "string"
                },
                "runAsUserName": {
                  "description": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
                  "type": "string"
                }
              }
            }
          }
        },
        "storage": {
          "description": "Storage is the inteface to add pvc and pv support in redis",
          "type": "object",
          "properties": {
            "volumeClaimTemplate": {
              "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume",
              "type": "object",
              "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": {
                  "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
                  "type": "object"
                },
                "spec": {
                  "description": "Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims",
                  "type": "object",
                  "properties": {
                    "accessModes": {
                      "description": "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "dataSource": {
                      "description": "This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change.",
                      "type": "object",
                      "required": [
                        "kind",
                        "name"
                      ],
                      "properties": {
                        "apiGroup": {
                          "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
                          "type": "string"
                        },
                        "kind": {
                          "description": "Kind is the type of resource being referenced",
                          "type": "string"
                        },
                        "name": {
                          "description": "Name is the name of resource being referenced",
                          "type": "string"
                        }
                      }
                    },
                    "resources": {
                      "description": "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources",
                      "type": "object",
                      "properties": {
                        "limits": {
                          "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/",
                          "type": "object",
                          "additionalProperties": {
                            "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                            "x-kubernetes-int-or-string": true
                          }
                        },
                        "requests": {
                          "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/",
                          "type": "object",
                          "additionalProperties": {
                            "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                            "x-kubernetes-int-or-string": true
                          }
                        }
                      }
                    },
                    "selector": {
                      "description": "A label query over volumes to consider for binding.",
                      "type": "object",
                      "properties": {
                        "matchExpressions": {
                          "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                          "type": "array",
                          "items": {
                            "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
                            "type": "object",
                            "required": [
                              "key",
                              "operator"
                            ],
                            "properties": {
                              "key": {
                                "description": "key is the label key that the selector applies to.",
                                "type": "string"
                              },
                              "operator": {
                                "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
                                "type": "string"
                              },
                              "values": {
                                "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "matchLabels": {
                          "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "storageClassName": {
                      "description": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1",
                      "type": "string"
                    },
                    "volumeMode": {
                      "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",
                      "type": "string"
                    },
                    "volumeName": {
                      "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.",
                      "type": "string"
                    }
                  }
                },
                "status": {
                  "description": "Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims",
                  "type": "object",
                  "properties": {
                    "accessModes": {
                      "description": "AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "capacity": {
                      "description": "Represents the actual resources of the underlying volume.",
                      "type": "object",
                      "additionalProperties": {
                        "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                        "x-kubernetes-int-or-string": true
                      }
                    },
                    "conditions": {
                      "description": "Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.",
                      "type": "array",
                      "items": {
                        "description": "PersistentVolumeClaimCondition contails details about state of pvc",
                        "type": "object",
                        "required": [
                          "status",
                          "type"
                        ],
                        "properties": {
                          "lastProbeTime": {
                            "description": "Last time we probed the condition.",
                            "type": "string",
                            "format": "date-time"
                          },
                          "lastTransitionTime": {
                            "description": "Last time the condition transitioned from one status to another.",
                            "type": "string",
                            "format": "date-time"
                          },
                          "message": {
                            "description": "Human-readable message indicating details about last transition.",
                            "type": "string"
                          },
                          "reason": {
                            "description": "Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.",
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "type": {
                            "description": "PersistentVolumeClaimConditionType is a valid value of PersistentVolumeClaimCondition.Type",
                            "type": "string"
                          }
                        }
                      }
                    },
                    "phase": {
                      "description": "Phase represents the current phase of PersistentVolumeClaim.",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "tolerations": {
          "type": "array",
          "items": {
            "description": "The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.",
            "type": "object",
            "properties": {
              "effect": {
                "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.",
                "type": "string"
              },
              "key": {
                "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.",
                "type": "string"
              },
              "operator": {
                "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.",
                "type": "string"
              },
              "tolerationSeconds": {
                "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.",
                "type": "integer",
                "format": "int64"
              },
              "value": {
                "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.",
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
> odo catalog describe service redis-operator.v0.8.0 -o json | jq
{
  "kind": "ServiceList",
  "apiVersion": "odo.dev/v1alpha1",
  "metadata": {
    "name": "redis-operator.v0.8.0",
    "creationTimestamp": null
  },
  "spec": {
    "displayName": "Redis Operator",
    "description": "A Golang based redis operator that will make/oversee Redis\nstandalone/cluster mode setup on top of the Kubernetes. It can create a\nredis cluster setup with best practices on Cloud as well as the Bare metal\nenvironment. Also, it provides an in-built monitoring capability using\nredis-exporter.\n\n### Supported Features\n\nHere the features which are supported by this operator:-\n- Redis cluster/standalone mode setup\n- Redis cluster failover and recovery\n- Inbuilt monitoring with prometheus exporter\n- Dynamic storage provisioning with pvc template\n- Resources restrictions with k8s requests and limits\n- Password/Password-less setup\n- External configuration support for leader and follower\n- Node selector and affinity for follower and leader\n- Priority class to manage setup priority\n- SecurityContext to manipulate kernel parameters\n\n### Documentation\n\n[Documentation](https://ot-container-kit.github.io/redis-operator/)\n\n### Getting Help\nThis project is managed by OpsTree Solutions. If you have any queries or\nsuggestions, mail us at opensource@opstree.com.\n\n### Contributing\n\nYou can contribute to this project by:-\n- Raising Bugs and Feature Requests\n- Fixing issue by opening a Pull Request\n- Improving Documentation\n\n### License\n\nLogging Operator is licensed under [Apache License, Version\n2.0](https://github.com/OT-CONTAINER-KIT/redis-operator/blob/master/LICENSE)\n",
    "crds": [
      {
        "kind": "redisclusters.redis.redis.opstreelabs.in",
        "description": "Redis Cluster"
      },
      {
        "kind": "redis.redis.redis.opstreelabs.in",
        "description": "Redis"
      }
    ]
  }
}
mohammedzee1000 commented 3 years ago

Now time for human readable

mohammedzee1000 commented 3 years ago
> odo catalog describe service redis-operator.v0.8.0
NAME:       redis-operator.v0.8.0
DESCRIPTION:
A Golang based redis operator that will make/oversee Redis
standalone/cluster mode setup on top of the Kubernetes. It can create a
redis cluster setup with best practices on Cloud as well as the Bare metal
environment. Also, it provides an in-built monitoring capability using
redis-exporter.

### Supported Features

Here the features which are supported by this operator:-
- Redis cluster/standalone mode setup
- Redis cluster failover and recovery
- Inbuilt monitoring with prometheus exporter
- Dynamic storage provisioning with pvc template
- Resources restrictions with k8s requests and limits
- Password/Password-less setup
- External configuration support for leader and follower
- Node selector and affinity for follower and leader
- Priority class to manage setup priority
- SecurityContext to manipulate kernel parameters

### Documentation

[Documentation](https://ot-container-kit.github.io/redis-operator/)

### Getting Help
This project is managed by OpsTree Solutions. If you have any queries or
suggestions, mail us at opensource@opstree.com.

### Contributing

You can contribute to this project by:-
- Raising Bugs and Feature Requests
- Fixing issue by opening a Pull Request
- Improving Documentation

### License

Logging Operator is licensed under [Apache License, Version
2.0](https://github.com/OT-CONTAINER-KIT/redis-operator/blob/master/LICENSE)

CRDs:
NAME        DESCRIPTION
RedisCluster    Redis Cluster
Redis       Redis
mohammedzee1000 commented 3 years ago
> odo catalog describe service redis-operator.v0.8.0 -o json | jq
{
  "kind": "ServiceList",
  "apiVersion": "odo.dev/v1alpha1",
  "metadata": {
    "name": "redis-operator.v0.8.0",
    "creationTimestamp": null
  },
  "spec": {
    "displayName": "Redis Operator",
    "description": "A Golang based redis operator that will make/oversee Redis\nstandalone/cluster mode setup on top of the Kubernetes. It can create a\nredis cluster setup with best practices on Cloud as well as the Bare metal\nenvironment. Also, it provides an in-built monitoring capability using\nredis-exporter.\n\n### Supported Features\n\nHere the features which are supported by this operator:-\n- Redis cluster/standalone mode setup\n- Redis cluster failover and recovery\n- Inbuilt monitoring with prometheus exporter\n- Dynamic storage provisioning with pvc template\n- Resources restrictions with k8s requests and limits\n- Password/Password-less setup\n- External configuration support for leader and follower\n- Node selector and affinity for follower and leader\n- Priority class to manage setup priority\n- SecurityContext to manipulate kernel parameters\n\n### Documentation\n\n[Documentation](https://ot-container-kit.github.io/redis-operator/)\n\n### Getting Help\nThis project is managed by OpsTree Solutions. If you have any queries or\nsuggestions, mail us at opensource@opstree.com.\n\n### Contributing\n\nYou can contribute to this project by:-\n- Raising Bugs and Feature Requests\n- Fixing issue by opening a Pull Request\n- Improving Documentation\n\n### License\n\nLogging Operator is licensed under [Apache License, Version\n2.0](https://github.com/OT-CONTAINER-KIT/redis-operator/blob/master/LICENSE)\n",
    "crds": [
      {
        "kind": "RedisCluster",
        "description": "Redis Cluster"
      },
      {
        "kind": "Redis",
        "description": "Redis"
      }
    ]
  }
}