Skip to content

Commit

Permalink
feat(client): generate clientset informer lister
Browse files Browse the repository at this point in the history
Signed-off-by: wanggangfeng <[email protected]>
  • Loading branch information
wanggangfeng authored and elrondwong committed Nov 23, 2023
1 parent 7692708 commit 52ed5a1
Show file tree
Hide file tree
Showing 35 changed files with 2,330 additions and 1,122 deletions.
1 change: 1 addition & 0 deletions api/v1beta2/redis_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type Redis struct {
Status RedisStatus `json:"status,omitempty"`
}

// +genclient
// +kubebuilder:object:root=true

// RedisList contains a list of Redis
Expand Down
1 change: 1 addition & 0 deletions api/v1beta2/rediscluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ type RedisClusterStatus struct {
ReadyFollowerReplicas int32 `json:"readyFollowerReplicas,omitempty"`
}

// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
Expand Down
1 change: 1 addition & 0 deletions api/v1beta2/redisreplication_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func (cr *RedisReplicationSpec) GetReplicationCounts(t string) int32 {
type RedisReplicationStatus struct {
}

// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
Expand Down
1 change: 1 addition & 0 deletions api/v1beta2/redissentinel_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ type RedisSentinel struct {
Status RedisSentinelStatus `json:"status,omitempty"`
}

// +genclient
// +kubebuilder:object:root=true

// RedisList contains a list of Redis
Expand Down
Loading

0 comments on commit 52ed5a1

Please sign in to comment.