Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed May 17, 2024
1 parent 418f0d9 commit c7a7533
Show file tree
Hide file tree
Showing 14 changed files with 74 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-archive-channel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
app-slug: replicated-actions-ci # from the Replicated QA team
yaml-dir: ./test/kots-install
yaml-dir: ./test/kots-install/yaml
promote-channel: ci-test-archive-channel-${{ github.sha }}

- name: test archive-channel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
app-slug: replicated-actions-ci # from the Replicated QA team
yaml-dir: ./test/kots-install
yaml-dir: ./test/kots-install/yaml
37 changes: 34 additions & 3 deletions .github/workflows/test-kots-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
app-slug: ${{ env.APP_SLUG }}
yaml-dir: ./test/kots-install
yaml-dir: ./test/kots-install/yaml

- name: create-customer
id: create-customer
Expand All @@ -57,14 +57,45 @@ jobs:
kubernetes-distribution: kind
timeout-minutes: 5

- name: test kots-install
id: kots-install
- name: test kots-install / config string
id: kots-install-config-string
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 }}
namespace: config-string
config-values: |
apiVersion: kots.io/v1beta1
kind: ConfigValues
metadata:
name: nginx
spec:
values:
api_token:
value: r8yWQ/cUeLVprKGKZb2gpE5IcQ0Tep1iaNwn7078
example_default_value:
default: please change this value
value: testing
hidden_text:
value: lPiIJL1RfL4v/YKzHfnx/9HyR2x4t5wnVxSLmzJlmf12HlqlyBoSfnvd0O+mftiT8h0+kumsBqc=
readonly_text_left:
value: 8WIAQHZW_G
show_text_inputs:
default: "0"
value: "1"
- name: test kots-install / config file
id: kots-install-config-file
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 }}
namespace: config-string
config-values: ./test/kots-install/config.yaml

- name: remove cluster
id: remove-cluster
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/test-prepare-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,27 @@ jobs:
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
app-slug: replicated-actions-ci # from the Replicated QA team
yaml-dir: ./test/kots-install
yaml-dir: ./test/kots-install/yaml
kubernetes-distribution: kind
config-values: |
apiVersion: kots.io/v1beta1
kind: ConfigValues
metadata:
name: nginx
spec:
values:
api_token:
value: r8yWQ/cUeLVprKGKZb2gpE5IcQ0Tep1iaNwn7078
example_default_value:
default: please change this value
value: testing
hidden_text:
value: lPiIJL1RfL4v/YKzHfnx/9HyR2x4t5wnVxSLmzJlmf12HlqlyBoSfnvd0O+mftiT8h0+kumsBqc=
readonly_text_left:
value: 8WIAQHZW_G
show_text_inputs:
default: "0"
value: "1"
- name: remove cluster
id: remove-cluster
Expand Down
18 changes: 18 additions & 0 deletions test/kots-install/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: kots.io/v1beta1
kind: ConfigValues
metadata:
name: nginx
spec:
values:
api_token:
value: r8yWQ/cUeLVprKGKZb2gpE5IcQ0Tep1iaNwn7078
example_default_value:
default: please change this value
value: testing
hidden_text:
value: lPiIJL1RfL4v/YKzHfnx/9HyR2x4t5wnVxSLmzJlmf12HlqlyBoSfnvd0O+mftiT8h0+kumsBqc=
readonly_text_left:
value: 8WIAQHZW_G
show_text_inputs:
default: "0"
value: "1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c7a7533

Please sign in to comment.