Skip to content

Commit 91e58c1

Browse files
authored
Merge branch 'main' into updating-pr-validator
2 parents d8651a4 + f544a33 commit 91e58c1

File tree

286 files changed

+56632
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+56632
-171
lines changed

App.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import (
3535
"github.com/devtron-labs/devtron/pkg/auth/user"
3636

3737
"github.com/casbin/casbin"
38+
casbinv2 "github.com/casbin/casbin/v2"
3839
authMiddleware "github.com/devtron-labs/authenticator/middleware"
3940
"github.com/devtron-labs/devtron/api/router"
4041
"github.com/devtron-labs/devtron/api/sse"
@@ -50,6 +51,7 @@ type App struct {
5051
Logger *zap.SugaredLogger
5152
SSE *sse.SSE
5253
Enforcer *casbin.SyncedEnforcer
54+
EnforcerV2 *casbinv2.SyncedEnforcer
5355
server *http.Server
5456
db *pg.DB
5557
posthogClient *telemetry.PosthogClient
@@ -74,6 +76,7 @@ func NewApp(router *router.MuxRouter,
7476
centralEventProcessor *eventProcessor.CentralEventProcessor,
7577
pubSubClient *pubsub.PubSubClientServiceImpl,
7678
workflowEventProcessorImpl *in.WorkflowEventProcessorImpl,
79+
enforcerV2 *casbinv2.SyncedEnforcer,
7780
) *App {
7881
//check argo connection
7982
//todo - check argo-cd version on acd integration installation
@@ -82,6 +85,7 @@ func NewApp(router *router.MuxRouter,
8285
Logger: Logger,
8386
SSE: sse,
8487
Enforcer: enforcer,
88+
EnforcerV2: enforcerV2,
8589
db: db,
8690
serveTls: false,
8791
sessionManager2: sessionManager2,

api/auth/user/wire_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var UserWireSet = wire.NewSet(
5656

5757
casbin.NewEnforcerImpl,
5858
wire.Bind(new(casbin.Enforcer), new(*casbin.EnforcerImpl)),
59-
casbin.Create,
59+
casbin.Create, casbin.CreateV2,
6060

6161
user2.NewUserCommonServiceImpl,
6262
wire.Bind(new(user2.UserCommonService), new(*user2.UserCommonServiceImpl)),

cmd/external-app/wire_gen.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/SUMMARY.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,19 @@
3939
* [Permission Groups](user-guide/global-configurations/authorization/permission-groups.md)
4040
* [API Tokens](user-guide/global-configurations/authorization/api-tokens.md)
4141
* [Notifications](user-guide/global-configurations/manage-notification.md)
42+
* [Deployment Window](user-guide/global-configurations/deployment-window.md)
4243
* [External Links](user-guide/global-configurations/external-links.md)
4344
* [Catalog Framework](user-guide/global-configurations/catalog-framework.md)
4445
* [Scoped Variables](user-guide/global-configurations/scoped-variables.md)
4546
* [Pull Image Digest](user-guide/global-configurations/pull-image-digest.md)
4647
* [Tags Policy](user-guide/global-configurations/tags-policy.md)
48+
* [Filter Condition](user-guide/global-configurations/filter-condition.md)
4749
* [Lock Deployment Configuration](user-guide/global-configurations/lock-deployment-config.md)
4850
* [Image Promotion Policy](user-guide/global-configurations/image-promotion-policy.md)
49-
* [Filter Condition](user-guide/global-configurations/filter-condition.md)
5051
* [Build Infra](user-guide/global-configurations/build-infra.md)
5152
* [Devtron Upgrade](setup/upgrade/README.md)
5253
* [Update Devtron from Devtron UI](setup/upgrade/upgrade-devtron-ui.md)
54+
* [0.6.x-0.7.x](setup/upgrade/devtron-upgrade-0.6.x-0.7.x.md)
5355
* [0.5.x-0.6.x](setup/upgrade/devtron-upgrade-0.5.x-0.6.x.md)
5456
* [0.4.x-0.5.x](setup/upgrade/devtron-upgrade-0.4.x-0.5.x.md)
5557
* [0.4.x-0.4.x](setup/upgrade/devtron-upgrade-0.4.x-0.4.x.md)

docs/setup/upgrade/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Devtron can be upgraded in one of the following ways:
66

77
**Versions Upgrade**
88

9+
- [0.6.x to 0.7.x](devtron-upgrade-0.6.x-0.7.x.md)
910
- [0.5.x to 0.6.x](devtron-upgrade-0.5.x-0.6.x.md)
1011
- [0.4.x to 0.5.x](devtron-upgrade-0.4.x-0.5.x.md)
1112
- [0.4.x to 0.4.x](devtron-upgrade-0.4.x-0.4.x.md)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Upgrading Devtron 0.6.x to 0.7.x
2+
3+
To check the current version of your Devtron setup, use the following command
4+
5+
```bash
6+
kubectl -n devtroncd get installers installer-devtron -o jsonpath='{.status.sync.data}' | grep "^LTAG=" | cut -d"=" -f2-
7+
```
8+
9+
Proceed with the following steps only if the version is `0.6.x`
10+
11+
---
12+
13+
## Prerequisites
14+
15+
1. Set the release name
16+
17+
```bash
18+
export RELEASE_NAME=devtron
19+
```
20+
21+
2. Label and annotate the service accounts in the `devtron-ci` namespace
22+
23+
```bash
24+
kubectl -n devtron-ci label sa --all "app.kubernetes.io/managed-by=Helm" --overwrite
25+
kubectl -n devtron-ci annotate sa --all "meta.helm.sh/release-name=$RELEASE_NAME" "meta.helm.sh/release-namespace=devtroncd" --overwrite
26+
```
27+
28+
3. Now, label and annotate the service accounts in the `devtron-cd` namespace
29+
30+
```
31+
kubectl -n devtron-cd label sa --all "app.kubernetes.io/managed-by=Helm" --overwrite
32+
kubectl -n devtron-cd annotate sa --all "meta.helm.sh/release-name=$RELEASE_NAME" "meta.helm.sh/release-namespace=devtroncd" --overwrite
33+
```
34+
35+
---
36+
37+
## Upgrade Commands
38+
39+
1. Update the Helm repository
40+
41+
```bash
42+
helm repo update
43+
```
44+
45+
2. Run the upgrade command for Devtron
46+
47+
```bash
48+
helm upgrade devtron devtron/devtron-operator -n devtroncd --reuse-values -f https://raw.githubusercontent.com/devtron-labs/devtron/main/charts/devtron/devtron-bom.yaml
49+
```
50+
51+
---
52+
53+
## Expected Command Output
54+
55+
![Command Output](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/kubernetes-resource-browser/command-output.jpg)

0 commit comments

Comments
 (0)