Skip to content

Commit

Permalink
Revert "Use lowered resource kind as file name"
Browse files Browse the repository at this point in the history
This reverts commit aaba479.
  • Loading branch information
south37 committed Jan 4, 2021
1 parent 80e5913 commit d7c30ff
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/model/file/mixins.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ limitations under the License.
package file

import (
"strings"

"sigs.k8s.io/kubebuilder/v2/pkg/model/resource"
)

Expand Down Expand Up @@ -132,15 +130,13 @@ func (m *BoilerplateMixin) InjectBoilerplate(boilerplate string) {

// ResourceMixin provides templates with a injectable resource field
type ResourceMixin struct {
Resource *resource.Resource
LoweredResourceKind string
Resource *resource.Resource
}

// InjectResource implements HasResource
func (m *ResourceMixin) InjectResource(res *resource.Resource) {
if m.Resource == nil {
m.Resource = res
m.LoweredResourceKind = strings.ToLower(res.Kind)
}
}

Expand Down

0 comments on commit d7c30ff

Please sign in to comment.