From a808d7fdbf87c573aa5671af0ad33ca94fa5a304 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 9 Aug 2021 17:28:46 +0800 Subject: [PATCH] api,config: fix the incorrect description about MetricsOpts --- api/v1alpha1/cluster_types.go | 2 +- config/crd/bases/mysql.radondb.com_clusters.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1alpha1/cluster_types.go b/api/v1alpha1/cluster_types.go index 1faac5d8..2d78e2d5 100644 --- a/api/v1alpha1/cluster_types.go +++ b/api/v1alpha1/cluster_types.go @@ -51,7 +51,7 @@ type ClusterSpec struct { // +kubebuilder:default:={image: "radondb/xenon:1.1.5-alpha", admitDefeatHearbeatCount: 5, electionTimeout: 10000, resources: {limits: {cpu: "100m", memory: "256Mi"}, requests: {cpu: "50m", memory: "128Mi"}}} XenonOpts XenonOpts `json:"xenonOpts,omitempty"` - // XenonOpts is the options of metrics container. + // MetricsOpts is the options of metrics container. // +optional // +kubebuilder:default:={image: "prom/mysqld-exporter:v0.12.1", resources: {limits: {cpu: "100m", memory: "128Mi"}, requests: {cpu: "10m", memory: "32Mi"}}, enabled: false} MetricsOpts MetricsOpts `json:"metricsOpts,omitempty"` diff --git a/config/crd/bases/mysql.radondb.com_clusters.yaml b/config/crd/bases/mysql.radondb.com_clusters.yaml index 0d096ee7..a95bd11b 100644 --- a/config/crd/bases/mysql.radondb.com_clusters.yaml +++ b/config/crd/bases/mysql.radondb.com_clusters.yaml @@ -61,7 +61,7 @@ spec: requests: cpu: 10m memory: 32Mi - description: XenonOpts is the options of metrics container. + description: MetricsOpts is the options of metrics container. properties: enabled: default: false