Skip to content

Conversation

@smarterclayton
Copy link
Contributor

Use the correct JSONPath syntax (this may be something to backport to
3.6.1).

@bparees @mfojtik @soltysh

Use the correct JSONPath syntax (this may be something to backport to
3.6.1).
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 8, 2017
@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 8, 2017
@bparees
Copy link
Contributor

bparees commented Sep 8, 2017

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 8, 2017
@bparees
Copy link
Contributor

bparees commented Sep 8, 2017

/hold
(we're post-devcut)

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 8, 2017
@smarterclayton
Copy link
Contributor Author

smarterclayton commented Sep 8, 2017 via email

@smarterclayton smarterclayton removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Sep 8, 2017
@smarterclayton
Copy link
Contributor Author

Oh, I didn't see you lgtm. We need to talk about some migration implications first - removing label.

@smarterclayton smarterclayton added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 8, 2017
@bparees
Copy link
Contributor

bparees commented Sep 8, 2017

Oh, I didn't see you lgtm.

yeah i was trying to get fancy.

We need to talk about some migration implications first - removing label.

but it's alpha! :)

@mfojtik
Copy link
Contributor

mfojtik commented Sep 8, 2017

@smarterclayton what happen to existing resources with this annotation? will they stop working? or we don't care because it was alpha?

Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall lgtm, but I'd like a clear answer wrt to migration path.

// container image references changed when an image stream tag is updated. Today, only
// containers can be specified by fieldPath.
const TriggerAnnotationKey = "image.alpha.openshift.io/triggers"
const TriggerAnnotationKey = "image.openshift.io/triggers"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll point out here, what @mfojtik pointed in the comments. Are you thinking of existing users? Do you plan some kind of migration/release notes about this change. Why not supporting both of the annotation for a release for a smooth migration and change only after?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My current thinking is how #16225 does it

}
// TODO: potentially make this more flexible, like whitespace
if name := strings.TrimSuffix(strings.TrimPrefix(selector, "?(@.name='"), "')"); name != selector {
if name := strings.TrimSuffix(strings.TrimPrefix(selector, "?(@.name==\""), "\")"); name != selector {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I start to wonder what is worse, jsonpath or regexp, 🤔

@smarterclayton
Copy link
Contributor Author

smarterclayton commented Sep 8, 2017 via email

@smarterclayton
Copy link
Contributor Author

/test

@smarterclayton
Copy link
Contributor Author

After thinking about this more I don't think we should provide a migration. Alpha is alpha, and this was only in 3.6. The reason why serving certs deserve a migration of some form is that we are using them in deployed code and have been using them since 3.3. This feature has a smaller window, and our general statement of alpha being unsupported and for preview stands.

@bparees
Copy link
Contributor

bparees commented Sep 16, 2017

I'm all for anything that sets a precedent like this :)

@smarterclayton
Copy link
Contributor Author

/retest

@smarterclayton smarterclayton removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 16, 2017
@smarterclayton
Copy link
Contributor Author

/retest

@soltysh
Copy link
Contributor

soltysh commented Sep 18, 2017

After thinking about this more I don't think we should provide a migration. Alpha is alpha, and this was only in 3.6. The reason why serving certs deserve a migration of some form is that we are using them in deployed code and have been using them since 3.3. This feature has a smaller window, and our general statement of alpha being unsupported and for preview stands.

How much more work is to provide the migration. I like precedents (sometimes), but at the same time I'd like to be nice (at least try) for our users and provide the with tooling for migration.

@smarterclayton
Copy link
Contributor Author

smarterclayton commented Sep 18, 2017 via email

@soltysh
Copy link
Contributor

soltysh commented Sep 18, 2017

Considering this landed in 3.6 (out for a few weeks) and that we are considering backporting the fix, it's hard to say that any amount of work is worth it.

If we're going to invest the effort, there are better places to do so.

OK, I think the last sentence convinced me more the the former 😉

@soltysh
Copy link
Contributor

soltysh commented Sep 18, 2017

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 18, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bparees, smarterclayton, soltysh

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue

@openshift-merge-robot openshift-merge-robot merged commit d6d3f97 into openshift:master Sep 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants