mirror of https://github.com/k3s-io/k3s
Merge pull request #64938 from brendandburns/todo2
Automatic merge from submit-queue (batch tested with PRs 64895, 64938, 63700, 65050, 64957). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Remove an old TODO. The ImagePullPolicy is immediately overwritten by the call to `updatePodSpec` below the initialization, so it's not needed where it is.pull/8/head
commit
1cbb61f8a2
|
@ -877,8 +877,6 @@ func (BasicPod) Generate(genericParams map[string]interface{}) (runtime.Object,
|
|||
if len(restartPolicy) == 0 {
|
||||
restartPolicy = v1.RestartPolicyAlways
|
||||
}
|
||||
// TODO: Figure out why we set ImagePullPolicy here, whether we can make it
|
||||
// consistent with the other places imagePullPolicy is set using flag.
|
||||
pod := v1.Pod{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: name,
|
||||
|
@ -890,7 +888,6 @@ func (BasicPod) Generate(genericParams map[string]interface{}) (runtime.Object,
|
|||
{
|
||||
Name: name,
|
||||
Image: params["image"],
|
||||
ImagePullPolicy: v1.PullIfNotPresent,
|
||||
Stdin: stdin,
|
||||
StdinOnce: !leaveStdinOpen && stdin,
|
||||
TTY: tty,
|
||||
|
|
|
@ -444,7 +444,6 @@ func TestGeneratePod(t *testing.T) {
|
|||
{
|
||||
Name: "foo",
|
||||
Image: "someimage",
|
||||
ImagePullPolicy: v1.PullIfNotPresent,
|
||||
},
|
||||
},
|
||||
DNSPolicy: v1.DNSClusterFirst,
|
||||
|
@ -516,7 +515,6 @@ func TestGeneratePod(t *testing.T) {
|
|||
{
|
||||
Name: "foo",
|
||||
Image: "someimage",
|
||||
ImagePullPolicy: v1.PullIfNotPresent,
|
||||
Ports: []v1.ContainerPort{
|
||||
{
|
||||
ContainerPort: 80,
|
||||
|
@ -547,7 +545,6 @@ func TestGeneratePod(t *testing.T) {
|
|||
{
|
||||
Name: "foo",
|
||||
Image: "someimage",
|
||||
ImagePullPolicy: v1.PullIfNotPresent,
|
||||
Ports: []v1.ContainerPort{
|
||||
{
|
||||
ContainerPort: 80,
|
||||
|
@ -589,7 +586,6 @@ func TestGeneratePod(t *testing.T) {
|
|||
{
|
||||
Name: "foo",
|
||||
Image: "someimage",
|
||||
ImagePullPolicy: v1.PullIfNotPresent,
|
||||
},
|
||||
},
|
||||
DNSPolicy: v1.DNSClusterFirst,
|
||||
|
@ -616,7 +612,6 @@ func TestGeneratePod(t *testing.T) {
|
|||
{
|
||||
Name: "foo",
|
||||
Image: "someimage",
|
||||
ImagePullPolicy: v1.PullIfNotPresent,
|
||||
Stdin: true,
|
||||
StdinOnce: true,
|
||||
},
|
||||
|
@ -646,7 +641,6 @@ func TestGeneratePod(t *testing.T) {
|
|||
{
|
||||
Name: "foo",
|
||||
Image: "someimage",
|
||||
ImagePullPolicy: v1.PullIfNotPresent,
|
||||
Stdin: true,
|
||||
StdinOnce: false,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue