Skip to content

Commit

Permalink
fix: correct tls secret data name
Browse files Browse the repository at this point in the history
  • Loading branch information
zhl003 committed Jun 8, 2022
1 parent 956e280 commit 8b76fb8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/mysqlcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ type MysqlClusterSpec struct {
// Represents NFS ip address where cluster restore from.
// +optional
NFSServerAddress string `json:"nfsServerAddress,omitempty"`
//containing CA (ca.pem) and optional CRL (crl.pem) ,server certificate and private key for SSL
//containing CA (ca.crt) and server cert (tls.crt) ,server private key (tls.key) for SSL
//+optional
TlsSecretName string `json:"tlsSecretName,omitempty"`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,10 @@ spec:
description: Represents the name of the cluster restore from backup
path.
type: string
tlsSecretName:
description: containing CA (ca.crt) and server cert (tls.crt) ,server
private key (tls.key) for SSL
type: string
xenonOpts:
default:
admitDefeatHearbeatCount: 5
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/mysql.radondb.com_mysqlclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1257,8 +1257,8 @@ spec:
path.
type: string
tlsSecretName:
description: containing CA (ca.pem) and optional CRL (crl.pem) ,server
certificate and private key for SSL
description: containing CA (ca.crt) and server cert (tls.crt) ,server
private key (tls.key) for SSL
type: string
xenonOpts:
default:
Expand Down
2 changes: 0 additions & 2 deletions sidecar/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ var (

// clone restore init data directory.
backupInitDirectory = "initbackup"
// tlsConfPath is the tls path for tls
tlsConfPath = utils.TlsMountPath
)

// copyFile the src file to dst.
Expand Down

0 comments on commit 8b76fb8

Please sign in to comment.