Bug 1585719 - oc cluster up doesn't set appropriate pull policy for imagestreams for kube resources
Summary: oc cluster up doesn't set appropriate pull policy for imagestreams for kube r...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.10.0
Assignee: David Eads
QA Contact: Dongbo Yan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-04 13:50 UTC by Erik M Jacobs
Modified: 2018-07-30 19:17 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-30 19:16:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:1816 0 None None None 2018-07-30 19:17:31 UTC

Description Erik M Jacobs 2018-06-04 13:50:32 UTC
oc cluster up currently doesn't create an admission controller / pull policy that lets imagestreams be used for k8s resources.

oc v3.9.0+191fece
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth GSSAPI Kerberos SPNEGO

Comment 2 Michal Fojtik 2018-06-05 08:35:31 UTC
Fix: https://github.com/openshift/origin/pull/19908

Comment 3 Dongbo Yan 2018-06-06 05:51:56 UTC
Verified
# oc version
oc v3.10.0-0.60.0
kubernetes v1.10.0+b81c8f8

# oc cluster up  --image='xxxx/openshift3/ose-${component}:${version}' --loglevel=8 --base-dir=dir

# docker exec 6dd070d8684fc74554af76bf0e00615ecc27ea4460d2f95cdc50fec9868ecc65 cat /etc/origin/master/master-config.yaml
admissionConfig:
  pluginConfig:
    openshift.io/ImagePolicy:
      configuration:
        apiVersion: v1
        executionRules:
        - matchImageAnnotations:
          - key: images.openshift.io/deny-execution
            value: "true"
          name: execution-denied
          onResources:
          - resource: pods
          - resource: builds
          reject: true
          skipOnResolutionFailure: true
        kind: ImagePolicyConfig
      location: ""

Comment 5 errata-xmlrpc 2018-07-30 19:16:54 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-2018:1816


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