Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Commit 32b543e

Browse files
Adding Code Generation Source Changes
**Why:** * modifies the groupName for the generated files. Signed-off-by: Christopher Hein <[email protected]>
1 parent 3408965 commit 32b543e

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

code-generation/pkg/codegen/assets/cft.go.templ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"errors"
1010
"github.com/aws/aws-sdk-go/aws"
1111
"github.com/aws/aws-sdk-go/service/cloudformation"
12-
awsV1alpha1 "github.com/christopherhein/aws-operator/pkg/apis/operator.aws/v1alpha1"
12+
awsV1alpha1 "github.com/christopherhein/aws-operator/pkg/apis/service-operator.aws/v1alpha1"
1313
"github.com/christopherhein/aws-operator/pkg/config"
1414
"github.com/christopherhein/aws-operator/pkg/helpers"
1515
)

code-generation/pkg/codegen/assets/controller.go.templ

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import (
2020
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
2121
"k8s.io/client-go/tools/cache"
2222

23-
awsapi "github.com/christopherhein/aws-operator/pkg/apis/operator.aws"
24-
awsV1alpha1 "github.com/christopherhein/aws-operator/pkg/apis/operator.aws/v1alpha1"
25-
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/operator.aws/v1alpha1"
23+
awsapi "github.com/christopherhein/aws-operator/pkg/apis/service-operator.aws"
24+
awsV1alpha1 "github.com/christopherhein/aws-operator/pkg/apis/service-operator.aws/v1alpha1"
25+
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/service-operator.aws/v1alpha1"
2626
{{- if .Spec.Customizations.Package}}
2727
"{{.Spec.Customizations.Package}}"
2828
{{- end}}
@@ -49,12 +49,12 @@ var Resource = opkit.CustomResource{
4949
type Controller struct {
5050
config *config.Config
5151
context *opkit.Context
52-
awsclientset awsclient.OperatorV1alpha1Interface
52+
awsclientset awsclient.ServiceoperatorV1alpha1Interface
5353
topicARN string
5454
}
5555

5656
// NewController create controller for watching object store custom resources created
57-
func NewController(config *config.Config, context *opkit.Context, awsclientset awsclient.OperatorV1alpha1Interface) *Controller {
57+
func NewController(config *config.Config, context *opkit.Context, awsclientset awsclient.ServiceoperatorV1alpha1Interface) *Controller {
5858
return &Controller{
5959
config: config,
6060
context: context,

code-generation/pkg/codegen/assets/template_functions.go.templ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package helpers
77

88
import (
9-
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/operator.aws/v1alpha1"
9+
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/service-operator.aws/v1alpha1"
1010
"github.com/christopherhein/aws-operator/pkg/config"
1111
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1212
)

code-generation/pkg/codegen/codegen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (c *Codegen) Run() error {
111111
models.Items = append(models.Items, parsedModel)
112112

113113
operatorPath := rootPath + "pkg/operator/" + parsedModel.Spec.Resource.Name
114-
apiPath := rootPath + "pkg/apis/operator.aws/v1alpha1"
114+
apiPath := rootPath + "pkg/apis/service-operator.aws/v1alpha1"
115115

116116
createDirIfNotExist(operatorPath)
117117

code-generation/pkg/codegen/templates.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)