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

Commit 42443f1

Browse files
Adding Code Generated Files
**Why:** * This adds the code generated files for the cft resource
1 parent 116f74b commit 42443f1

File tree

25 files changed

+1664
-0
lines changed

25 files changed

+1664
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
// CloudFormationTemplate defines the base resource
13+
type CloudFormationTemplate struct {
14+
metav1.TypeMeta `json:",inline"`
15+
metav1.ObjectMeta `json:"metadata"`
16+
Data CloudFormationTemplateData `json:"data"`
17+
Status CloudFormationTemplateStatus `json:"status"`
18+
Output CloudFormationTemplateOutput `json:"output"`
19+
AdditionalResources CloudFormationTemplateAdditionalResources `json:"additionalResources"`
20+
}
21+
// CloudFormationTemplateData defines the Data resource for CloudFormationTemplate
22+
type CloudFormationTemplateData struct {
23+
CloudFormationTemplateName string `json:"cloudFormationTemplateName"`
24+
CloudFormationTemplateNamespace string `json:"cloudFormationTemplateNamespace"`
25+
Key string `json:"key"`
26+
Template string `json:"template"`
27+
}
28+
29+
30+
// CloudFormationTemplateOutput defines the output resource for CloudFormationTemplate
31+
type CloudFormationTemplateOutput struct {
32+
URL string `json:"url"`
33+
}
34+
35+
// CloudFormationTemplateStatus holds the status of the Cloudformation template
36+
type CloudFormationTemplateStatus struct {
37+
ResourceStatus string `json:"resourceStatus"`
38+
ResourceStatusReason string `json:"resourceStatusReason"`
39+
}
40+
41+
// CloudFormationTemplateAdditionalResources holds the additional resources
42+
type CloudFormationTemplateAdditionalResources struct {
43+
}
44+
45+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
46+
47+
// CloudFormationTemplateList defines the list attribute for the CloudFormationTemplate type
48+
type CloudFormationTemplateList struct {
49+
metav1.TypeMeta `json:",inline"`
50+
metav1.ListMeta `json:"metadata"`
51+
Items []CloudFormationTemplate `json:"items"`
52+
}
53+
54+
func init() {
55+
localSchemeBuilder.Register(addCloudFormationTemplateTypes)
56+
}
57+
58+
func addCloudFormationTemplateTypes(scheme *runtime.Scheme) error {
59+
scheme.AddKnownTypes(SchemeGroupVersion,
60+
&CloudFormationTemplate{},
61+
&CloudFormationTemplateList{},
62+
)
63+
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
64+
return nil
65+
}

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

Lines changed: 152 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/clientset.go

Lines changed: 100 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/doc.go

Lines changed: 20 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)