-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: acr polling plugin support (#5724)
* migration number changes (#5692) * refrain from checkin autoscalingCheckBeforeTrigger for virt clus (#5696) * fix: Decode secret fix on add update oss (#5695) * ValidateEncodedDataByDecoding in case add or update secret * wire fix from main * minor refactor * comment * saving pco concurrency case handled (#5688) * fix: script for pipelineStageStepVariable, making input value and default_value text from varchar255 (#5701) * script for pipelineStageStepVariable, making input value and default_value text from varchar255 * erro log fix * fix: ea fixes for helm app (#5708) * added the ea apps entry app table * resolved the ea mode multiple rows error during configuration of app * modified the ea dockerfile in ca-certificates cmd * uncommented the code and left the ea helm app making way untouched * remodified the dockerfile as previous state * modified the docker file ea mode * dockerfile exit code 100 due to ap install alternative in ea mode dockerfile * execute make after main merge * modified changes in dockerfile ea mode * resolved comments after first level review * Revert "fix: ea fixes for helm app (#5708)" (#5713) This reverts commit 3e31f49. * fix: SkipCiBuildCachePushPull code incorporated with minor refac in handle runtime params validation (#5712) * SkipCiBuildCachePushPull code incorporated with minor refac in handle runtime params validation * minor refactor * minor refactor * chore: polling plugin refactored * chore: refactored method name * update polling plugin response struct * updated migration number * updated polling plugin image * updated polling plugin migration script * fix: same digest for different image issue * fix: plugin migration handling * updated polling plugin migration script * updated migration number * fix: empty artifact issue * chore: polling plugin migration prod-image updated * updated common-lib version --------- Co-authored-by: Prakash <prakash.kumar@devtron.ai> Co-authored-by: Rajeev Ranjan <90333766+RajeevRanjan27@users.noreply.github.com>
- Loading branch information
1 parent
813c3d7
commit d4e599e
Showing
40 changed files
with
220 additions
and
3,608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- revert the container image path of the polling plugin version 1.0.0 | ||
UPDATE plugin_pipeline_script | ||
SET container_image_path ='quay.io/devtron/poll-container-image:97a996a5-545-16654' | ||
WHERE container_image_path ='quay.io/devtron/devtron-plugins:polling-plugin-v1.0.1' | ||
AND deleted = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
-- update the container image path for the polling plugin version 1.0.0 | ||
UPDATE plugin_pipeline_script | ||
SET container_image_path ='quay.io/devtron/devtron-plugins:polling-plugin-v1.0.1' | ||
WHERE container_image_path ='quay.io/devtron/poll-container-image:97a996a5-545-16654' | ||
AND deleted = false; | ||
|
||
-- create plugin_parent_metadata for the polling plugin, if not exists | ||
INSERT INTO "plugin_parent_metadata" ("id", "name", "identifier", "description", "type", "icon", "deleted", "created_on", "created_by", "updated_on", "updated_by") | ||
SELECT nextval('id_seq_plugin_parent_metadata'), 'Pull images from container repository','pull-images-from-container-repository','Polls a container repository and pulls images stored in the repository which can be used for deployment.','PRESET','https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-poll-container-registry.png','f', 'now()', 1, 'now()', 1 | ||
WHERE NOT EXISTS ( | ||
SELECT 1 | ||
FROM plugin_parent_metadata | ||
WHERE identifier='pull-images-from-container-repository' | ||
AND deleted = false | ||
); | ||
|
||
-- update the plugin_metadata with the plugin_parent_metadata_id | ||
UPDATE plugin_metadata | ||
SET plugin_parent_metadata_id = ( | ||
SELECT id | ||
FROM plugin_parent_metadata | ||
WHERE identifier='pull-images-from-container-repository' | ||
AND deleted = false | ||
) | ||
WHERE name='Pull images from container repository' | ||
AND ( | ||
plugin_parent_metadata_id IS NULL | ||
OR plugin_parent_metadata_id = 0 | ||
) | ||
AND deleted = false; |
Oops, something went wrong.