Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed May 16, 2024
1 parent 42b5cb7 commit e729582
Show file tree
Hide file tree
Showing 39 changed files with 81,513 additions and 9,695 deletions.
92 changes: 92 additions & 0 deletions .github/workflows/test-kots-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: test - kots-install

on:
pull_request:
branches:
- main
paths:
- kots-install/**

concurrency:
group: test-kots-install-${{ github.head_ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
env:
WORDPRESS_CHART_VERSION: 22.2.8
APP_SLUG: replicated-actions-ci # from the Replicated QA team

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: |
**/package-lock.json
- name: build
run: make package-kots-install

- name: pull helm chart
run: |
helm pull oci://registry-1.docker.io/bitnamicharts/wordpress --version ${{ env.WORDPRESS_CHART_VERSION }}
- name: create-release
id: create-release
uses: replicatedhq/compatibility-actions/create-release@v1
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
app-slug: ${{ env.APP_SLUG }}
chart: wordpress-${{ env.WORDPRESS_CHART_VERSION }}.tgz

- name: create-customer
id: create-customer
uses: replicatedhq/compatibility-actions/create-customer@v1
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
app-slug: replicated-actions-ci # from the Replicated QA team
customer-name: "CI Test Customer - ${{ github.ref_name }} - ${{ github.sha }}"
customer-email: ${{ github.sha }}@example.com
license-type: test

- name: create-cluster
id: create-cluster
uses: replicatedhq/compatibility-actions/create-cluster@v1
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
kubernetes-distribution: kind
timeout-minutes: 5

- name: helm-install
id: helm-install
uses: replicatedhq/compatibility-actions/helm-install@v1
with:
kubeconfig: ${{ steps.create-cluster.outputs.cluster-kubeconfig }}
helm-path: helm
registry-username: ${{ github.ref_name }}@example.com
registry-password: ${{ steps.create-customer.outputs.license-id }}
chart: oci://registry.replicated.com/${{ env.APP_SLUG }}/release__${{ steps.create-release.outputs.release-sequence }}/wordpress
name: wordpress
namespace: default
run-preflights: false

- name: test kots-install
id: kots-install
uses: ./kots-install
with:
kubeconfig: ${{ steps.create-cluster.outputs.cluster-kubeconfig }}
app-slug: ${{ env.APP_SLUG }}/${{ steps.create-release.outputs.channel-slug }}
license-file: ${{ steps.create-customer.outputs.license-file }}
app-version-label: release__${{ steps.create-release.outputs.release-sequence }}

- name: remove cluster
id: remove-cluster
if: always()
uses: replicatedhq/compatibility-actions/remove-cluster@v1
continue-on-error: true # It could be that the cluster is already removed
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }}
58 changes: 31 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ SHELL := /bin/bash
all: package-all readme-all

.PHONY: package-all
package-all: package-archive-channel package-archive-customer package-create-cluster package-create-object-store \
package-create-postgres package-expose-port package-create-customer package-create-release \
package-helm-install package-kots-install package-promote-release package-remove-cluster \
package-get-customer-instances package-report-compatibility-result package-upgrade-cluster \
package-prepare-cluster
package-all: package-all-new \
package-archive-channel package-archive-customer package-create-object-store \
package-create-postgres package-expose-port package-promote-release \
package-get-customer-instances package-report-compatibility-result package-upgrade-cluster

.PHONY: package-all-new
package-all-new: package-create-customer package-create-release \
package-helm-install package-kots-install \
package-create-cluster package-remove-cluster package-prepare-cluster

.PHONY: package-main
package-main:
Expand Down Expand Up @@ -66,9 +70,9 @@ package-helm-install: package-main
cp -r dist helm-install/

.PHONY: package-kots-install
package-kots-install:
rm -rf ./kots-install/build ./kots-install/dist ./kots-install/node_modules
@$(MAKE) -C kots-install package
package-kots-install: package-main
rm -rf ./kots-install/dist
cp -r dist kots-install/

.PHONY: package-promote-release
package-promote-release:
Expand Down Expand Up @@ -102,70 +106,70 @@ readme-all: pip-install readme-archive-channel readme-archive-customer readme-cr
readme-get-customer-instances readme-report-compatibility-result \
readme-upgrade-cluster

.PHONE: pip-install
.PHONY: pip-install
pip-install:
pip3 install -r docs/generate-readme/requirements.txt
pip install -Ur docs/generate-readme/requirements.txt

.PHONY: readme-archive-channel
readme-archive-channel: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./archive-channel/action.yml > ./archive-channel/README.md
python docs/generate-readme/action-to-mermaid.py ./archive-channel/action.yml > ./archive-channel/README.md

.PHONY: readme-archive-customer
readme-archive-customer: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./archive-customer/action.yml > ./archive-customer/README.md
python docs/generate-readme/action-to-mermaid.py ./archive-customer/action.yml > ./archive-customer/README.md

.PHONY: readme-create-cluster
readme-create-cluster: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./create-cluster/action.yml > ./create-cluster/README.md
python docs/generate-readme/action-to-mermaid.py ./create-cluster/action.yml > ./create-cluster/README.md

.PHONY: readme-create-object-store
readme-create-object-store: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./create-object-store/action.yml > ./create-object-store/README.md
python docs/generate-readme/action-to-mermaid.py ./create-object-store/action.yml > ./create-object-store/README.md

.PHONY: readme-create-postgres
readme-create-postgres: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./create-postgres/action.yml > ./create-postgres/README.md
python docs/generate-readme/action-to-mermaid.py ./create-postgres/action.yml > ./create-postgres/README.md

.PHONY: readme-expose-port
readme-expose-port: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./expose-port/action.yml > ./expose-port/README.md
python docs/generate-readme/action-to-mermaid.py ./expose-port/action.yml > ./expose-port/README.md

.PHONY: readme-create-customer
readme-create-customer: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./create-customer/action.yml > ./create-customer/README.md
python docs/generate-readme/action-to-mermaid.py ./create-customer/action.yml > ./create-customer/README.md

.PHONY: readme-create-release
readme-create-release: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./create-release/action.yml > ./create-release/README.md
python docs/generate-readme/action-to-mermaid.py ./create-release/action.yml > ./create-release/README.md

.PHONY: readme-helm-install
readme-helm-install: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./helm-install/action.yml > ./helm-install/README.md
python docs/generate-readme/action-to-mermaid.py ./helm-install/action.yml > ./helm-install/README.md

.PHONY: readme-kots-install
readme-kots-install: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./kots-install/action.yml > ./kots-install/README.md
python docs/generate-readme/action-to-mermaid.py ./kots-install/action.yml > ./kots-install/README.md

.PHONY: readme-promote-release
readme-promote-release: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./promote-release/action.yml > ./promote-release/README.md
python docs/generate-readme/action-to-mermaid.py ./promote-release/action.yml > ./promote-release/README.md

.PHONY: readme-remove-cluster
readme-remove-cluster: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./remove-cluster/action.yml > ./remove-cluster/README.md
python docs/generate-readme/action-to-mermaid.py ./remove-cluster/action.yml > ./remove-cluster/README.md

.PHONY: readme-prepare-cluster
readme-prepare-cluster: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./prepare-cluster/action.yml > ./prepare-cluster/README.md
python docs/generate-readme/action-to-mermaid.py ./prepare-cluster/action.yml > ./prepare-cluster/README.md

.PHONY: readme-get-customer-instances
readme-get-customer-instances: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./get-customer-instances/action.yml > ./get-customer-instances/README.md
python docs/generate-readme/action-to-mermaid.py ./get-customer-instances/action.yml > ./get-customer-instances/README.md

.PHONY: readme-report-compatibility-result
readme-report-compatibility-result: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./report-compatibility-result/action.yml > ./report-compatibility-result/README.md
python docs/generate-readme/action-to-mermaid.py ./report-compatibility-result/action.yml > ./report-compatibility-result/README.md

.PHONY: readme-upgrade-cluster
readme-upgrade-cluster: pip-install
python3 docs/generate-readme/action-to-mermaid.py ./upgrade-cluster/action.yml > ./upgrade-cluster/README.md
python docs/generate-readme/action-to-mermaid.py ./upgrade-cluster/action.yml > ./upgrade-cluster/README.md
79 changes: 79 additions & 0 deletions create-cluster/dist/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ The above copyright notice and this permission notice shall be included in all c

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@actions/exec
MIT
The MIT License (MIT)

Copyright 2019 GitHub

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@actions/http-client
MIT
Actions Http Client for Node.js
Expand All @@ -35,6 +47,18 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


@actions/io
MIT
The MIT License (MIT)

Copyright 2019 GitHub

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@babel/runtime
MIT
MIT License
Expand Down Expand Up @@ -183,6 +207,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


randombytes
MIT

randomstring
MIT
Copyright (c) 2012 Elias Klughammer

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


replicated-lib
Apache License
Version 2.0, January 2004
Expand Down Expand Up @@ -387,6 +438,34 @@ replicated-lib
limitations under the License.


tmp
MIT
The MIT License (MIT)

Copyright (c) 2014 KARASZI István

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


tmp-promise
MIT

tunnel
MIT
The MIT License (MIT)
Expand Down
Loading

0 comments on commit e729582

Please sign in to comment.