Skip to content

Commit

Permalink
Merge pull request #6562 from appvia/etcd-backup-tls
Browse files Browse the repository at this point in the history
If using etcd-backup and TLS is enabled, pass relevant options
  • Loading branch information
k8s-ci-robot authored Mar 25, 2019
2 parents 24b3666 + 3192275 commit 269a6f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions protokube/pkg/protokube/etcd_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@ func buildEtcdBackupManagerContainer(c *EtcdCluster) *v1.Container {
command = append(command, "--cluster-name", c.ClusterName)
command = append(command, "--data-dir", "/var/etcd/"+c.DataDirName)

if c.isTLS() {
command = append(command, "--client-url", "https://127.0.0.1:4001")
command = append(command, "--client-ca-file", c.TLSCA)
command = append(command, "--client-cert-file", c.TLSCert)
command = append(command, "--client-key-file", c.TLSKey)
}

container := v1.Container{
Name: "etcd-backup",
Image: c.BackupImage,
Expand Down

0 comments on commit 269a6f6

Please sign in to comment.