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.
Adding Generated Code for SNS Subscriptions
Signed-off-by: Christopher Hein <me@christopherhein.com>
- Loading branch information
1 parent
e8e0d9a
commit 1bfa2b8
Showing
33 changed files
with
2,124 additions
and
227 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
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
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
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
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,69 @@ | ||
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 | ||
|
||
// SNSSubscription defines the base resource | ||
type SNSSubscription struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata"` | ||
Spec SNSSubscriptionSpec `json:"spec"` | ||
Status SNSSubscriptionStatus `json:"status"` | ||
Output SNSSubscriptionOutput `json:"output"` | ||
AdditionalResources SNSSubscriptionAdditionalResources `json:"additionalResources"` | ||
} | ||
// SNSSubscriptionSpec defines the Spec resource for SNSSubscription | ||
type SNSSubscriptionSpec struct { | ||
CloudFormationTemplateName string `json:"cloudFormationTemplateName"` | ||
CloudFormationTemplateNamespace string `json:"cloudFormationTemplateNamespace"` | ||
RollbackCount int `json:"rollbackCount"` | ||
TopicName string `json:"topicName"` | ||
Protocol string `json:"protocol"` | ||
Endpoint string `json:"endpoint"` | ||
QueueURL string `json:"queueURL"` | ||
} | ||
|
||
|
||
// SNSSubscriptionOutput defines the output resource for SNSSubscription | ||
type SNSSubscriptionOutput struct { | ||
SubscriptionARN string `json:"subscriptionARN"` | ||
} | ||
|
||
// SNSSubscriptionStatus holds the status of the Cloudformation template | ||
type SNSSubscriptionStatus struct { | ||
ResourceStatus string `json:"resourceStatus"` | ||
ResourceStatusReason string `json:"resourceStatusReason"` | ||
StackID string `json:"stackID"` | ||
} | ||
|
||
// SNSSubscriptionAdditionalResources holds the additional resources | ||
type SNSSubscriptionAdditionalResources struct { | ||
} | ||
|
||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
|
||
// SNSSubscriptionList defines the list attribute for the SNSSubscription type | ||
type SNSSubscriptionList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata"` | ||
Items []SNSSubscription `json:"items"` | ||
} | ||
|
||
func init() { | ||
localSchemeBuilder.Register(addSNSSubscriptionTypes) | ||
} | ||
|
||
func addSNSSubscriptionTypes(scheme *runtime.Scheme) error { | ||
scheme.AddKnownTypes(SchemeGroupVersion, | ||
&SNSSubscription{}, | ||
&SNSSubscriptionList{}, | ||
) | ||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion) | ||
return nil | ||
} |
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
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
127 changes: 127 additions & 0 deletions
127
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.
4 changes: 4 additions & 0 deletions
4
pkg/client/clientset/versioned/typed/operator.aws/v1alpha1/fake/fake_operator.aws_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
128 changes: 128 additions & 0 deletions
128
pkg/client/clientset/versioned/typed/operator.aws/v1alpha1/fake/fake_snssubscription.go
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.