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

Commit

Permalink
Adding updated references to pkg/client and pkg/api
Browse files Browse the repository at this point in the history
**Why:**

* Updated references to new package name

**This change addresses the need by:**

* closes #93

Signed-off-by: Christopher Hein <me@christopherhein.com>
  • Loading branch information
christopherhein committed Oct 1, 2018
1 parent 119c6cc commit 1d119ee
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ cd ${scriptdir}/vendor/k8s.io/code-generator && ./generate-groups.sh \
all \
${projectdir}/pkg/client \
${projectdir}/pkg/apis \
"operator.aws:v1alpha1" \
"service-operator.aws:v1alpha1" \
2 changes: 1 addition & 1 deletion configs/aws-service-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ items:
- create
- delete
- apiGroups:
- operator.aws
- service-operator.aws
resources:
- "*"
verbs:
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudformationtemplates/dynamodb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: CloudFormationTemplate
metadata:
name: dynamodb
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudformationtemplates/ecrrepository.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: CloudFormationTemplate
metadata:
name: ecrrepository
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudformationtemplates/s3bucket.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: CloudFormationTemplate
metadata:
name: s3bucket
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudformationtemplates/snssubscription.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: CloudFormationTemplate
metadata:
name: snssubscription
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudformationtemplates/snstopic.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: CloudFormationTemplate
metadata:
name: snstopic
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudformationtemplates/sqsqueue.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: CloudFormationTemplate
metadata:
name: sqsqueue
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamodb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: DynamoDB
metadata:
name: example-table-name
Expand Down
2 changes: 1 addition & 1 deletion examples/ecrrepository.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: ECRRepository
metadata:
name: example-repository-name
2 changes: 1 addition & 1 deletion examples/s3bucket.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: S3Bucket
metadata:
name: Private
Expand Down
6 changes: 3 additions & 3 deletions examples/snssqssub.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: SNSTopic
metadata:
name: example-sns-topic

---
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: SQSQueue
metadata:
name: example-sqs-queue-name
Expand All @@ -18,7 +18,7 @@ spec:
visibilityTimeout: 30

---
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: SNSSubscription
metadata:
name: example-subscription-name
Expand Down
2 changes: 1 addition & 1 deletion examples/snssubscription.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: SNSSubscription
metadata:
name: example-sns-subscription-name
Expand Down
2 changes: 1 addition & 1 deletion examples/snstopic.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: SNSTopic
metadata:
name: example-sns-topic-name
Expand Down
2 changes: 1 addition & 1 deletion examples/sqsqueue.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.aws/v1alpha1
apiVersion: service-operator.aws/v1alpha1
kind: SQSQueue
metadata:
name: example-sqs-queue-name
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package config

import (
"github.com/aws/aws-sdk-go/aws/session"
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/operator.aws/v1alpha1"
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/service-operator.aws/v1alpha1"
opkit "github.com/christopherhein/operator-kit"
"github.com/sirupsen/logrus"
"k8s.io/client-go/rest"
Expand All @@ -13,7 +13,7 @@ type Config struct {
Region string
Kubeconfig string
AWSSession *session.Session
AWSClientset awsclient.OperatorV1alpha1Interface
AWSClientset awsclient.ServiceoperatorV1alpha1Interface
RESTConfig *rest.Config
Context *opkit.Context
LoggingConfig *LoggingConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
awsV1alpha1 "github.com/christopherhein/aws-operator/pkg/apis/operator.aws/v1alpha1"
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/operator.aws/v1alpha1"
awsV1alpha1 "github.com/christopherhein/aws-operator/pkg/apis/service-operator.aws/v1alpha1"
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/service-operator.aws/v1alpha1"
"github.com/christopherhein/aws-operator/pkg/config"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"reflect"
Expand Down
2 changes: 1 addition & 1 deletion pkg/helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package helpers
import (
"bytes"
"github.com/aws/aws-sdk-go/service/cloudformation"
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/operator.aws/v1alpha1"
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/service-operator.aws/v1alpha1"
"github.com/christopherhein/aws-operator/pkg/config"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"reflect"
Expand Down
4 changes: 2 additions & 2 deletions pkg/queue/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sns"
"github.com/aws/aws-sdk-go/service/sqs"
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/operator.aws/v1alpha1"
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/service-operator.aws/v1alpha1"
"github.com/christopherhein/aws-operator/pkg/config"
"github.com/christopherhein/aws-operator/pkg/helpers"
opkit "github.com/christopherhein/operator-kit"
Expand Down Expand Up @@ -71,7 +71,7 @@ func (m *MessageBody) IsComplete() bool {
}

// New will initialize the Queue object for watching
func New(config *config.Config, context *opkit.Context, awsclientset awsclient.OperatorV1alpha1Interface, timeout int) *Queue {
func New(config *config.Config, context *opkit.Context, awsclientset awsclient.ServiceoperatorV1alpha1Interface, timeout int) *Queue {
return &Queue{
config: config,
context: context,
Expand Down
4 changes: 2 additions & 2 deletions pkg/queue/types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package queue

import (
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/operator.aws/v1alpha1"
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/service-operator.aws/v1alpha1"
"github.com/christopherhein/aws-operator/pkg/config"
opkit "github.com/christopherhein/operator-kit"
)
Expand All @@ -11,7 +11,7 @@ type Queue struct {
config *config.Config
queueURL string
context *opkit.Context
awsclientset awsclient.OperatorV1alpha1Interface
awsclientset awsclient.ServiceoperatorV1alpha1Interface
timeout int64
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"time"

awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/operator.aws/v1alpha1"
awsclient "github.com/christopherhein/aws-operator/pkg/client/clientset/versioned/typed/service-operator.aws/v1alpha1"
"github.com/christopherhein/aws-operator/pkg/config"
"github.com/christopherhein/aws-operator/pkg/operator/cloudformationtemplate"
"github.com/christopherhein/aws-operator/pkg/operator/dynamodb"
Expand Down Expand Up @@ -115,7 +115,7 @@ func getClientConfig(kubeconfig string) (*rest.Config, error) {
return rest.InClusterConfig()
}

func createContext(kubeconfig string) (*opkit.Context, *rest.Config, awsclient.OperatorV1alpha1Interface, error) {
func createContext(kubeconfig string) (*opkit.Context, *rest.Config, awsclient.ServiceoperatorV1alpha1Interface, error) {
config, err := getClientConfig(kubeconfig)
if err != nil {
return nil, nil, nil, fmt.Errorf("failed to get k8s config. %+v", err)
Expand Down

0 comments on commit 1d119ee

Please sign in to comment.