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

Commit e6bad3f

Browse files
Adding Generated Files for ECR Repository
Signed-off-by: Christopher Hein <[email protected]>
1 parent 79aefff commit e6bad3f

File tree

16 files changed

+1057
-2
lines changed

16 files changed

+1057
-2
lines changed

pkg/apis/operator.aws/v1alpha1/dynamodb.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ type DynamoDBRangeAttribute struct {
3434
type DynamoDBSpec struct {
3535
CloudFormationTemplateName string `json:"cloudFormationTemplateName"`
3636
CloudFormationTemplateNamespace string `json:"cloudFormationTemplateNamespace"`
37-
TableName string `json:"tableName"`
3837
RangeAttribute DynamoDBRangeAttribute `json:"rangeAttribute"`
3938
ReadCapacityUnits int `json:"readCapacityUnits"`
4039
WriteCapacityUnits int `json:"writeCapacityUnits"`
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
package v1alpha1
2+
3+
import (
4+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
5+
"k8s.io/apimachinery/pkg/runtime"
6+
)
7+
8+
// +genclient
9+
// +genclient:noStatus
10+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
11+
12+
// ECRRepository defines the base resource
13+
type ECRRepository struct {
14+
metav1.TypeMeta `json:",inline"`
15+
metav1.ObjectMeta `json:"metadata"`
16+
Spec ECRRepositorySpec `json:"spec"`
17+
Status ECRRepositoryStatus `json:"status"`
18+
Output ECRRepositoryOutput `json:"output"`
19+
AdditionalResources ECRRepositoryAdditionalResources `json:"additionalResources"`
20+
}
21+
// ECRRepositorySpec defines the Spec resource for ECRRepository
22+
type ECRRepositorySpec struct {
23+
CloudFormationTemplateName string `json:"cloudFormationTemplateName"`
24+
CloudFormationTemplateNamespace string `json:"cloudFormationTemplateNamespace"`
25+
}
26+
27+
28+
// ECRRepositoryOutput defines the output resource for ECRRepository
29+
type ECRRepositoryOutput struct {
30+
RepositoryName string `json:"repositoryName"`
31+
}
32+
33+
// ECRRepositoryStatus holds the status of the Cloudformation template
34+
type ECRRepositoryStatus struct {
35+
ResourceStatus string `json:"resourceStatus"`
36+
ResourceStatusReason string `json:"resourceStatusReason"`
37+
StackID string `json:"stackID"`
38+
}
39+
40+
// ECRRepositoryAdditionalResources holds the additional resources
41+
type ECRRepositoryAdditionalResources struct {
42+
}
43+
44+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
45+
46+
// ECRRepositoryList defines the list attribute for the ECRRepository type
47+
type ECRRepositoryList struct {
48+
metav1.TypeMeta `json:",inline"`
49+
metav1.ListMeta `json:"metadata"`
50+
Items []ECRRepository `json:"items"`
51+
}
52+
53+
func init() {
54+
localSchemeBuilder.Register(addECRRepositoryTypes)
55+
}
56+
57+
func addECRRepositoryTypes(scheme *runtime.Scheme) error {
58+
scheme.AddKnownTypes(SchemeGroupVersion,
59+
&ECRRepository{},
60+
&ECRRepositoryList{},
61+
)
62+
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
63+
return nil
64+
}

pkg/apis/operator.aws/v1alpha1/s3bucket.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ type S3BucketLogging struct {
2828
type S3BucketSpec struct {
2929
CloudFormationTemplateName string `json:"cloudFormationTemplateName"`
3030
CloudFormationTemplateNamespace string `json:"cloudFormationTemplateNamespace"`
31-
BucketName string `json:"bucketName"`
3231
Versioning bool `json:"versioning"`
3332
Logging S3BucketLogging `json:"logging"`
3433
}

pkg/apis/operator.aws/v1alpha1/zz_generated.deepcopy.go

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

pkg/client/clientset/versioned/typed/operator.aws/v1alpha1/ecrrepository.go

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

0 commit comments

Comments
 (0)