浏览代码

cleanup

tags/0.0.2
Vladimir Smagin 1年前
父节点
当前提交
3153365a7c
签署人:: 21h GPG 密钥 ID: 13BCE12E5618F071
共有 3 个文件被更改,包括 3 次插入8 次删除
  1. +3
    -0
      README.md
  2. +0
    -6
      pkg/apis/blindage/v1alpha1/redis_types.go
  3. +0
    -2
      pkg/controller/redis/redis_controller.go

+ 3
- 0
README.md 查看文件

@@ -37,6 +37,9 @@ spec:
sentinelReplicas: 3
redisReplicas: 3
quorum: 2
haproxyTimeoutServer: 30
haproxyTimeoutClient: 30
haproxyBackendCheckInterval: 1
```

---


+ 0
- 6
pkg/apis/blindage/v1alpha1/redis_types.go 查看文件

@@ -6,9 +6,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

// RedisSpec defines the desired state of Redis
// +k8s:openapi-gen=true
type RedisSpec struct {
@@ -36,9 +33,6 @@ type RedisSpec struct {
// RedisStatus defines the observed state of Redis
// +k8s:openapi-gen=true
type RedisStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object


+ 0
- 2
pkg/controller/redis/redis_controller.go 查看文件

@@ -81,8 +81,6 @@ var _ reconcile.Reconciler = &ReconcileRedis{}

// ReconcileRedis reconciles a Redis object
type ReconcileRedis struct {
// This client, initialized using mgr.Client() above, is a split client
// that reads objects from the cache and writes to the apiserver
client client.Client
scheme *runtime.Scheme
}


正在加载...
取消
保存