Skip to content

Commit

Permalink
delint
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren committed Jul 21, 2020
1 parent 9b5dc4d commit 68ae1d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kube/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func CreateResourceProvider(directory, workload string) (*ResourceProvider, erro
return CreateResourceProviderFromCluster()
}

// CreateResourceProviderFromWorkload creates a new ResourceProvider that just contains one workload
func CreateResourceProviderFromWorkload(workload string) (*ResourceProvider, error) {
kubeConf, configError := config.GetConfig()
if configError != nil {
Expand Down
1 change: 1 addition & 0 deletions pkg/kube/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type GenericWorkload struct {
OriginalObjectJSON []byte
}

// NewGenericWorkloadFromUnstructured creates a workload from an unstructured.Unstructured
func NewGenericWorkloadFromUnstructured(kind string, unst *unstructured.Unstructured) (GenericWorkload, error) {
workload := GenericWorkload{
Kind: kind,
Expand Down

0 comments on commit 68ae1d0

Please sign in to comment.