Skip to content

Commit b998073

Browse files
authored
Merge branch 'main' into Copacetic
2 parents ba7d417 + 2b436e8 commit b998073

File tree

100 files changed

+7729
-804
lines changed

Some content is hidden

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

100 files changed

+7729
-804
lines changed

.gitbook.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,5 @@ redirects:
126126
user-guide/creating-application/workflow/ci-pipeline2: user-guide/creating-application/workflow/ci-pipeline.md
127127
user-guide/clusters: user-guide/resource-browser.md
128128
usage/clusters: user-guide/resource-browser.md
129-
global-configurations/authorization/sso-login/okta: user-guide/global-configurations/authorization/sso/okta.md
129+
global-configurations/authorization/sso-login/okta: user-guide/global-configurations/authorization/sso/okta.md
130+
usage/applications/creating-application/ci-pipeline/ci-build-pre-post-plugins: user-guide/creating-application/workflow/ci-build-pre-post-plugins.md

.github/workflows/azure-devops-issue-sync.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
.env
55
/cmd/external-app/devtron-ea
66
devtron
7-
/vendor/github.com/argoproj/argo-cd/assets

Wire.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ import (
7575
"github.com/devtron-labs/devtron/cel"
7676
"github.com/devtron-labs/devtron/client/argocdServer"
7777
"github.com/devtron-labs/devtron/client/argocdServer/application"
78+
"github.com/devtron-labs/devtron/client/argocdServer/certificate"
7879
cluster2 "github.com/devtron-labs/devtron/client/argocdServer/cluster"
7980
"github.com/devtron-labs/devtron/client/argocdServer/connection"
81+
repocreds "github.com/devtron-labs/devtron/client/argocdServer/repocreds"
8082
repository2 "github.com/devtron-labs/devtron/client/argocdServer/repository"
8183
session2 "github.com/devtron-labs/devtron/client/argocdServer/session"
8284
"github.com/devtron-labs/devtron/client/cron"
@@ -973,6 +975,9 @@ func InitializeApp() (*App, error) {
973975
imageDigestPolicy.NewImageDigestPolicyServiceImpl,
974976
wire.Bind(new(imageDigestPolicy.ImageDigestPolicyService), new(*imageDigestPolicy.ImageDigestPolicyServiceImpl)),
975977

978+
certificate.NewServiceClientImpl,
979+
wire.Bind(new(certificate.Client), new(*certificate.ServiceClientImpl)),
980+
976981
appStoreRestHandler.AppStoreWireSet,
977982

978983
cel.NewCELServiceImpl,
@@ -983,6 +988,9 @@ func InitializeApp() (*App, error) {
983988

984989
common.NewDeploymentConfigServiceImpl,
985990
wire.Bind(new(common.DeploymentConfigService), new(*common.DeploymentConfigServiceImpl)),
991+
992+
repocreds.NewServiceClientImpl,
993+
wire.Bind(new(repocreds.ServiceClient), new(*repocreds.ServiceClientImpl)),
986994
)
987995
return &App{}, nil
988996
}

api/bean/gitOps/GitOpsConfig.go

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,30 @@
1616

1717
package gitOps
1818

19-
import "time"
19+
import (
20+
"github.com/devtron-labs/devtron/api/bean"
21+
"time"
22+
)
2023

2124
type GitOpsConfigDto struct {
22-
Id int `json:"id,omitempty"`
23-
Provider string `json:"provider" validate:"oneof=GITLAB GITHUB AZURE_DEVOPS BITBUCKET_CLOUD"`
24-
Username string `json:"username"`
25-
Token string `json:"token"`
26-
GitLabGroupId string `json:"gitLabGroupId"`
27-
GitHubOrgId string `json:"gitHubOrgId"`
28-
Host string `json:"host"`
29-
Active bool `json:"active"`
30-
AzureProjectName string `json:"azureProjectName"`
31-
BitBucketWorkspaceId string `json:"bitBucketWorkspaceId"`
32-
BitBucketProjectKey string `json:"bitBucketProjectKey"`
33-
AllowCustomRepository bool `json:"allowCustomRepository"`
25+
Id int `json:"id,omitempty"`
26+
Provider string `json:"provider" validate:"oneof=GITLAB GITHUB AZURE_DEVOPS BITBUCKET_CLOUD"`
27+
Username string `json:"username"`
28+
Token string `json:"token"`
29+
GitLabGroupId string `json:"gitLabGroupId"`
30+
GitHubOrgId string `json:"gitHubOrgId"`
31+
Host string `json:"host"`
32+
Active bool `json:"active"`
33+
AzureProjectName string `json:"azureProjectName"`
34+
BitBucketWorkspaceId string `json:"bitBucketWorkspaceId"`
35+
BitBucketProjectKey string `json:"bitBucketProjectKey"`
36+
AllowCustomRepository bool `json:"allowCustomRepository"`
37+
EnableTLSVerification bool `json:"enableTLSVerification"`
38+
TLSConfig *bean.TLSConfig `json:"tlsConfig"`
39+
40+
IsCADataPresent bool `json:"isCADataPresent"`
41+
IsTLSCertDataPresent bool `json:"isTLSCertDataPresent"`
42+
IsTLSKeyDataPresent bool `json:"isTLSKeyDataPresent"`
3443

3544
// TODO refactoring: create different struct for internal fields
3645
GitRepoName string `json:"-"`

api/bean/tlsConfig.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package bean
2+
3+
type TLSConfig struct {
4+
CaData string `json:"caData"`
5+
TLSCertData string `json:"tlsCertData"`
6+
TLSKeyData string `json:"tlsKeyData"`
7+
}

0 commit comments

Comments
 (0)