Skip to content

Add oadm migrate volumesource - #14810

Merged
openshift-bot merged 3 commits into
openshift:masterfrom
enj:enj/i/volume_source_metadata/14677
Jun 26, 2017
Merged

openshift-bot merged 3 commits into
openshift:masterfrom
enj:enj/i/volume_source_metadata/14677

Conversation

@enj

@enj enj commented Jun 21, 2017 •

Copy link
Copy Markdown
Contributor

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 [email protected]

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

enj commented Jun 22, 2017

Copy link
Copy Markdown
Contributor Author

re[test] flake #14823

return ReporterBool(true), nil
}

var NotChanged = ReporterBool(false)

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

deads2k commented Jun 22, 2017

Copy link
Copy Markdown
Contributor

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
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 <[email protected]>
@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
Copy Markdown
Contributor

Evaluated for origin test up to 44025d9

@enj

enj commented Jun 24, 2017

Copy link
Copy Markdown
Contributor Author

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

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

@enj

enj commented Jun 24, 2017

Copy link
Copy Markdown
Contributor Author

Opened #14873 for 3.7

@openshift-bot

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Evaluated for origin merge up to 44025d9

@openshift-bot

openshift-bot commented Jun 26, 2017 •

Copy link
Copy Markdown
Contributor

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