Skip to content
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

add migration for templateinstance status object references #19664

Merged
merged 1 commit into from
May 10, 2018

Conversation

bparees
Copy link
Contributor

@bparees bparees commented May 9, 2018

No description provided.

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 9, 2018
@bparees
Copy link
Contributor Author

bparees commented May 9, 2018

/assign @deads2k

@deads2k ptal

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bparees

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@bparees
Copy link
Contributor Author

bparees commented May 9, 2018

/retest

1 similar comment
@bparees
Copy link
Contributor Author

bparees commented May 9, 2018

/retest

{"BuildConfig", "v1"}: {"BuildConfig", "build.openshift.io/v1"},
{"Build", "v1"}: {"Build", "build.openshift.io/v1"},
{"Route", "v1"}: {"Route", "route.openshift.io/v1"},
// legacy oapi group, for the lazy
Copy link
Contributor

Choose a reason for hiding this comment

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

for the wrong. Do we actually have this anywhere? it shouldn't be valid.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pulled this from what legacy-hpa was doing... happy to remove it if we don't think it's needed.

}

func (o *MigrateTemplateInstancesOptions) checkAndTransform(templateInstanceRaw runtime.Object) (migrate.Reporter, error) {
templateInstance, wasTI := templateInstanceRaw.(*templateapi.TemplateInstance)
Copy link
Contributor

Choose a reason for hiding this comment

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

optional nit: standard is ok, not wasTI, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto, copied from legacyhpa. frankly I like the wasX naming better :)

@deads2k
Copy link
Contributor

deads2k commented May 10, 2018

optional nits.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 10, 2018
@bparees
Copy link
Contributor Author

bparees commented May 10, 2018

/retest

@openshift-merge-robot openshift-merge-robot merged commit e840ccc into openshift:master May 10, 2018
@bparees bparees deleted the migrate branch May 19, 2018 20:26
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants