DG 8 Operator explain or describe fields
Environment
- Red hat OpenShift Container Platform (OCP)
- 4.x
- Red Hat Data Grid (RHDG)
- 8.x
- DG Operator
Issue
How to describe operators on DG operator CR?
Resolution
Use oc explain for acquiring more information of a resource and its fields, like any object in OCP, one can describe (get more information on the possible fields) via oc explain infinispan and go down the depth:
| Command | Returns |
|---|---|
| $ oc explain infinispan | returns apiversion, kind, metada, and spec, and status |
| $ oc explain infinispan.spec | returns affinity, autoscale, cloundEvents, confiListener, confiMapName, container, dependencies, expose, image, logging, replicas, security, service, upgrades |
| $ oc explain infinispan.spec.container | cpu, extraJvmOpts, memory |
Example explaining the field cpus:
$ oc explain infinispan.spec.container.cpu
KIND: Infinispan
VERSION: infinispan.org/v1
FIELD: cpu <string>
DESCRIPTION:
<empty>
For custom configuration see Using custom configuration in DG 8 via Operator.
Product(s)
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.