Skip to content

Commit 9860980

Browse files
[POA-1584] Update insights image URL to new public ECR repo (#26)
In this PR, we have updated the image URL from the current private ECR URL to the new public ECR URL.
1 parent 3a8bd38 commit 9860980

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

apidump/net.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func showPermissionErrors(sampleError error) error {
7272
return NewApidumpErrorf(
7373
api_schema.ApidumpError_PCAPInterfaceNotImplemented,
7474
"Unable to read network interfaces. If your host architecture is not %s, try using "+
75-
"`docker pull --platform $YOUR_ARCHITECTURE docker.postman.com/postman-insights-agent:latest` to pull a Postman Insights Agent "+
75+
"`docker pull --platform $YOUR_ARCHITECTURE public.ecr.aws/postman/postman-insights-agent:latest` to pull a Postman Insights Agent "+
7676
"built for your architecture.",
7777
arch,
7878
)

cmd/internal/ecs/add.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ const (
107107
akitaDockerImage = "akitasoftware/cli"
108108

109109
// Postman Insights Agent image location
110-
postmanECRImage = "docker.postman.com/postman-insights-agent"
110+
postmanOldECRImage = "docker.postman.com/postman-insights-agent"
111+
postmanECRImage = "public.ecr.aws/postman/postman-insights-agent"
111112
)
112113

113114
// Run the "add to ECS" workflow until we complete or get an error.
@@ -563,11 +564,11 @@ func getTaskState(wf *AddWorkflow) (nextState optionals.Optional[AddWorkflowStat
563564
return awf_next(getTaskState)
564565
}
565566

566-
// Also detect the Akita CLI image, to avoid having two copies of the agent
567-
// running.
568-
if matchesImage(image, akitaECRImage) || matchesImage(image, akitaDockerImage) {
569-
printer.Errorf("The selected task definition already has the image %q, indicating that the Akita CLI is currently installed.\n", image)
570-
printer.Infof("The Akita CLI is no longer supported. Please uninstall it and try again.\n")
567+
// Also detect old images, such as the Akita CLI or unsupported versions of Postman Insights Agent,
568+
// to avoid having two copies of the agent running simultaneously.
569+
if matchesImage(image, akitaECRImage) || matchesImage(image, akitaDockerImage) || matchesImage(image, postmanOldECRImage) {
570+
printer.Errorf("The selected task definition already has the image %q, indicating that the agent is currently installed.\n", image)
571+
printer.Infof("This version of agent is no longer supported. Please uninstall it and try again.\n")
571572
printer.Infof("You can also select a different task definition, or hit Ctrl+C to exit.\n")
572573
return awf_next(getTaskState)
573574
}

cmd/internal/kube/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
// The image to use for the Postman Insights Agent sidecar
17-
const akitaImage = "docker.postman.com/postman-insights-agent:latest"
17+
const akitaImage = "public.ecr.aws/postman/postman-insights-agent:latest"
1818

1919
// Writes the generated secret to the given file path
2020
func writeFile(data []byte, filePath string) error {

0 commit comments

Comments
 (0)