Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
feat: imagepullpolicy to IfNotPresent
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Schlegel <[email protected]>
  • Loading branch information
siredmar committed Feb 28, 2024
1 parent fe6e309 commit 4b42d62
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkg/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ func getService(config *v1alpha1.EdgeNetwork) *v1.Service {

func getNatsInitContainer(config *v1alpha1.EdgeNetwork) v1.Container {
return v1.Container{
Name: "init",
Image: "nats:2.9.11-alpine",
Name: "init",
Image: "nats:2.9.11-alpine",
ImagePullPolicy: v1.PullIfNotPresent,
Command: []string{
"/bin/sh",
"-c",
Expand Down Expand Up @@ -344,9 +345,10 @@ func getNatsInitContainer(config *v1alpha1.EdgeNetwork) v1.Container {

func getNatsContainer() v1.Container {
return v1.Container{
Name: "nats",
Image: "nats:2.9.14-alpine",
Ports: []v1.ContainerPort{{ContainerPort: 4222}},
Name: "nats",
Image: "nats:2.9.14-alpine",
Ports: []v1.ContainerPort{{ContainerPort: 4222}},
ImagePullPolicy: v1.PullIfNotPresent,
// Command: []string{"/bin/sh", "-c", "--"},
// Args: []string{"while true; do sleep 30; done;"},
Args: []string{"-c", "/etc/nats/nats-server.conf"},
Expand Down

0 comments on commit 4b42d62

Please sign in to comment.