Commit a945416f authored by jiayongfei's avatar jiayongfei
Browse files

fix: update etcd image for platform test

No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
......@@ -45,7 +45,7 @@ spec:
- --client-cert-auth=true
- --ca-file=/app/certs/etcd-ca.crt
- --trusted-ca-file=/app/certs/etcd-ca.crt
image: quay.io/coreos/etcd:latest
image: registry.tke.com/library/etcd:{{ .Tag }}
volumeMounts:
- name: certs-volume
mountPath: /app/certs
......
......@@ -26,6 +26,7 @@ import (
"net/url"
"os"
"time"
"tkestack.io/tke/pkg/platform/provider/baremetal/images"
"github.com/onsi/gomega"
......@@ -153,6 +154,7 @@ func (t *TKE) createEtcd(ctx context.Context) error {
options := map[string]interface{}{
"Servers": []string{t.hostName},
"Namespace": t.Namespace,
"Tag": images.Get().ETCD.Tag,
}
err := apiclient.CreateResourceWithDir(context.Background(), t.client, e2e.EtcdYamlFile, options)
if err != nil {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment