Open GrahamDumpleton opened 8 years ago
Perhaps related:
$ oc run busybox-shell --image busybox --env VAR='"' --dry-run
Error: invalid argument "VAR=\"" for --env: line 1, column 4: bare " in non-quoted-field
This latter one only occurs with oc
client for 1.1.1. It doesn't appear in oc
client for 1.1. The initial problem above with '=' appears with both.
Unable to replicate this issue with version
oc v1.3.0-rc1+df345fa-1358-dirty
kubernetes v1.4.0+776c994
features: Basic-Auth
Server https://10.13.137.149:8443
openshift v1.3.0-rc1
kubernetes v1.3.0+52492b4
I can successfully run the command causing this issue:
$ oc run busybox-shell --image busybox --env VAR='A=B'
deploymentconfig "busybox-shell" created
closing this issue, please re-open if you're still able to replicate
Please comment on the secondary issue I raised. That still occurs:
$ oc run busybox-shell --image busybox --env VAR='"' --dry-run
Error: invalid argument "VAR=\"" for --env: line 1, column 4: bare " in non-quoted-field
Version:
$ oc version
oc v1.3.1
kubernetes v1.3.0+52492b4
features: Basic-Auth
Server https://localhost:8443
openshift v1.3.1
kubernetes v1.3.0+52492b4
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
/lifecycle frozen
Problem still occurs on 3.7.
$ oc run busybox-shell --image busybox --env VAR='"' --dry-run
Error: invalid argument "VAR=\"" for --env: line 1, column 4: bare " in non-quoted-field
Appears that you cannot supply environment variables via
--env
option ofoc run
which have a '=' embedded within the value.This was with
oc version
of:A quick test of
oc new-app
didn't appear to have same issue.Or at least it wasn't rejected straight away on doing a
--dry-run
.