Skip to content

Commit 2163c90

Browse files
committed
Remove the import policy on jenkins ImageStream
Fixes #957
1 parent f375e26 commit 2163c90

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

deploy

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def update_resources(args, resources):
102102
kind = resource['kind'].lower()
103103
print(f"Would {action} {kind} {resource['metadata']['name']}")
104104
continue
105+
print(f"oc {action} -f - {json.dumps(resource)}")
105106
out = subprocess.run([args.oc_cmd, action, '--filename', '-'],
106107
input=json.dumps(resource), encoding='utf-8',
107108
check=True, stdout=subprocess.PIPE)

manifests/jenkins-s2i.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ objects:
5757
namespace: openshift
5858
referencePolicy:
5959
type: Source
60-
importPolicy:
61-
scheduled: true
6260
- kind: BuildConfig
6361
apiVersion: v1
6462
metadata:
@@ -105,5 +103,3 @@ objects:
105103
namespace: openshift
106104
referencePolicy:
107105
type: Source
108-
importPolicy:
109-
scheduled: true

0 commit comments

Comments
 (0)