Bug 1956311 - Retrieving Compliance Operator raw results document pod example does not work as expected
Summary: Retrieving Compliance Operator raw results document pod example does not work...
Keywords:
Status: NEW
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Vikram Goyal
QA Contact: Xiaoli Tian
Vikram Goyal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-03 13:02 UTC by harsharm
Modified: 2021-05-04 07:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description harsharm 2021-05-03 13:02:49 UTC
Document URL: https://docs.openshift.com/container-platform/4.7/security/compliance_operator/compliance-operator-raw-results.html

Section Number and Name: #3 Example pod

Describe the issue: Code for a "Example" pod, which does not work, while creating the pod the below error is seen
~~~
error: error parsing example.yaml: error converting YAML to JSON: yaml: line 12: did not find expected '-' indicator
~~~

Suggestions for improvement: There seem to be a problem with the indent. 

original:
spec:
  containers:
    - name: pv-extract-pod

fixes:
spec:
  containers:
  - name: pv-extract-pod

Additional information: When the indent is changed as mentioned the pod is created as expected.


Note You need to log in before you can comment on or make changes to this bug.