-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeploymentConfig export always contains reference to old Namespace #10091
Comments
The concrete use case that we are looking at is moving ALL resources within the project to a different project/namespace. |
@mfojtik is oc export your team? |
@bparees I think so (@pweil- ?). @abhgupta @damemi what if the ICT.From namespace is there intentionally and you really looking for a change in the image stream tag defined in namespace other than the current namespace. For example you have a "canary" namespace, where you deploy when the image is changed and you promote the image to another namespace? Would that be a valid case? If yes, then the solution here might be to opt-out the namespace when the namespace matches the namespace from where the DC is being exported. @deads2k @liggitt agree? |
For most of our API, Oh, and our server-side export logic only gets an "on/off" flag on requests, no details. |
and if you specify -o template you probably want "Y" where "Y" is "make the namespace field a parameter with a default value of either X or notX" |
s/-o template/--as-template/ |
@mfojtik |
@deads2k sure, but we aren't using that in origin now. Also, this is about handling a field specific to an origin resource, which sounds like an origin problem (unless we implement something like https://trello.com/c/pqGl8CVe/276-5-api-types-should-be-able-to-express-do-not-export). |
We tried here: #8570, but we opened kubernetes/kubernetes#24855 to try to achieve some parity upstream first. |
We didn't use to pin the object reference namespace but ever since we started indexing configs based on those references we need them to be fully expanded. Agreed that |
I can see both use cases. If you're exporting the whole project and moving all resources to a new one, you want the refs localized (namespace removed). If you're just exporting a dc and expecting it to work in a new namespace, you want the ref to stay absolute |
Both are valid. I think that |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
When exporting a DeploymentConfig to either JSON or YAML, there is a field entry added to the exported template under
Spec.Triggers.ImageChangeParams.From
with the Namespace the DC is currently in. Is this an intentional feature? There doesn't seem to be any documentation on it. It's possible that, when exporting a DC, a user may not want any references to the Namespace from which it was exported (such as in the case of re-creating that DC in a different Namespace).Steps To Reproduce
oc export -o yaml dc
(note: this also occurs with other
oc
commands such asoc get
as well as JSON)Current Result
Expected Result
It would be nice to be able to exclude the
namespace
field when exporting these kind of resources.The text was updated successfully, but these errors were encountered: