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 oadm migrate volumesource #14810

Merged

Conversation

enj
Copy link
Contributor

@enj enj commented Jun 21, 2017

oadm migrate volumesource confirms that all objects that contain volumeSource.metadata do not have it set. volumeSource.metadata is deprecated and will no longer be available in the next release. Thus all objects that contain a non-nil volumeSource.metadata must be manually converted to prevent data loss.

The following resource types are checked by this command:

  • cronjobs.batch
  • daemonsets.extensions
  • deploymentconfigs.apps.openshift.io
  • deployments.extensions
  • jobs.batch
  • podpresets.settings.k8s.io
  • pods
  • podtemplates
  • replicasets.extensions
  • replicationcontrollers
  • statefulsets.apps

No resources are mutated.

Signed-off-by: Monis Khan mkhan@redhat.com

Fixes #14677

cc @deads2k @smarterclayton @liggitt @simo5 @sdodson @openshift/security

[test]

@enj enj requested a review from deads2k June 21, 2017 17:46
@enj enj force-pushed the enj/i/volume_source_metadata/14677 branch from 81e44dc to ac241da Compare June 21, 2017 20:41
@enj
Copy link
Contributor Author

enj commented Jun 22, 2017

re[test] flake #14823

@@ -49,6 +49,8 @@ func AlwaysRequiresMigration(_ *resource.Info) (Reporter, error) {
return ReporterBool(true), nil
}

var NotChanged = ReporterBool(false)
Copy link
Contributor

Choose a reason for hiding this comment

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

godoc

* jobs
* podpresets
* pods
* podsecuritypolicyreviews
Copy link
Contributor

Choose a reason for hiding this comment

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

not persisted, so it doesn't need to be checked.

* podpresets
* pods
* podsecuritypolicyreviews
* podsecuritypolicyselfsubjectreviews
Copy link
Contributor

Choose a reason for hiding this comment

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

not persisted, so it doesn't need to be checked.

* pods
* podsecuritypolicyreviews
* podsecuritypolicyselfsubjectreviews
* podsecuritypolicysubjectreviews
Copy link
Contributor

Choose a reason for hiding this comment

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

not persisted, so it doesn't need to be checked.

* podsecuritypolicyselfsubjectreviews
* podsecuritypolicysubjectreviews
* podtemplates
* replicasets
Copy link
Contributor

Choose a reason for hiding this comment

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

list groups too. replicasets.extensions

Out: out,
ErrOut: errout,
AllNamespaces: true,
Include: []string{
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this thing a string and not a GroupResource?

@deads2k
Copy link
Contributor

deads2k commented Jun 22, 2017

Minor comments, lgtm otherwise. Open a pull that deletes this too and we'll merge it after we branch 3.6.

enj added 3 commits June 24, 2017 14:45
Signed-off-by: Monis Khan <mkhan@redhat.com>
This command confirms that all objects that contain
volumeSource.metadata do not have it set.  volumeSource.metadata is
deprecated and will no longer be available in the next release.  Thus
all objects that contain a non-nil volumeSource.metadata must be
manually converted to prevent data loss.

The following resource types are checked by this command:

* cronjobs.batch
* daemonsets.extensions
* deploymentconfigs.apps.openshift.io
* deployments.extensions
* jobs.batch
* podpresets.settings.k8s.io
* pods
* podtemplates
* replicasets.extensions
* replicationcontrollers
* statefulsets.apps

No resources are mutated.

Signed-off-by: Monis Khan <mkhan@redhat.com>
Signed-off-by: Monis Khan <mkhan@redhat.com>
@enj enj force-pushed the enj/i/volume_source_metadata/14677 branch from ac241da to 44025d9 Compare June 24, 2017 18:54
@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 44025d9

@enj
Copy link
Contributor Author

enj commented Jun 24, 2017

[merge][severity:blocker] all comments addressed.

@deads2k can you do a sanity check on the resource.group list.

@enj
Copy link
Contributor Author

enj commented Jun 24, 2017

Opened #14873 for 3.7

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2579/) (Base Commit: 9b2743f) (PR Branch Commit: 44025d9)

@openshift openshift deleted a comment from openshift-bot Jun 26, 2017
@openshift openshift deleted a comment from openshift-bot Jun 26, 2017
@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 44025d9

@openshift-bot
Copy link
Contributor

openshift-bot commented Jun 26, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1132/) (Base Commit: 1fb3ade) (PR Branch Commit: 44025d9) (Extended Tests: blocker) (Image: devenv-rhel7_6396)

@openshift-bot openshift-bot merged commit 0d15b16 into openshift:master Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants