Skip to content

[POC] resolve manual ICTs in DCs - #7439

Closed
0xmichalis wants to merge 1 commit into
openshift:masterfrom
0xmichalis:resolve-manual-icts
Closed

0xmichalis wants to merge 1 commit into
openshift:masterfrom
0xmichalis:resolve-manual-icts

Conversation

@0xmichalis

Copy link
Copy Markdown
Contributor

Addresses #6934

latestVersion bumps need some polishing (callers of the generator - image and config change controllers - should decide about latestVersion bumps and not the generator) and we can get this in if we agree on it.

@ironcladlou @smarterclayton @mfojtik

@smarterclayton

Copy link
Copy Markdown
Contributor

Basically, this makes automatic: false triggers integrate automatically, but no trigger builds. So if you want to stop getting triggers, you have to remove the trigger. The original reason we didn't do that is because then you would lose the record that this comes from another image stream, even if it's disabled.

I think this has to either be a new boolean or a new string constant. And we'd have to add it on build configs @bparees

@bparees

bparees commented Feb 18, 2016

Copy link
Copy Markdown
Contributor

@smarterclayton i don't think BCs have any use for this.

We already resolve your IST when your build is run. If you don't want the IST resolved when the build is run, don't use an IST (use a DockerImageRef).

ICTs are (almost) completely independent of resolution in BCs.

I haven't seen any user concerns about the current capabilities of BCs with respect to image triggering and image resolution.

@smarterclayton

Copy link
Copy Markdown
Contributor

I don't want incompatible behavior of Triggers - I want them converging. Nothing special about BC vs DC, just they are both triggers, triggers should be consistent, and should make the same decisions. Deployment Configs need to reference the image stream because it's not stored on the pod template.

However, for build configs, how do I express that I want to build from the stable last image? Set from ImageStreamImage and still have a trigger? If I remove the trigger, I don't know where the image came from. So that argues that there is still a "refresh" flag on BC triggers.

@bparees

bparees commented Feb 19, 2016

Copy link
Copy Markdown
Contributor

However, for build configs, how do I express that I want to build from the stable last image?

point to the stable imagestreamtag. Every time we build, we'll resolve that imagestreamtag to the current imageid. Whether that build is triggered manually, or via an ICT (and ICT that can be monitoring any imagestreamtag you want, not just the one the build uses as an input).

If you want it even more stable than that, point to an ImageStreamImage. And again you can still have triggers if you want to kick off the build, because they are triggers, not resolvers.

If I remove the trigger, I don't know where the image came from. So that argues that there is still a "refresh" flag on BC triggers.

i don't know what this means. you don't know where what image came from? Builds always know what image they used to perform the build, regardless of how/why the build was created.

@smarterclayton

smarterclayton commented Feb 19, 2016 via email

Copy link
Copy Markdown
Contributor

@bparees

bparees commented Feb 19, 2016

Copy link
Copy Markdown
Contributor

Distinction is between "build from exactly this FROM" and "where did this exact FROM come from". The latter is lost if the strategy points to an ISI and the trigger is removed.

i don't see how a trigger provides that information, or would be the right place to store that information. A trigger that doesn't launch a build is not a trigger and I don't want to overload them.

Let's discuss in realtime.

@0xmichalis 0xmichalis changed the title resolve manual ICTs in DCs [DO NOT MERGE] resolve manual ICTs in DCs Feb 19, 2016
@0xmichalis 0xmichalis changed the title [DO NOT MERGE] resolve manual ICTs in DCs [POC] resolve manual ICTs in DCs Apr 26, 2016
@openshift-bot

Copy link
Copy Markdown
Contributor

Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 26, 2016
@0xmichalis 0xmichalis closed this May 1, 2016
@0xmichalis
0xmichalis deleted the resolve-manual-icts branch May 1, 2016 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants