Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: Main sync rc19 #5953

Merged
merged 11 commits into from
Oct 3, 2024
7 changes: 7 additions & 0 deletions CHANGELOG/release-notes-v0.7.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## v0.7.3



## Bugs
- fix: Builds set to auto not getting triggered (#5925)
- fix: User Rbac Fixes (#5940)
Binary file added assets/hadolint-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions charts/devtron/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: devtron-operator
appVersion: 0.7.2
appVersion: 0.7.3
description: Chart to configure and install Devtron. Devtron is a Kubernetes Orchestration system.
keywords:
- Devtron
Expand All @@ -11,7 +11,7 @@ keywords:
- argocd
- Hyperion
engine: gotpl
version: 0.22.74
version: 0.22.75
sources:
- https://github.com/devtron-labs/charts
dependencies:
Expand Down
6 changes: 3 additions & 3 deletions charts/devtron/devtron-bom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ global:
containerRegistry: "quay.io/devtron"
extraManifests: []
installer:
release: "v0.7.2"
release: "v0.7.3"
registry: ""
image: "inception"
tag: "473deaa4-185-21582"
Expand Down Expand Up @@ -38,8 +38,8 @@ components:
imagePullPolicy: IfNotPresent
devtron:
registry: ""
image: "hyperion:3f68456b-280-25566"
cicdImage: "devtron:3f68456b-434-25567"
image: "hyperion:e17c52eb-280-25812"
cicdImage: "devtron:e17c52eb-434-25813"
imagePullPolicy: IfNotPresent
customOverrides: {}
ciRunner:
Expand Down
6 changes: 3 additions & 3 deletions charts/devtron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ global:
extraManifests: []
installer:
repo: "devtron-labs/devtron"
release: "v0.7.2"
release: "v0.7.3"
registry: ""
image: inception
tag: 473deaa4-185-21582
Expand Down Expand Up @@ -81,8 +81,8 @@ components:
imagePullPolicy: IfNotPresent
devtron:
registry: ""
image: "hyperion:3f68456b-280-25566"
cicdImage: "devtron:3f68456b-434-25567"
image: "hyperion:e17c52eb-280-25812"
cicdImage: "devtron:e17c52eb-434-25813"
imagePullPolicy: IfNotPresent
customOverrides: {}
serviceMonitor:
Expand Down
8 changes: 8 additions & 0 deletions client/telemetry/TelemetryEventClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,10 @@ func (impl *TelemetryEventClientImpl) SendTelemetryDashboardAccessEvent() error
return err
}
cm, err := impl.K8sUtil.GetConfigMap(impl.aCDAuthConfig.ACDConfigMapNamespace, DevtronUniqueClientIdConfigMap, client)
if err != nil {
impl.logger.Errorw("DashboardAccessed EventForTelemetry,failed to get DevtronUniqueClientIdConfigMap", "error", err)
return err
}
datamap := cm.Data

accessEventValue, installEventKeyExists := datamap[UIEventKey]
Expand Down Expand Up @@ -667,6 +671,10 @@ func (impl *TelemetryEventClientImpl) SendTelemetryDashboardLoggedInEvent() erro
return err
}
cm, err := impl.K8sUtil.GetConfigMap(impl.aCDAuthConfig.ACDConfigMapNamespace, DevtronUniqueClientIdConfigMap, client)
if err != nil {
impl.logger.Errorw("DashboardLoggedIn EventForTelemetry,failed to get DevtronUniqueClientIdConfigMap", "error", err)
return err
}
datamap := cm.Data

accessEventValue, installEventKeyExists := datamap[UIEventKey]
Expand Down
2 changes: 1 addition & 1 deletion manifests/install/devtron-installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: installer-devtron
namespace: devtroncd
spec:
url: https://raw.githubusercontent.com/devtron-labs/devtron/v0.7.2/manifests/installation-script
url: https://raw.githubusercontent.com/devtron-labs/devtron/v0.7.3/manifests/installation-script
2 changes: 1 addition & 1 deletion manifests/installation-script
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LTAG="v0.7.2";
LTAG="v0.7.3";
REPO_RAW_URL="https://raw.githubusercontent.com/devtron-labs/devtron/";

log("executed devtron setup installation");
2 changes: 1 addition & 1 deletion manifests/release.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
stable -1 v0.7.2
stable -1 v0.7.3
2 changes: 1 addition & 1 deletion manifests/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.7.1
v0.7.3
2 changes: 1 addition & 1 deletion manifests/yamls/devtron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ spec:
runAsUser: 1000
containers:
- name: devtron
image: "quay.io/devtron/devtron:b5a2f8ba-434-25563"
image: "quay.io/devtron/devtron:0b51ad37-434-25810"
securityContext:
allowPrivilegeEscalation: false
runAsUser: 1000
Expand Down
130 changes: 5 additions & 125 deletions releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,127 +1,7 @@
## v0.7.2
## v0.7.3



## Bugs
- fix: error in enable change ci (#5358)
- fix: ci patch rbac fixes (#5461)
- fix: bitbucket commit race condition for concurrent requests (#5505)
- fix: handle nil check image scanning (#5497)
- fix: error in switching ci to external ci (#5500)
- fix: autoscale error handling (#5481)
- fix: ci material update fixes for linked ci pipelines (#5523)
- fix: Unable to get HPA manifest for no-gitops deployment (#5522)
- fix: Deployment stuck in starting for no-gitops based pipelines (#5526)
- fix: panic handling for deleted app in app group and env group filters (#5541)
- fix: security time fix when scanning is passed (#5549)
- fix: app group query optimisations (#5558)
- fix: version and fixed_version in image scan result table (#5552)
- fix: add if not exists in migration script for avoiding any errors while rerunning scripts (#5579)
- fix: Resource Browser Shortnames are not applying dynamically (#5573)
- fix: tls enabled flag not getting passed (#5609)
- fix: reverting acd token fetch logic (#5614)
- fix: query optimisations for app group cd listing and ci pipeline blockage state (#5641)
- fix: dependabot security updates (#5608)
- fix: default PipelineType given (#5668)
- fix: validation in CiJob for external Artifact (#5669)
- fix: Nats Panic Error in Orchestrator (#5670)
- fix: SSH & Proxy Cluster flows broken (#5675)
- fix: Restart in orchestrator just after release (#5671)
- fix: Sql query optimisation for application group app status listing (#5672)
- fix: handling for HPA (autoscaling) (#5666)
- fix: refrain from checkin autoscalingCheckBeforeTrigger for virt clus (#5696)
- fix: Decode secret fix on add update oss (#5695)
- fix: saving pco concurrency case handled (#5688)
- fix: script for pipelineStageStepVariable, making input value and default_value text from varchar255 (#5701)
- fix: Issue in EA Mode Cluster - error: pg: multiple rows in result set. (#5708)
- fix: SkipCiBuildCachePushPull code incorporated with minor refac in handle runtime params validation (#5712)
- fix: migration syn (#5718)
- fix: ci patch rbac for branch update (#5759)
- fix: Bitnami chart repo tls issue (#5740)
- fix: check rbac on env if envName is present (#5765)
- fix: scan tool active check removed (#5771)
- fix: panic handlings and argocd app delete stuck in partial stage (#5770)
- fix: unimplemented cluster cron service (#5781)
- fix: sql injection fixes (#5783)
- fix: sql injection fixes (#5801)
- fix: upgraded to /argo-cd/v2 v2.9.21 (#5758)
- fix: Ea rbac issues and not working on airgapped (#5813)
- fix: scan list in global security page sql injection fix (#5808)
- fix: app details page breaking (#5823)
- fix: plugin ip variables value getting changed (#5844)
- fix: ignore kubelink errors in server startup (#5852) (#5854)
- fix: user rbac flows (#5804)
- fix: pg multiple rows in EA mode (#5869)
- fix: app overview panic for helm app (#5863)
- fix: app detail page breaking (#5873)
- fix: copy container image plugin issue (#5876)
- fix: create GitOps configuration issue (#5883)
## Enhancements
- feat: support for handling hibernation and un-hibernation for keda enabled (#5431)
- feat: Async ArgoCd App refresh operation (#5448)
- feat: deployment config migration (#5368)
- feat: Skipping falg based CMCS for Ci Job (#5536)
- feat: expose git commit data as env vars for ci stage (#5534)
- feat: Defining applications as part of release track (#5489)
- feat: gitlab webhook support (#5420)
- feat: Enhance the buildx to use cache for multi arch builds (#5307)
- feat: bug fix for picking wrong values in docker arguments (#5565)
- feat: enable external argocd listing (#5585)
- feat: plugin versioning feature (#5352)
- feat: service account in chart sync (#5584)
- feat: panic in sync pod cron and terminal not opening fix (#5603)
- feat: tls support for git and gitops (#5305)
- feat: system network controller sql script (#5637)
- feat: skip argowf logs from ci logs (#5646)
- feat: gitops support for oci repositories (#5577)
- feat: ext argo app rbac and missing common features and flux app listing and details with rbac (#5528)
- feat: expose git ops metrics (#5582)
- feat: Generate config and secret hash for application mounting external k8s secrets (#5626)
- feat: Env description handling (#5744)
- feat: Added basic auth support for servicemonitor (#5761)
- feat: Docker pull env driven (#5767)
- feat: plugin creation support (#5630)
- feat: Added multiple features support in servicemonitor (#5789)
## Documentation
- doc: Added FAQ no. 28 + GoLang-migrate Link + Code Block Fix (#5502)
- docs: Drafted Software Distribution Hub (#5459)
- doc: Created Image Label + Comments Doc (#5314)
- doc: FAQ added for Bitnami Charts (#5545)
- doc: Added Keycloak SSO Doc (#5571)
- doc: Code scan plugin docs (#5562)
- docs: jenkins-plugin (#5542)
- doc: Copacetic plugin docs (#5564)
- doc: Pull images from container repository (#5563)
- doc: Collated Doc Fixes for July (#5591)
- doc: Drafted Schema Driven DT (#5533)
- doc: fixes in Copacetic plugin doc (#5622)
- doc: Edit Deployment Chart Schema (#5735)
- doc: Redirection of old entry in gitbook.yaml (#5738)
- docs: added Documentation for Air-Gapped Installation (#5360)
- doc: Update prerequisites of code-scan (#5625)
- doc: Cosign plugin doc (#5665)
- doc: CraneCopy plugin doc (#5658)
- doc: Devtron CD Trigger Plugin doc (#5747)
- doc: DockerSlim plugin doc (#5660)
- doc: Devtron Job Trigger Plugin doc (#5742)
- doc: Vulnerability Scanning Plugin doc (#5722)
- docs: Jira plugins doc (Validator + Updater) (#5709)
- docs: added commands enable ingress during helm installation (#5794)
- doc: Revamped + Restructured Ingress Setup Doc (#5798)
- docs: modifying route in ingress doc (#5799)
- docs: modified the anchorlink in ingress.md (#5800)
- doc: ArgoCD + FluxCD App Listing (#5636)
- doc: Added Special CEL Expr in Filter Condition doc (#5850)
## Others
- misc: removal of azure-devops-issue-sync.yml (#5592)
- misc: added action for discrod webhook (#5615)
- misc: Revert "misc: added action for discrod webhook" (#5619)
- chore: Plugin script fix oss (#5661)
- misc: Release candidate v0.16.0 (#5687)
- chore: migration number changes (#5692)
- chore: ea fixes for helm app (#5713)
- misc: Main sync rc - branch update (#5753)
- chore: Revert "feat: plugin creation support" (#5778)
- chore: cron status update refactoring (#5790)
- misc: sync with common-lib changes with release candidate 18 (#5830)
- chore: Custom tag for copy container image plugin (#5760) (#5841)
- chore: migration number fix (#5840)
- misc: Update CODEOWNERS (#5885)
- fix: Builds set to auto not getting triggered (#5925)
- fix: User Rbac Fixes (#5940)
6 changes: 6 additions & 0 deletions scripts/sql/028901_019_devtron_ci_trigger_v1_1.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DELETE FROM plugin_step_variable WHERE plugin_step_id=(SELECT id FROM plugin_metadata WHERE name='Devtron CI Trigger');
DELETE FROM plugin_step where plugin_id=(SELECT id FROM plugin_metadata WHERE name='Devtron CI Trigger');
DELETE FROM plugin_pipeline_script where id=(SELECT id FROM plugin_metadata WHERE name='Devtron CI Trigger');
DELETE FROM plugin_stage_mapping where plugin_id=(SELECT id from plugin_metadata where name='Devtron CI Trigger');
DELETE FROM plugin_metadata where name='Devtron CI Trigger';
UPDATE plugin_metadata SET is_latest = true WHERE id = (SELECT id FROM plugin_metadata WHERE name= 'Devtron CI Trigger v1.0.0' and is_latest= false);
36 changes: 36 additions & 0 deletions scripts/sql/028901_019_devtron_ci_trigger_v1_1.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
UPDATE plugin_metadata SET is_latest = false WHERE id = (SELECT id FROM plugin_metadata WHERE name= 'Devtron CI Trigger v1.0.0' and is_latest= true);

INSERT INTO "plugin_metadata" ("id", "name", "description","deleted", "created_on", "created_by", "updated_on", "updated_by","plugin_parent_metadata_id","plugin_version","is_deprecated","is_latest")
VALUES (nextval('id_seq_plugin_metadata'), 'Devtron CI Trigger','Triggers the CI pipeline of Devtron Application','f', 'now()', 1, 'now()', 1, (SELECT id FROM plugin_parent_metadata WHERE identifier='devtron-ci-trigger-v1-0-0'),'1.1.0', false, true);

INSERT INTO "plugin_stage_mapping" ("plugin_id","stage_type","created_on", "created_by", "updated_on", "updated_by")
VALUES ((SELECT id FROM plugin_metadata WHERE plugin_version='1.1.0' and name='Devtron CI Trigger' and deleted= false),0,'now()', 1, 'now()', 1);

INSERT INTO "plugin_pipeline_script" ("id", "script","type","deleted","created_on", "created_by", "updated_on", "updated_by")VALUES (
nextval('id_seq_plugin_pipeline_script'),
E'#!/bin/sh
docker run -e DevtronApiToken=$DevtronApiToken -e DevtronEndpoint=$DevtronEndpoint -e DevtronApp=$DevtronApp -e CiPipeline=$CiPipeline -e DevtronEnv=$DevtronEnv -e GitCommitHash=$GitCommitHash -e Timeout=$Timeout -e IgnoreCache=$IgnoreCache --name devtron-ci-trigger quay.io/devtron/devtron-utils:ci-trigger-plugin-v1.1.0
exit_code=$?
if [ $ExitOnFail == true ];then
if [ $exit_code == 2 ];then
echo "The triggered build has been failed terminating the current process."
exit $exit_code
fi
fi
if [ $exit_code -ne 0 ] && [ $exit_code -ne 2 ] ; then
echo "The Docker container exited with code $exit_code. Terminating current process."
exit $exit_code
fi','SHELL','f','now()',1,'now()',1);


INSERT INTO "plugin_step" ("id", "plugin_id","name","description","index","step_type","script_id","deleted", "created_on", "created_by", "updated_on", "updated_by") VALUES (nextval('id_seq_plugin_step'), (SELECT id FROM plugin_metadata WHERE name='Devtron CI Trigger'),'Step 1','Runnig the plugin','1','INLINE',(SELECT last_value FROM id_seq_plugin_pipeline_script),'f','now()', 1, 'now()', 1);

INSERT INTO plugin_step_variable (id,plugin_step_id,name,format, description,is_exposed,allow_empty_value,default_value,value,variable_type,value_type,previous_step_index,variable_step_index,variable_step_index_in_plugin,reference_variable_name,deleted,created_on,created_by,updated_on,updated_by)VALUES
(nextval('id_seq_plugin_step_variable'),(SELECT ps.id FROM plugin_metadata p inner JOIN plugin_step ps on ps.plugin_id=p.id WHERE p.name='Devtron CI Trigger' and ps."index"=1 and ps.deleted=false),'DevtronApiToken','STRING','Enter Devtron API Token with required permissions.','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
(nextval('id_seq_plugin_step_variable'),(SELECT ps.id FROM plugin_metadata p inner JOIN plugin_step ps on ps.plugin_id=p.id WHERE p.name='Devtron CI Trigger' and ps."index"=1 and ps.deleted=false),'DevtronEndpoint','STRING','Enter the URL of Devtron Dashboard for.eg (https://devtron.example.com).','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
(nextval('id_seq_plugin_step_variable'),(SELECT ps.id FROM plugin_metadata p inner JOIN plugin_step ps on ps.plugin_id=p.id WHERE p.name='Devtron CI Trigger' and ps."index"=1 and ps.deleted=false),'DevtronApp','STRING','Enter the name or ID of the Application whose build is to be triggered.','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
(nextval('id_seq_plugin_step_variable'),(SELECT ps.id FROM plugin_metadata p inner JOIN plugin_step ps on ps.plugin_id=p.id WHERE p.name='Devtron CI Trigger' and ps."index"=1 and ps.deleted=false),'DevtronEnv','STRING','Enter the name or ID of the Environment to which the CI is attached. Required if CiPipeline is not given.','t','t',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
(nextval('id_seq_plugin_step_variable'),(SELECT ps.id FROM plugin_metadata p inner JOIN plugin_step ps on ps.plugin_id=p.id WHERE p.name='Devtron CI Trigger' and ps."index"=1 and ps.deleted=false),'CiPipeline','STRING','Enter the name or ID of the CI pipeline to be triggered. Required if DevtronEnv is not given.','t','t',null,null,'INPUT','NEW',null,1,null,null, 'f','now()',1,'now()',1),
(nextval('id_seq_plugin_step_variable'),(SELECT ps.id FROM plugin_metadata p inner JOIN plugin_step ps on ps.plugin_id=p.id WHERE p.name='Devtron CI Trigger' and ps."index"=1 and ps.deleted=false),'GitCommitHash','STRING','Enter the commit hash from which the build is to be triggered. If not given then will pick the latest.','t','t',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
(nextval('id_seq_plugin_step_variable'),(SELECT ps.id FROM plugin_metadata p inner JOIN plugin_step ps on ps.plugin_id=p.id WHERE p.name='Devtron CI Trigger' and ps."index"=1 and ps.deleted=false),'Timeout','NUMBER','Enter the maximum time to wait for the build status.', 't','t',-1,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
(nextval('id_seq_plugin_step_variable'),(SELECT ps.id FROM plugin_metadata p inner JOIN plugin_step ps on ps.plugin_id=p.id WHERE p.name='Devtron CI Trigger' and ps."index"=1 and ps.deleted=false),'IgnoreCache','STRING','Set true if you want to ignore cache for the build.', 't','t','false',null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1);
23 changes: 23 additions & 0 deletions scripts/sql/028902_019_docker_lint.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
DELETE FROM plugin_step_variable WHERE plugin_step_id in (SELECT ps.id FROM plugin_metadata p inner JOIN plugin_step ps on ps.plugin_id=p.id WHERE p.plugin_version='1.0.0' and p.name='Docker Lint' and p.deleted=false and ps."index"=1 and ps.deleted=false);


DELETE FROM plugin_step WHERE plugin_id = (SELECT id FROM plugin_metadata WHERE plugin_version='1.0.0' and name='Docker Lint' and deleted=false);


DELETE FROM plugin_stage_mapping WHERE plugin_id =(SELECT id FROM plugin_metadata WHERE plugin_version='1.0.0' and name='Docker Lint' and deleted=false);


DELETE FROM plugin_tag_relation WHERE plugin_id in (SELECT id FROM plugin_metadata WHERE plugin_version='1.0.0' and name='Docker Lint' and deleted=false);

DELETE FROM pipeline_stage_step_variable where pipeline_stage_step_id in (select id from pipeline_stage_step where name = 'Docker Lint') ;

DELETE FROM pipeline_stage_step where ref_plugin_id in (SELECT id from plugin_metadata WHERE plugin_version='1.0.0' and name ='Docker Lint' and deleted=false);


DELETE from plugin_pipeline_script where id = (SELECT script_id from plugin_step WHERE plugin_id=(SELECT id FROM plugin_metadata WHERE plugin_version='1.0.0' and name='Docker Lint' and deleted=false));


DELETE FROM plugin_metadata WHERE plugin_version='1.0.0' and name ='Docker Lint' and deleted=false;


DELETE FROM plugin_parent_metadata WHERE identifier ='docker-lint';
Loading
Loading