Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1717997

Summary: Bad indendation in web-allow-production network policy example YAML
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: aos-bugs, jokerman, mmccomas, yapei
Target Milestone: ---   
Target Release: 4.1.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the web console NetworkPolicy YAML template `web-allow-production` had incorrect indentation, preventing it from being created successfully. The indentation has been fixed, and the YAML template now works without modification.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-26 08:50:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Samuel Padgett 2019-06-06 15:54:03 UTC
One of the network policy examples has incorrect indentation in its YAML. See fix in

https://github.com/openshift/console/pull/1603

Comment 2 Yadan Pei 2019-06-21 02:25:00 UTC
Network Policy example 'web-allow-production' has correct indentation

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: web-allow-production
  namespace: yapei1
spec:
  podSelector:
    matchLabels:
      app: web
  ingress:
    - from:
        - namespaceSelector:
            matchLabels:
              env: production


Verified on 4.1.0-0.nightly-2019-06-20-015058

Comment 4 errata-xmlrpc 2019-06-26 08:50:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:1589