-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(chart): test extra scripts import when import as sub-chart
[deploy] Signed-off-by: Viet Nguyen Duc <[email protected]>
- Loading branch information
Showing
11 changed files
with
225 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@main | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
|
@@ -28,6 +29,18 @@ jobs: | |
- name: Get chart release notes (chart_release_notes.md) | ||
run: ./generate_chart_changelog.sh HEAD | ||
|
||
- name: Commit files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Selenium CI Bot" | ||
git commit -m "Update tag in docs and files" -a | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.SELENIUM_CI_TOKEN }} | ||
branch: trunk | ||
|
||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@main | ||
with: | ||
|
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,118 @@ | ||
# This is dummy values file for chart template testing | ||
global: | ||
K8S_PUBLIC_IP: "10.10.10.10" | ||
seleniumGrid: | ||
logLevel: FINE | ||
affinity: &affinity | ||
podAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchExpressions: | ||
- key: app | ||
operator: In | ||
values: | ||
- selenium | ||
topologyKey: "kubernetes.io/hostname" | ||
|
||
selenium-grid: | ||
autoscaling: | ||
enableWithExistingKEDA: true | ||
scalingType: deployment | ||
|
||
basicAuth: | ||
username: sysadmin | ||
password: strongPassword | ||
|
||
tls: | ||
enabled: true | ||
generateTLS: false | ||
|
||
ingress: | ||
nginx: | ||
proxyTimeout: 360 # Set different proxy timout | ||
proxyBuffer: | ||
# size: 512M # Keep using sub-config default | ||
number: ! # Disable sub-config | ||
annotations: # Add you own annotations | ||
nginx.ingress.kubernetes.io/use-regex: "true" # Add new key | ||
nginx.ingress.kubernetes.io/rewrite-target: /$2 | ||
nginx.ingress.kubernetes.io/app-root: &gridAppRoot "/selenium" | ||
nginx.ingress.kubernetes.io/proxy-connect-timeout: "3600" # Override default key | ||
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" # Override default key | ||
hostname: "" | ||
ports: | ||
http: 8081 | ||
https: 8443 | ||
paths: | ||
- path: /selenium(/|$)(.*) | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: '{{ ternary (include "seleniumGrid.router.fullname" $ ) (include "seleniumGrid.hub.fullname" $ ) $.Values.isolateComponents }}' | ||
port: | ||
number: 4444 | ||
- path: /(/?)(session/.*/se/vnc) | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: '{{ ternary (include "seleniumGrid.router.fullname" $ ) (include "seleniumGrid.hub.fullname" $ ) $.Values.isolateComponents }}' | ||
port: | ||
number: 4444 | ||
|
||
isolateComponents: true | ||
|
||
components: | ||
subPath: *gridAppRoot | ||
disableUI: true | ||
router: | ||
serviceType: NodePort | ||
distributor: | ||
serviceType: NodePort | ||
eventBus: | ||
serviceType: NodePort | ||
sessionQueue: | ||
serviceType: NodePort | ||
sessionMap: | ||
serviceType: NodePort | ||
|
||
chromeNode: | ||
affinity: *affinity | ||
|
||
firefoxNode: | ||
affinity: *affinity | ||
|
||
edgeNode: | ||
affinity: *affinity | ||
|
||
videoRecorder: | ||
enabled: true | ||
uploader: | ||
enabled: true | ||
destinationPrefix: "s3://bucket-name" | ||
secrets: | ||
RCLONE_CONFIG_S3_TYPE: "s3" | ||
RCLONE_CONFIG_S3_PROVIDER: "AWS" | ||
RCLONE_CONFIG_S3_ENV_AUTH: "true" | ||
RCLONE_CONFIG_S3_REGION: "ap-southeast-1" | ||
RCLONE_CONFIG_S3_LOCATION_CONSTRAINT: "ap-southeast-1" | ||
RCLONE_CONFIG_S3_ACL: "private" | ||
RCLONE_CONFIG_S3_ACCESS_KEY_ID: "xxx" | ||
RCLONE_CONFIG_S3_SECRET_ACCESS_KEY: "xxx" | ||
|
||
nodeConfigMap: | ||
extraScripts: | ||
nodeCustomTask.sh: | | ||
#!/bin/bash | ||
echo "This is a custom task" | ||
recorderConfigMap: | ||
extraScripts: | ||
video.sh: | | ||
#!/bin/bash | ||
echo "This is override script" | ||
uploaderConfigMap: | ||
extraScripts: | ||
upload.sh: | | ||
#!/bin/bash | ||
echo "This is override script" |
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,2 @@ | ||
charts | ||
Chart.lock |
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,2 @@ | ||
.git/ | ||
.gitignore |
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,10 @@ | ||
apiVersion: v2 | ||
name: umbrella-charts | ||
description: A Helm chart for Umbrella Chart Test | ||
type: application | ||
version: 0.0.1 | ||
appVersion: "1.0.0" | ||
dependencies: | ||
- name: selenium-grid | ||
version: 0.28.1 | ||
repository: file://../../../charts/selenium-grid |
Empty file.
Empty file.