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

Commit

Permalink
Adding Code Generated Files
Browse files Browse the repository at this point in the history
**Why:**

* This adds the code generated files for the cft resource
  • Loading branch information
christopherhein committed Aug 2, 2018
1 parent 116f74b commit 42443f1
Show file tree
Hide file tree
Showing 25 changed files with 1,664 additions and 0 deletions.
65 changes: 65 additions & 0 deletions pkg/apis/operator.aws/v1alpha1/cloudformationtemplate.go
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 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.

100 changes: 100 additions & 0 deletions pkg/client/clientset/versioned/clientset.go

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

20 changes: 20 additions & 0 deletions pkg/client/clientset/versioned/doc.go

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

Loading

0 comments on commit 42443f1

Please sign in to comment.