From b0709a8decac4168523a723d484a61cf43edee79 Mon Sep 17 00:00:00 2001 From: ziyi-bear Date: Tue, 5 Oct 2021 15:16:01 +0800 Subject: [PATCH 1/7] update ingress api version for k8s v1.19+ fix unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "Ingress" in version "extensions/v1beta1" --- templates/ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/ingress.yaml b/templates/ingress.yaml index cd3949c..ff2b6f0 100644 --- a/templates/ingress.yaml +++ b/templates/ingress.yaml @@ -1,7 +1,7 @@ {{- if .Values.hub.ingress.enabled -}} {{- $fullName := include "selenium.hub.fullname" . -}} {{- $ingressPath := .Values.hub.ingress.path -}} -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ $fullName }} From 6c9f6cef7b5658bf26f0bf87915f1edcd0d5662d Mon Sep 17 00:00:00 2001 From: ziyi-bear <54978757+ziyi-bear@users.noreply.github.com> Date: Fri, 15 Oct 2021 14:56:39 +0800 Subject: [PATCH 2/7] Create blank.yml --- .github/workflows/blank.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..f07a4f2 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,34 @@ +# This is a basic workflow to help you get started with Actions + +name: Chart-Release + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.2.0 + with: + charts_dir: . + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + From 4e2ac7e4a855fe0dbf9115a392fb84a1fec05c02 Mon Sep 17 00:00:00 2001 From: ziyi-bear <54978757+ziyi-bear@users.noreply.github.com> Date: Fri, 15 Oct 2021 14:57:58 +0800 Subject: [PATCH 3/7] Update Chart.yaml --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 290ed5a..096fdeb 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: selenium3 -version: 1.2.4 +version: 1.2.5 appVersion: 3.141.59 description: Chart for selenium 3 grid keywords: From c72116867329bfe607b8164487f04fe95dc60afb Mon Sep 17 00:00:00 2001 From: ziyi-bear <54978757+ziyi-bear@users.noreply.github.com> Date: Fri, 15 Oct 2021 14:59:59 +0800 Subject: [PATCH 4/7] Update and rename blank.yml to Release-Charts.yml --- .../{blank.yml => Release-Charts.yml} | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) rename .github/workflows/{blank.yml => Release-Charts.yml} (65%) diff --git a/.github/workflows/blank.yml b/.github/workflows/Release-Charts.yml similarity index 65% rename from .github/workflows/blank.yml rename to .github/workflows/Release-Charts.yml index f07a4f2..66074d2 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/Release-Charts.yml @@ -1,6 +1,6 @@ # This is a basic workflow to help you get started with Actions -name: Chart-Release +name: Release Charts # Controls when the workflow will run on: @@ -22,13 +22,23 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 - - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.2.0 + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Install Helm + uses: azure/setup-helm@v1 with: - charts_dir: . + version: v3.4.0 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.2.1 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" From ead30db96774e7aaef4639cfdaeae44418756f95 Mon Sep 17 00:00:00 2001 From: ziyi-bear <54978757+ziyi-bear@users.noreply.github.com> Date: Fri, 15 Oct 2021 15:01:59 +0800 Subject: [PATCH 5/7] Update Release-Charts.yml --- .github/workflows/Release-Charts.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/Release-Charts.yml b/.github/workflows/Release-Charts.yml index 66074d2..6419b97 100644 --- a/.github/workflows/Release-Charts.yml +++ b/.github/workflows/Release-Charts.yml @@ -39,6 +39,8 @@ jobs: - name: Run chart-releaser uses: helm/chart-releaser-action@v1.2.1 + with: + charts_dir: ./ env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" From 4bc29959488ce28b6a0de51dc988dcb741a470be Mon Sep 17 00:00:00 2001 From: ziyi-bear <54978757+ziyi-bear@users.noreply.github.com> Date: Fri, 15 Oct 2021 15:04:58 +0800 Subject: [PATCH 6/7] Update NOTES.txt --- templates/NOTES.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/NOTES.txt b/templates/NOTES.txt index 29608aa..0c75a66 100644 --- a/templates/NOTES.txt +++ b/templates/NOTES.txt @@ -1,4 +1,6 @@ -Selenium Hub can be accessed via port {{ .Values.hub.port }} on the following +selenium 3 + +Hub can be accessed via port {{ .Values.hub.port }} on the following DNS name from within your cluster: - http://{{ template "selenium.hub.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.hub.port }} From e45b9f97961d2bdd3bfcc239397cda39606384f4 Mon Sep 17 00:00:00 2001 From: ziyi-bear Date: Fri, 15 Oct 2021 15:25:52 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E6=94=B9=E8=AE=8A=E8=B3=87=E6=96=99?= =?UTF-8?q?=E7=B5=90=E6=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .helmignore => charts/.helmignore | 0 Chart.yaml => charts/Chart.yaml | 0 LICENSE => charts/LICENSE | 0 README.md => charts/README.md | 0 artifacthub-repo.yml => charts/artifacthub-repo.yml | 0 {templates => charts/templates}/NOTES.txt | 0 {templates => charts/templates}/_helpers.tpl | 0 {templates => charts/templates}/chrome-daemonset.yaml | 0 {templates => charts/templates}/chrome-deployment.yaml | 0 {templates => charts/templates}/chromeDebug-daemonset.yaml | 0 {templates => charts/templates}/chromeDebug-deployment.yaml | 0 {templates => charts/templates}/firefox-daemonset.yaml | 0 {templates => charts/templates}/firefox-deployment.yaml | 0 {templates => charts/templates}/firefoxDebug-daemonset.yaml | 0 {templates => charts/templates}/firefoxDebug-deployment.yaml | 0 {templates => charts/templates}/hub-deployment.yaml | 0 {templates => charts/templates}/hub-service.yaml | 0 {templates => charts/templates}/ingress.yaml | 0 {templates => charts/templates}/pvc.yaml | 0 values.yaml => charts/values.yaml | 0 20 files changed, 0 insertions(+), 0 deletions(-) rename .helmignore => charts/.helmignore (100%) rename Chart.yaml => charts/Chart.yaml (100%) rename LICENSE => charts/LICENSE (100%) rename README.md => charts/README.md (100%) rename artifacthub-repo.yml => charts/artifacthub-repo.yml (100%) rename {templates => charts/templates}/NOTES.txt (100%) rename {templates => charts/templates}/_helpers.tpl (100%) rename {templates => charts/templates}/chrome-daemonset.yaml (100%) rename {templates => charts/templates}/chrome-deployment.yaml (100%) rename {templates => charts/templates}/chromeDebug-daemonset.yaml (100%) rename {templates => charts/templates}/chromeDebug-deployment.yaml (100%) rename {templates => charts/templates}/firefox-daemonset.yaml (100%) rename {templates => charts/templates}/firefox-deployment.yaml (100%) rename {templates => charts/templates}/firefoxDebug-daemonset.yaml (100%) rename {templates => charts/templates}/firefoxDebug-deployment.yaml (100%) rename {templates => charts/templates}/hub-deployment.yaml (100%) rename {templates => charts/templates}/hub-service.yaml (100%) rename {templates => charts/templates}/ingress.yaml (100%) rename {templates => charts/templates}/pvc.yaml (100%) rename values.yaml => charts/values.yaml (100%) diff --git a/.helmignore b/charts/.helmignore similarity index 100% rename from .helmignore rename to charts/.helmignore diff --git a/Chart.yaml b/charts/Chart.yaml similarity index 100% rename from Chart.yaml rename to charts/Chart.yaml diff --git a/LICENSE b/charts/LICENSE similarity index 100% rename from LICENSE rename to charts/LICENSE diff --git a/README.md b/charts/README.md similarity index 100% rename from README.md rename to charts/README.md diff --git a/artifacthub-repo.yml b/charts/artifacthub-repo.yml similarity index 100% rename from artifacthub-repo.yml rename to charts/artifacthub-repo.yml diff --git a/templates/NOTES.txt b/charts/templates/NOTES.txt similarity index 100% rename from templates/NOTES.txt rename to charts/templates/NOTES.txt diff --git a/templates/_helpers.tpl b/charts/templates/_helpers.tpl similarity index 100% rename from templates/_helpers.tpl rename to charts/templates/_helpers.tpl diff --git a/templates/chrome-daemonset.yaml b/charts/templates/chrome-daemonset.yaml similarity index 100% rename from templates/chrome-daemonset.yaml rename to charts/templates/chrome-daemonset.yaml diff --git a/templates/chrome-deployment.yaml b/charts/templates/chrome-deployment.yaml similarity index 100% rename from templates/chrome-deployment.yaml rename to charts/templates/chrome-deployment.yaml diff --git a/templates/chromeDebug-daemonset.yaml b/charts/templates/chromeDebug-daemonset.yaml similarity index 100% rename from templates/chromeDebug-daemonset.yaml rename to charts/templates/chromeDebug-daemonset.yaml diff --git a/templates/chromeDebug-deployment.yaml b/charts/templates/chromeDebug-deployment.yaml similarity index 100% rename from templates/chromeDebug-deployment.yaml rename to charts/templates/chromeDebug-deployment.yaml diff --git a/templates/firefox-daemonset.yaml b/charts/templates/firefox-daemonset.yaml similarity index 100% rename from templates/firefox-daemonset.yaml rename to charts/templates/firefox-daemonset.yaml diff --git a/templates/firefox-deployment.yaml b/charts/templates/firefox-deployment.yaml similarity index 100% rename from templates/firefox-deployment.yaml rename to charts/templates/firefox-deployment.yaml diff --git a/templates/firefoxDebug-daemonset.yaml b/charts/templates/firefoxDebug-daemonset.yaml similarity index 100% rename from templates/firefoxDebug-daemonset.yaml rename to charts/templates/firefoxDebug-daemonset.yaml diff --git a/templates/firefoxDebug-deployment.yaml b/charts/templates/firefoxDebug-deployment.yaml similarity index 100% rename from templates/firefoxDebug-deployment.yaml rename to charts/templates/firefoxDebug-deployment.yaml diff --git a/templates/hub-deployment.yaml b/charts/templates/hub-deployment.yaml similarity index 100% rename from templates/hub-deployment.yaml rename to charts/templates/hub-deployment.yaml diff --git a/templates/hub-service.yaml b/charts/templates/hub-service.yaml similarity index 100% rename from templates/hub-service.yaml rename to charts/templates/hub-service.yaml diff --git a/templates/ingress.yaml b/charts/templates/ingress.yaml similarity index 100% rename from templates/ingress.yaml rename to charts/templates/ingress.yaml diff --git a/templates/pvc.yaml b/charts/templates/pvc.yaml similarity index 100% rename from templates/pvc.yaml rename to charts/templates/pvc.yaml diff --git a/values.yaml b/charts/values.yaml similarity index 100% rename from values.yaml rename to charts/values.yaml