Re: Updating the clusterquota object

2016-11-08 Thread Ben Pritchett
I suppose we'll need to use "oc update -f $template" and track our clusterquota templates (oc edit and oc patch aren't the nicest things to idempotently automate). The nice thing about having --dry-run associated is at least we wouldn't have to maintain YAML templates, and we could rely on the

Re: Updating the clusterquota object

2016-11-08 Thread David Eads
All the basic CRUD commands work, so you can run `oc edit clusterquota/name`, `oc patch clusterquota/name `, or `oc update -f `. On Tue, Nov 8, 2016 at 11:06 AM, Ben Pritchett wrote: > Is there a method for updating clusterquotas that have already been > created?

Updating the clusterquota object

2016-11-08 Thread Ben Pritchett
Is there a method for updating clusterquotas that have already been created? Referencing the creation process here: https://docs.openshift.com/container-platform/3.3/admin_guide/multiproject_quota.html#multi-project-quotas-selecting-projects There isn't a "oc update clusterquota foo" and the

Re: Error: valueFrom fieldRef resource => ...env[5].valueFrom.fieldRef.fieldPath: Required value

2016-11-08 Thread Stéphane Klein
2016-11-08 16:43 GMT+01:00 Marko Lukša : > Your version of oc is too old. Your file works for me, when I use 1.3.0+, > but I get the same error as you when using 1.2.0. > Thanks ! I've created this issue: https://github.com/openshift/origin/issues/11836 « Suggestion:

Re: Error: valueFrom fieldRef resource => ...env[5].valueFrom.fieldRef.fieldPath: Required value

2016-11-08 Thread Marko Lukša
Your version of oc is too old. Your file works for me, when I use 1.3.0+, but I get the same error as you when using 1.2.0. On 08. 11. 2016 16:22, Stéphane Klein wrote: > This error occurs when you specify multiple field references simultaneously like fieldRef and resourceFieldRef together.

Re: Error: valueFrom fieldRef resource => ...env[5].valueFrom.fieldRef.fieldPath: Required value

2016-11-08 Thread Avesh Agarwal
On Tue, Nov 8, 2016 at 10:22 AM, Stéphane Klein wrote: > > This error occurs when you specify multiple field references > simultaneously like fieldRef and resourceFieldRef together. > > I've only resourceFieldRef here: > > - name: MEMORY_LIMIT >

Re: Error: valueFrom fieldRef resource => ...env[5].valueFrom.fieldRef.fieldPath: Required value

2016-11-08 Thread Stéphane Klein
> This error occurs when you specify multiple field references simultaneously like fieldRef and resourceFieldRef together. I've only resourceFieldRef here: - name: MEMORY_LIMIT valueFrom: resourceFieldRef: resource: limits.memory -

Re: Error: valueFrom fieldRef resource => ...env[5].valueFrom.fieldRef.fieldPath: Required value

2016-11-08 Thread Stéphane Klein
https://gist.github.com/harobed/fc24a7766dbcf2d9e61f42dd8a968a6c 2016-11-08 16:03 GMT+01:00 Avesh Agarwal : > > > On Tue, Nov 8, 2016 at 8:50 AM, Stéphane Klein < > cont...@stephane-klein.info> wrote: > >> >> >> 2016-11-08 13:43 GMT+01:00 Avesh Agarwal :

Re: Error: valueFrom fieldRef resource => ...env[5].valueFrom.fieldRef.fieldPath: Required value

2016-11-08 Thread Avesh Agarwal
On Tue, Nov 8, 2016 at 8:50 AM, Stéphane Klein wrote: > > > 2016-11-08 13:43 GMT+01:00 Avesh Agarwal : > >> >> >> On Tue, Nov 8, 2016 at 5:44 AM, Stéphane Klein < >> cont...@stephane-klein.info> wrote: >> >>> Hi, >>> >>> I've this

Re: Error: valueFrom fieldRef resource => ...env[5].valueFrom.fieldRef.fieldPath: Required value

2016-11-08 Thread Stéphane Klein
2016-11-08 13:43 GMT+01:00 Avesh Agarwal : > > > On Tue, Nov 8, 2016 at 5:44 AM, Stéphane Klein < > cont...@stephane-klein.info> wrote: > >> Hi, >> >> I've this ReplicationController: >> >> apiVersion: v1 >> kind: List >> metadata: {} >> items: >> - apiVersion: v1 >> kind:

Re: Upgrading to 1.3 / 3.3

2016-11-08 Thread Philippe Lafoucrière
On Mon, Nov 7, 2016 at 5:31 PM, Diego Castro wrote: > Hi Philippe i have upgraded without major issues using blue/green upgrade. > The only thing was the secured registry that i managed to solve turning off > the hosted registry at inventory file. > Thanks for

Re: Error: valueFrom fieldRef resource => ...env[5].valueFrom.fieldRef.fieldPath: Required value

2016-11-08 Thread Avesh Agarwal
On Tue, Nov 8, 2016 at 5:44 AM, Stéphane Klein wrote: > Hi, > > I've this ReplicationController: > > apiVersion: v1 > kind: List > metadata: {} > items: > - apiVersion: v1 > kind: ReplicationController > metadata: > labels: > metrics-infra:

Error: valueFrom fieldRef resource => ...env[5].valueFrom.fieldRef.fieldPath: Required value

2016-11-08 Thread Stéphane Klein
Hi, I've this ReplicationController: apiVersion: v1 kind: List metadata: {} items: - apiVersion: v1 kind: ReplicationController metadata: labels: metrics-infra: hawkular-cassandra name: hawkular-cassandra type: hawkular-cassandra name: hawkular-cassandra-1 spec: