From 51936ea7ae9ecc9cdb1efd9bcffa1c5e609d000c Mon Sep 17 00:00:00 2001 From: radnov Date: Wed, 5 Jul 2023 18:23:10 +0300 Subject: [PATCH] chore: add image pull policy integration --- pkg/integration/handler.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/integration/handler.go b/pkg/integration/handler.go index e05e4b37..2ea34233 100644 --- a/pkg/integration/handler.go +++ b/pkg/integration/handler.go @@ -116,6 +116,13 @@ func (h Handler) Integrations(c *gin.Context) { return } + if request.Key == "IMAGE_PULL_POLICY" { + policies := []string{"Always", "IfNotPresent", "Never"} + + c.JSON(http.StatusOK, policies) + return + } + if request.Key == "DATABASE_ID" { token, err := handler.GetTokenFromHttpAuthHeader(c) if err != nil {