Skip to content

contrib/pkg/awstagdeprovision: Move cobra code into the hiveutil command - #45

Merged
openshift-merge-robot merged 2 commits into
openshift:masterfrom
wking:remove-move-command-from-deprovision-library
Oct 19, 2018
Merged

openshift-merge-robot merged 2 commits into
openshift:masterfrom
wking:remove-move-command-from-deprovision-library

Conversation

@wking

@wking wking commented Oct 18, 2018

Copy link
Copy Markdown
Member

Builds on #44; review that first.

The cobra code is part of the command-line interface, and removing it reduces the dependency load on folks who are calling the library package from Go.

Also, when building the new hiveutil I see:

$ go build -v ./contrib/cmd/hiveutil
github.com/openshift/hive/pkg/apis/hive/v1alpha1
pkg/apis/hive/v1alpha1/clusterdeployment_types.go:89:44: cannot use ClusterDeployment literal (type *ClusterDeployment) as type runtime.Object in argument to SchemeBuilder.Register:
																												 *ClusterDeployment does not implement runtime.Object (missing DeepCopyObject method)
pkg/apis/hive/v1alpha1/clusterdeployment_types.go:89:70: cannot use ClusterDeploymentList literal (type *ClusterDeploymentList) as type runtime.Object in argument to SchemeBuilder.Register:
																												 *ClusterDeploymentList does not implement runtime.Object (missing DeepCopyObject method)
pkg/apis/hive/v1alpha1/dnszone_types.go:87:34: cannot use DNSZone literal (type *DNSZone) as type runtime.Object in argument to SchemeBuilder.Register:
																							 *DNSZone does not implement runtime.Object (missing DeepCopyObject method)
pkg/apis/hive/v1alpha1/dnszone_types.go:87:50: cannot use DNSZoneList literal (type *DNSZoneList) as type runtime.Object in argument to SchemeBuilder.Register:
																							 *DNSZoneList does not implement runtime.Object (missing DeepCopyObject method)

But I see that in master too (it's being imported via contrib/pkg/installmanager), so I'm leaving it alone as an orthogonal issue.

wking added 2 commits October 18, 2018 13:53
And document the matching logic.  This makes usage more obvious for
folks reading [1], who currently have no guidance on what awsFilter
is.

[1]: https://godoc.org/github.com/openshift/hive/contrib/pkg/awstagdeprovision
The cobra code is part of the command-line interface, and removing it
reduces the dependency load on folks who are calling the library
package from Go.
@joelddiaz

Copy link
Copy Markdown
Contributor

/retest

@joelddiaz

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 19, 2018
@openshift-merge-robot
openshift-merge-robot merged commit 2aa33ed into openshift:master Oct 19, 2018
@wking
wking deleted the remove-move-command-from-deprovision-library branch October 19, 2018 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants