Skip to content

Commit

Permalink
chore: Make QuickLink installation optional (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-nedostup authored and MykolaMarusenko committed Jan 23, 2025
1 parent a36cd43 commit 04c32ee
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- range $name, $server := .Values.gitServers }}
{{- if $server.quickLink.enabled }}
{{- if has $server.gitProvider $.Values.global.gitProviders }}
apiVersion: v2.edp.epam.com/v1
kind: QuickLink
Expand All @@ -20,5 +21,6 @@ spec:
icon: "PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cmVjdCByeT0iNCIgcng9IjQiIGhlaWdodD0iNDAiIHdpZHRoPSI0MCIgeT0iMCIgeD0iMCIgZmlsbD0iI2ZmYWFhYSIvPg0KPHJlY3Qgcnk9IjQiIHJ4PSI0IiBoZWlnaHQ9IjQwIiB3aWR0aD0iNDAiIHk9IjEyIiB4PSIxMiIgZmlsbD0iI2FhZmZhYSIvPg0KPHBhdGggZD0ibTE4LDIybDEyLDBsMCw0bC0xMiwwbDAsLTR6IiBmaWxsPSIjZmYwMDAwIi8+DQo8cGF0aCBkPSJtMzQsMjJsMTIsMGwwLDRsLTEyLDBsMCwtNHoiIGZpbGw9IiNmZjAwMDAiLz4NCjxwYXRoIGQ9Im0xOCwzNmw0LDBsMCwtNGw0LDBsMCw0bDQsMGwwLDRsLTQsMGwwLDRsLTQsMGwwLC00bC00LDBsMCwtNHoiIGZpbGw9IiMwMDgwMDAiLz4NCjxwYXRoIGQ9Im0zNCwzNmw0LDBsMCwtNGw0LDBsMCw0bDQsMGwwLDRsLTQsMGwwLDRsLTQsMGwwLC00bC00LDBsMCwtNHoiIGZpbGw9IiMwMDgwMDAiLz4NCjwvc3ZnPg=="
{{- end }}
{{- end }}
{{- end }}
---
{{- end }}
6 changes: 6 additions & 0 deletions charts/pipelines-library/tests/test_baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def test_ingress_for_gitlab_el():
my-gitlab:
gitProvider: gitlab
host: gitlab.com
quickLink:
enabled: true
webhook:
skipWebhookSSLVerification: false
eventListener:
Expand Down Expand Up @@ -79,6 +81,8 @@ def test_ingress_for_github_el():
my-github:
gitProvider: github
host: github.com
quickLink:
enabled: true
webhook:
skipWebhookSSLVerification: false
eventListener:
Expand Down Expand Up @@ -126,6 +130,8 @@ def test_ingress_for_gerrit_el():
my-gerrit:
gitProvider: gerrit
host: gerrit.com
quickLink:
enabled: true
webhook:
skipWebhookSSLVerification: false
eventListener:
Expand Down
2 changes: 2 additions & 0 deletions charts/pipelines-library/tests/test_bitbucket_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def test_bitbucket_is_enabled():
my-bitbucket:
gitProvider: bitbucket
host: bitbucket.com
quickLink:
enabled: true
webhook:
url: https://my-custom-ingress-name.example.com
skipWebhookSSLVerification: false
Expand Down
1 change: 1 addition & 0 deletions charts/pipelines-library/tests/test_gerrit_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def test_gerrit_is_enabled():
nameSshKeySecret: gerrit-ciuser-sshkey
sshPort: 30100
quickLink:
enabled: true
host: gerrit-external.com
webhook:
skipWebhookSSLVerification: false
Expand Down
2 changes: 2 additions & 0 deletions charts/pipelines-library/tests/test_github_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def test_github_is_enabled():
my-github:
gitProvider: github
host: github.com
quickLink:
enabled: true
webhook:
skipWebhookSSLVerification: false
eventListener:
Expand Down
2 changes: 2 additions & 0 deletions charts/pipelines-library/tests/test_gitlab_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def test_gitlab_is_enabled():
my-gitlab:
gitProvider: gitlab
host: gitlab.com
quickLink:
enabled: true
webhook:
url: https://my-custom-ingress-name.example.com
skipWebhookSSLVerification: false
Expand Down
6 changes: 6 additions & 0 deletions charts/pipelines-library/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ gitServers: {}
# my-github:
# gitProvider: github
# host: github.com
# quickLink:
# enabled: false
# webhook:
# skipWebhookSSLVerification: false
# eventListener:
Expand Down Expand Up @@ -386,6 +388,8 @@ gitServers: {}
# my-gitlab:
# gitProvider: gitlab
# host: gitlab.com
# quickLink:
# enabled: false
# webhook:
# # codebase operator will use this URL to create webhooks in GitLab, if it is not defined
# # the operator will use the Ingress value
Expand Down Expand Up @@ -420,6 +424,8 @@ gitServers: {}
# my-gerrit:
# gitProvider: gerrit
# host: gerrit.example.com
# quickLink:
# enabled: false
# gitUser: ci-user
# httpsPort: 443
# nameSshKeySecret: gerrit-ciuser-sshkey
Expand Down
8 changes: 8 additions & 0 deletions tests/e2e/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ gitServers:
my-github:
gitProvider: github
host: github.com
quickLink:
enabled: true
webhook:
skipWebhookSSLVerification: false
eventListener:
Expand Down Expand Up @@ -33,6 +35,8 @@ gitServers:
my-gitlab:
gitProvider: gitlab
host: gitlab.com
quickLink:
enabled: true
webhook:
skipWebhookSSLVerification: false
eventListener:
Expand Down Expand Up @@ -64,6 +68,8 @@ gitServers:
my-bitbucket:
gitProvider: bitbucket
host: bitbucket.example.com
quickLink:
enabled: true
webhook:
skipWebhookSSLVerification: false
eventListener:
Expand Down Expand Up @@ -95,6 +101,8 @@ gitServers:
my-gerrit:
gitProvider: gerrit
host: gerrit.example.com
quickLink:
enabled: true
webhook:
skipWebhookSSLVerification: false
eventListener:
Expand Down

0 comments on commit 04c32ee

Please sign in to comment.