From 336d4e71ce4e488710859207942f34e08d51cec1 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Fri, 29 Sep 2017 20:35:54 +1000 Subject: [PATCH] trying to fix "field is immutable" error from oc apply I don't think we should be trying to set creationTimestamp, pretty sure this is the field that OpenShift is complaining about. Limited to stage because I don't want to risk breaking anything. --- roles/openshift/project/templates/project.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/openshift/project/templates/project.yml b/roles/openshift/project/templates/project.yml index aef2ccd932..1af28adc75 100644 --- a/roles/openshift/project/templates/project.yml +++ b/roles/openshift/project/templates/project.yml @@ -4,7 +4,10 @@ metadata: annotations: openshift.io/description: "{{description}}" openshift.io/display-name: "{{app}}" +{% if env == 'staging' %} +{% else %} creationTimestamp: null +{% endif %} name: "{{app}}" spec: {} status: {}