This repository has been archived by the owner on Nov 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Why:** * This adds the code generated files for the cft resource
- Loading branch information
1 parent
116f74b
commit 42443f1
Showing
25 changed files
with
1,664 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
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 | ||
|
||
// CloudFormationTemplate defines the base resource | ||
type CloudFormationTemplate struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata"` | ||
Data CloudFormationTemplateData `json:"data"` | ||
Status CloudFormationTemplateStatus `json:"status"` | ||
Output CloudFormationTemplateOutput `json:"output"` | ||
AdditionalResources CloudFormationTemplateAdditionalResources `json:"additionalResources"` | ||
} | ||
// CloudFormationTemplateData defines the Data resource for CloudFormationTemplate | ||
type CloudFormationTemplateData struct { | ||
CloudFormationTemplateName string `json:"cloudFormationTemplateName"` | ||
CloudFormationTemplateNamespace string `json:"cloudFormationTemplateNamespace"` | ||
Key string `json:"key"` | ||
Template string `json:"template"` | ||
} | ||
|
||
|
||
// CloudFormationTemplateOutput defines the output resource for CloudFormationTemplate | ||
type CloudFormationTemplateOutput struct { | ||
URL string `json:"url"` | ||
} | ||
|
||
// CloudFormationTemplateStatus holds the status of the Cloudformation template | ||
type CloudFormationTemplateStatus struct { | ||
ResourceStatus string `json:"resourceStatus"` | ||
ResourceStatusReason string `json:"resourceStatusReason"` | ||
} | ||
|
||
// CloudFormationTemplateAdditionalResources holds the additional resources | ||
type CloudFormationTemplateAdditionalResources struct { | ||
} | ||
|
||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
|
||
// CloudFormationTemplateList defines the list attribute for the CloudFormationTemplate type | ||
type CloudFormationTemplateList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata"` | ||
Items []CloudFormationTemplate `json:"items"` | ||
} | ||
|
||
func init() { | ||
localSchemeBuilder.Register(addCloudFormationTemplateTypes) | ||
} | ||
|
||
func addCloudFormationTemplateTypes(scheme *runtime.Scheme) error { | ||
scheme.AddKnownTypes(SchemeGroupVersion, | ||
&CloudFormationTemplate{}, | ||
&CloudFormationTemplateList{}, | ||
) | ||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion) | ||
return nil | ||
} |
152 changes: 152 additions & 0 deletions
152
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.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.