-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for SPKS and implement sts resizing
Signed-off-by: Nicolas Bigler <[email protected]>
- Loading branch information
Showing
19 changed files
with
1,649 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build generate | ||
|
||
// Remove existing manifests | ||
|
||
// Generate deepcopy methodsets and CRD manifests | ||
|
||
// Generate crossplane-runtime methodsets (resource.Claim, etc) | ||
//go:generate go run -tags generate github.com/crossplane/crossplane-tools/cmd/angryjet generate-methodsets --header-file=../../.github/boilerplate.go.txt ./... | ||
|
||
package syntools |
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,35 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
type CompositeRedisInstance struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec CompositeRedisInstanceSpec `json:"spec"` | ||
Status CompositeRedisInstanceStatus `json:"status,omitempty"` | ||
} | ||
|
||
type CompositeRedisInstanceStatus struct { | ||
xpv1.ResourceStatus `json:",inline"` | ||
} | ||
|
||
type CompositeRedisInstanceSpec struct { | ||
xpv1.ResourceSpec `json:",inline"` | ||
} | ||
|
||
// +kubebuilder:object:generate=true | ||
// +kubebuilder:object:root=true | ||
|
||
// CompositeRedisInstanceList represents a list of composites | ||
type CompositeRedisInstanceList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
|
||
Items []CompositeRedisInstance `json:"items"` | ||
} |
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,35 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
type CompositeMariaDBInstance struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec CompositeMariaDBInstanceSpec `json:"spec"` | ||
Status CompositeMariaDBInstanceStatus `json:"status,omitempty"` | ||
} | ||
|
||
type CompositeMariaDBInstanceStatus struct { | ||
xpv1.ResourceStatus `json:",inline"` | ||
} | ||
|
||
type CompositeMariaDBInstanceSpec struct { | ||
xpv1.ResourceSpec `json:",inline"` | ||
} | ||
|
||
// +kubebuilder:object:generate=true | ||
// +kubebuilder:object:root=true | ||
|
||
// CompositeMariaDBInstanceList represents a list of composites | ||
type CompositeMariaDBInstanceList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
|
||
Items []CompositeMariaDBInstance `json:"items"` | ||
} |
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,30 @@ | ||
// +kubebuilder:object:generate=true | ||
// +groupName=vshn.appcat.vshn.io | ||
// +versionName=v1 | ||
|
||
package v1alpha1 | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/runtime/schema" | ||
"sigs.k8s.io/controller-runtime/pkg/scheme" | ||
) | ||
|
||
var ( | ||
// GroupVersion is group version used to register these objects | ||
GroupVersion = schema.GroupVersion{Group: "syn.tools", Version: "v1alpha1"} | ||
|
||
// SchemeBuilder is used to add go types to the GroupVersionKind scheme | ||
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} | ||
|
||
// AddToScheme adds the types in this group-version to the given scheme. | ||
AddToScheme = SchemeBuilder.AddToScheme | ||
) | ||
|
||
func init() { | ||
SchemeBuilder.Register( | ||
&CompositeRedisInstance{}, | ||
&CompositeRedisInstanceList{}, | ||
&CompositeMariaDBInstance{}, | ||
&CompositeMariaDBInstanceList{}, | ||
) | ||
} |
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.