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

Commit

Permalink
Adding Generated Files for ECR Repository
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hein <me@christopherhein.com>
  • Loading branch information
christopherhein committed Aug 25, 2018
1 parent 79aefff commit e6bad3f
Show file tree
Hide file tree
Showing 16 changed files with 1,057 additions and 2 deletions.
1 change: 0 additions & 1 deletion pkg/apis/operator.aws/v1alpha1/dynamodb.go
Expand Up @@ -34,7 +34,6 @@ type DynamoDBRangeAttribute struct {
type DynamoDBSpec struct {
CloudFormationTemplateName string `json:"cloudFormationTemplateName"`
CloudFormationTemplateNamespace string `json:"cloudFormationTemplateNamespace"`
TableName string `json:"tableName"`
RangeAttribute DynamoDBRangeAttribute `json:"rangeAttribute"`
ReadCapacityUnits int `json:"readCapacityUnits"`
WriteCapacityUnits int `json:"writeCapacityUnits"`
Expand Down
64 changes: 64 additions & 0 deletions pkg/apis/operator.aws/v1alpha1/ecrrepository.go
@@ -0,0 +1,64 @@
package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)

// +genclient
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// ECRRepository defines the base resource
type ECRRepository struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`
Spec ECRRepositorySpec `json:"spec"`
Status ECRRepositoryStatus `json:"status"`
Output ECRRepositoryOutput `json:"output"`
AdditionalResources ECRRepositoryAdditionalResources `json:"additionalResources"`
}
// ECRRepositorySpec defines the Spec resource for ECRRepository
type ECRRepositorySpec struct {
CloudFormationTemplateName string `json:"cloudFormationTemplateName"`
CloudFormationTemplateNamespace string `json:"cloudFormationTemplateNamespace"`
}


// ECRRepositoryOutput defines the output resource for ECRRepository
type ECRRepositoryOutput struct {
RepositoryName string `json:"repositoryName"`
}

// ECRRepositoryStatus holds the status of the Cloudformation template
type ECRRepositoryStatus struct {
ResourceStatus string `json:"resourceStatus"`
ResourceStatusReason string `json:"resourceStatusReason"`
StackID string `json:"stackID"`
}

// ECRRepositoryAdditionalResources holds the additional resources
type ECRRepositoryAdditionalResources struct {
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// ECRRepositoryList defines the list attribute for the ECRRepository type
type ECRRepositoryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []ECRRepository `json:"items"`
}

func init() {
localSchemeBuilder.Register(addECRRepositoryTypes)
}

func addECRRepositoryTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&ECRRepository{},
&ECRRepositoryList{},
)
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil
}
1 change: 0 additions & 1 deletion pkg/apis/operator.aws/v1alpha1/s3bucket.go
Expand Up @@ -28,7 +28,6 @@ type S3BucketLogging struct {
type S3BucketSpec struct {
CloudFormationTemplateName string `json:"cloudFormationTemplateName"`
CloudFormationTemplateNamespace string `json:"cloudFormationTemplateNamespace"`
BucketName string `json:"bucketName"`
Versioning bool `json:"versioning"`
Logging S3BucketLogging `json:"logging"`
}
Expand Down
127 changes: 127 additions & 0 deletions pkg/apis/operator.aws/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e6bad3f

Please sign in to comment.