Skip to content

Commit

Permalink
Add Redis Sentinel CRD resources (#794)
Browse files Browse the repository at this point in the history
Signed-off-by: Emon46 <emon@appscode.com>
  • Loading branch information
Emon46 committed Sep 10, 2021
1 parent 83d5746 commit 6797880
Show file tree
Hide file tree
Showing 30 changed files with 6,456 additions and 646 deletions.
728 changes: 571 additions & 157 deletions apis/catalog/v1alpha1/generated.pb.go

Large diffs are not rendered by default.

26 changes: 21 additions & 5 deletions apis/catalog/v1alpha1/generated.proto

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

60 changes: 59 additions & 1 deletion apis/catalog/v1alpha1/openapi_generated.go

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

24 changes: 19 additions & 5 deletions apis/catalog/v1alpha1/redis_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,39 @@ type RedisVersion struct {
type RedisVersionSpec struct {
// Version
Version string `json:"version" protobuf:"bytes,1,opt,name=version"`
//init container image
InitContainer RedisVersionInitContainer `json:"initContainer,omitempty" protobuf:"bytes,2,opt,name=initContainer"`
// Database Image
DB RedisVersionDatabase `json:"db" protobuf:"bytes,2,opt,name=db"`
DB RedisVersionDatabase `json:"db" protobuf:"bytes,3,opt,name=db"`
// Exporter Image
Exporter RedisVersionExporter `json:"exporter" protobuf:"bytes,3,opt,name=exporter"`
Exporter RedisVersionExporter `json:"exporter" protobuf:"bytes,4,opt,name=exporter"`
// Coordinator Image
Coordinator RedisVersionCoordinator `json:"coordinator,omitempty" protobuf:"bytes,5,opt,name=coordinator"`
// Deprecated versions usable but regarded as obsolete and best avoided, typically due to having been superseded.
// +optional
Deprecated bool `json:"deprecated,omitempty" protobuf:"varint,4,opt,name=deprecated"`
Deprecated bool `json:"deprecated,omitempty" protobuf:"varint,6,opt,name=deprecated"`
// PSP names
PodSecurityPolicies RedisVersionPodSecurityPolicy `json:"podSecurityPolicies" protobuf:"bytes,5,opt,name=podSecurityPolicies"`
PodSecurityPolicies RedisVersionPodSecurityPolicy `json:"podSecurityPolicies" protobuf:"bytes,7,opt,name=podSecurityPolicies"`
// Stash defines backup and restore task definitions.
// +optional
Stash appcat.StashAddonSpec `json:"stash,omitempty" protobuf:"bytes,6,opt,name=stash"`
Stash appcat.StashAddonSpec `json:"stash,omitempty" protobuf:"bytes,8,opt,name=stash"`
}

// RedisVersionInitContainer is the Redis init container image
type RedisVersionInitContainer struct {
Image string `json:"image" protobuf:"bytes,1,opt,name=image"`
}

// RedisVersionDatabase is the Redis Database image
type RedisVersionDatabase struct {
Image string `json:"image" protobuf:"bytes,1,opt,name=image"`
}

// RedisVersionCoordinator is the Redis coordinator image
type RedisVersionCoordinator struct {
Image string `json:"image" protobuf:"bytes,1,opt,name=image"`
}

// RedisVersionExporter is the image for the Redis exporter
type RedisVersionExporter struct {
Image string `json:"image" protobuf:"bytes,1,opt,name=image"`
Expand Down
34 changes: 34 additions & 0 deletions apis/catalog/v1alpha1/zz_generated.deepcopy.go

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

Loading

0 comments on commit 6797880

Please sign in to comment.