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 Files for ECR Repository
Signed-off-by: Christopher Hein <me@christopherhein.com>
- Loading branch information
1 parent
79aefff
commit e6bad3f
Showing
16 changed files
with
1,057 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
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 | ||
|
||
// ECRRepository defines the base resource | ||
type ECRRepository struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata"` | ||
Spec ECRRepositorySpec `json:"spec"` | ||
Status ECRRepositoryStatus `json:"status"` | ||
Output ECRRepositoryOutput `json:"output"` | ||
AdditionalResources ECRRepositoryAdditionalResources `json:"additionalResources"` | ||
} | ||
// ECRRepositorySpec defines the Spec resource for ECRRepository | ||
type ECRRepositorySpec struct { | ||
CloudFormationTemplateName string `json:"cloudFormationTemplateName"` | ||
CloudFormationTemplateNamespace string `json:"cloudFormationTemplateNamespace"` | ||
} | ||
|
||
|
||
// ECRRepositoryOutput defines the output resource for ECRRepository | ||
type ECRRepositoryOutput struct { | ||
RepositoryName string `json:"repositoryName"` | ||
} | ||
|
||
// ECRRepositoryStatus holds the status of the Cloudformation template | ||
type ECRRepositoryStatus struct { | ||
ResourceStatus string `json:"resourceStatus"` | ||
ResourceStatusReason string `json:"resourceStatusReason"` | ||
StackID string `json:"stackID"` | ||
} | ||
|
||
// ECRRepositoryAdditionalResources holds the additional resources | ||
type ECRRepositoryAdditionalResources struct { | ||
} | ||
|
||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
|
||
// ECRRepositoryList defines the list attribute for the ECRRepository type | ||
type ECRRepositoryList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata"` | ||
Items []ECRRepository `json:"items"` | ||
} | ||
|
||
func init() { | ||
localSchemeBuilder.Register(addECRRepositoryTypes) | ||
} | ||
|
||
func addECRRepositoryTypes(scheme *runtime.Scheme) error { | ||
scheme.AddKnownTypes(SchemeGroupVersion, | ||
&ECRRepository{}, | ||
&ECRRepositoryList{}, | ||
) | ||
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
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.
157 changes: 157 additions & 0 deletions
157
pkg/client/clientset/versioned/typed/operator.aws/v1alpha1/ecrrepository.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.