|
|
@ -176,6 +176,7 @@ func generateDeployment(opts *Options) (*v1beta1.Deployment, error) {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
automountServiceAccountToken := opts.ServiceAccount != ""
|
|
|
|
d := &v1beta1.Deployment{
|
|
|
|
d := &v1beta1.Deployment{
|
|
|
|
ObjectMeta: metav1.ObjectMeta{
|
|
|
|
ObjectMeta: metav1.ObjectMeta{
|
|
|
|
Namespace: opts.Namespace,
|
|
|
|
Namespace: opts.Namespace,
|
|
|
@ -190,6 +191,7 @@ func generateDeployment(opts *Options) (*v1beta1.Deployment, error) {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Spec: v1.PodSpec{
|
|
|
|
Spec: v1.PodSpec{
|
|
|
|
ServiceAccountName: opts.ServiceAccount,
|
|
|
|
ServiceAccountName: opts.ServiceAccount,
|
|
|
|
|
|
|
|
AutomountServiceAccountToken: &automountServiceAccountToken,
|
|
|
|
Containers: []v1.Container{
|
|
|
|
Containers: []v1.Container{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "tiller",
|
|
|
|
Name: "tiller",
|
|
|
|