Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
bring AutomountServiceAccountToken back in self_hosted.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingtao Ren committed Jan 20, 2018
1 parent 8c08243 commit 7801efc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkg/util/k8sutil/self_hosted.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,14 @@ done
Spec: v1.PodSpec{
// Self-hosted etcd pod need to endure node restart.
// If we set it to Never, the pod won't restart. If etcd won't come up, nor does other k8s API components.
RestartPolicy: v1.RestartPolicyAlways,
Containers: []v1.Container{c},
Volumes: volumes,
HostNetwork: true,
DNSPolicy: v1.DNSClusterFirstWithHostNet,
Hostname: m.Name,
Subdomain: clusterName,
RestartPolicy: v1.RestartPolicyAlways,
Containers: []v1.Container{c},
Volumes: volumes,
HostNetwork: true,
DNSPolicy: v1.DNSClusterFirstWithHostNet,
Hostname: m.Name,
Subdomain: clusterName,
AutomountServiceAccountToken: func(b bool) *bool { return &b }(false),
},
}

Expand Down

0 comments on commit 7801efc

Please sign in to comment.