Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2e cover uninstall #4

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
00700fc
Disable kubeadm provider installation by default
alexander-demicev Feb 29, 2024
8e98869
Ensure the last applied condition state is maintained (#422)
Danil-Grigorev Mar 12, 2024
915ecdd
Add post-delete helm hook for RT extension deletion process
furkatgofurov7 Mar 6, 2024
3cceac8
Follow-up changes based on reviews
furkatgofurov7 Mar 12, 2024
fd90dcf
chore(deps): Bump Azure/setup-helm from 3 to 4 (#411)
dependabot[bot] Mar 12, 2024
684bacb
chore(deps): Bump aquasecurity/trivy-action from 0.17.0 to 0.18.0 (#412)
dependabot[bot] Mar 12, 2024
52bd9c9
Add ADR around use of structured proxy types
Danil-Grigorev Sep 8, 2023
00c3528
Bump CAPI to v1.6.2
furkatgofurov7 Feb 29, 2024
d1761e1
Bump CAPI Operator to v0.9.0
furkatgofurov7 Feb 29, 2024
82b4e17
Merge pull request #114 from Danil-Grigorev/use-structured-adr
alexander-demicev Mar 13, 2024
7e54296
:sparkles: Create dependabot.yml to run make generate on each dependa…
Danil-Grigorev Mar 13, 2024
e07a175
Merge pull request #402 from alexander-demicev/disablekubeadm
alexander-demicev Mar 13, 2024
7e6159d
Bump go version in dependabot workflow (#429)
Danil-Grigorev Mar 14, 2024
b03f220
feat: add devcontainer
richardcase Mar 15, 2024
9ce91af
feat: added dependabot for devcontainer
richardcase Mar 15, 2024
27d2f7a
docs: add helm chart repository adr
salasberryfin Mar 11, 2024
1527ae7
Merge pull request #434 from richardcase/devcontainer
richardcase Mar 18, 2024
36fe462
Rename 'rancher-sandbox/rancher-turtles' to 'rancher/turtles'
furkatgofurov7 Mar 14, 2024
b0c5cad
Merge pull request #432 from furkatgofurov7/remove-sandbox
richardcase Mar 20, 2024
2a6486e
Fix repo name in release-workflow.yml GH workflow
furkatgofurov7 Mar 25, 2024
2773255
feat: changing to use EKS for management cluster (#394)
richardcase Mar 26, 2024
c0d2ad4
fix: install aws-iam-authenticator
richardcase Mar 26, 2024
cb6130c
Merge pull request #447 from richardcase/install_iam_authenticator
richardcase Mar 26, 2024
61db65a
Merge pull request #426 from salasberryfin/adr-publish-chart-to-rancher
salasberryfin Mar 26, 2024
283ec4a
Bump operator dependency to 0.9.1
Danil-Grigorev Mar 25, 2024
57c8ba6
chore: edit chart display name
salasberryfin Mar 27, 2024
4569896
Downgrade CAPI to 1.4.6
Danil-Grigorev Mar 28, 2024
4dc2c0b
fix: chart changes for upgrade and uninstall
richardcase Apr 2, 2024
ca52076
Merge pull request #452 from Danil-Grigorev/stick-with-146
richardcase Apr 2, 2024
d5083b1
Merge pull request #458 from richardcase/upgrade_changes
alexander-demicev Apr 2, 2024
8eb64d9
Bump slsa-framework/slsa-github-generator to v1.10.0
furkatgofurov7 Apr 2, 2024
2f35334
Bump sigstore/cosign-installer to latest
furkatgofurov7 Apr 2, 2024
5305558
Merge pull request #459 from furkatgofurov7/bump-slsa-framework
richardcase Apr 3, 2024
6186dda
Revise questions.yaml and add missing options
Danil-Grigorev Mar 28, 2024
d21ec24
Install CAPI Operator in helm chart testing
Danil-Grigorev Mar 28, 2024
c4c40b3
Merge pull request #454 from Danil-Grigorev/update-questions-yaml
richardcase Apr 3, 2024
65a40a4
chore: add tags to eks resources
richardcase Apr 3, 2024
e636aa3
Merge pull request #463 from richardcase/e2e_stack_labels
richardcase Apr 3, 2024
1de9202
Exclude namespace selection from questions.yaml
Danil-Grigorev Apr 4, 2024
bc7de99
Install RKE2 by default
alexander-demicev Mar 19, 2024
324418e
Merge pull request #464 from Danil-Grigorev/exclude-ns-select-questions
richardcase Apr 4, 2024
b2845d6
Merge pull request #437 from alexander-demicev/enablerke2
richardcase Apr 4, 2024
9ff297f
Improve release docs
furkatgofurov7 Apr 5, 2024
bf5297c
chore: update references to documentation site
salasberryfin Apr 5, 2024
27e5df4
chore(deps): Bump dev-drprasad/delete-tag-and-release from 1.0 to 1.1…
dependabot[bot] Apr 8, 2024
4860f2a
Remove s390x architecture from release packages (#468)
furkatgofurov7 Apr 8, 2024
5bc2d27
test: cover uninstall in e2e
salasberryfin Mar 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
"name": "Go",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers-contrib/features/kind:1": {},
"ghcr.io/rio/features/k9s:1": {},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
"version": "latest",
"helm": "latest",
"minikube": "none"
}
},
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.makefile-tools",
"mutantdino.resourcemonitor",
"golang.go"
]
}
}
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
4 changes: 4 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ updates:
labels:
- "kind/cleanup"
- "area/build-and-release"
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Run CI checks

on: [pull_request, workflow_dispatch]
on:
pull_request:
types: [opened, edited, synchronize, reopened, labeled, unlabeled]
workflow_dispatch:

jobs:
ci:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ "main", "release-*" ]
pull_request:
branches: [ "main" ]
types: [opened, edited, synchronize, reopened, labeled, unlabeled]
schedule:
- cron: '45 15 * * *'

Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: dependabot

on:
pull_request:
types: [opened, edited, synchronize, reopened, labeled, unlabeled]
branches:
- dependabot/**
push:
branches:
- dependabot/**
workflow_dispatch:

permissions:
contents: write # Allow to update the PR.

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # tag=v3.5.0
with:
go-version: 1.22.0
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3.3.0
- name: Update generated code
run: make generate
- uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # tag=v9.1.4
name: Commit changes
with:
author_name: dependabot[bot]
author_email: 49699333+dependabot[bot]@users.noreply.github.com
default_author: github_actor
message: 'Update generated code'
68 changes: 33 additions & 35 deletions .github/workflows/e2e-long.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,45 @@ name: Run nightly e2e tests

on:
schedule:
- cron: "0 0 1/2 * *"
- cron: "0 0 1/2 * *"
workflow_dispatch:

concurrency: ci_e2e_tests

jobs:
e2e_import_gitops:
uses: ./.github/workflows/run-e2e-suite.yaml
with:
test_suite: $(pwd)/test/e2e/suites/import-gitops
test_name: Import via GitOps
run_azure_janitor: false
artifact_name: artifacts_import_gitops
secrets: inherit
uses: ./.github/workflows/run-e2e-suite.yaml
with:
test_suite: $(pwd)/test/e2e/suites/import-gitops
test_name: Import via GitOps
run_azure_janitor: false
artifact_name: artifacts_import_gitops
use_eks: true
secrets: inherit
e2e_v2prov:
if: ${{ always() }}
needs: e2e_import_gitops
uses: ./.github/workflows/run-e2e-suite.yaml
with:
test_suite: $(pwd)/test/e2e/suites/v2prov
test_name: v2 provisioning
run_azure_janitor: true
artifact_name: artifacts_v2prov
secrets: inherit
uses: ./.github/workflows/run-e2e-suite.yaml
with:
test_suite: $(pwd)/test/e2e/suites/v2prov
test_name: v2 provisioning
run_azure_janitor: true
artifact_name: artifacts_v2prov
use_eks: true
secrets: inherit
e2e_update_labels:
if: ${{ always() }}
needs: e2e_v2prov
uses: ./.github/workflows/run-e2e-suite.yaml
with:
test_suite: $(pwd)/test/e2e/suites/update-labels
test_name: Update labels
run_azure_janitor: true
artifact_name: artifacts_update_labels
secrets: inherit
uses: ./.github/workflows/run-e2e-suite.yaml
with:
test_suite: $(pwd)/test/e2e/suites/update-labels
test_name: Update labels
run_azure_janitor: true
artifact_name: artifacts_update_labels
use_eks: true
secrets: inherit
e2e_embedded_capi_disabled:
if: ${{ always() }}
needs: e2e_update_labels
uses: ./.github/workflows/run-e2e-suite.yaml
with:
test_suite: $(pwd)/test/e2e/suites/embedded-capi-disabled
test_name: Update labels
run_azure_janitor: false
artifact_name: artifacts_embedded_capi
secrets: inherit
uses: ./.github/workflows/run-e2e-suite.yaml
with:
test_suite: $(pwd)/test/e2e/suites/embedded-capi-disabled
test_name: Update labels
run_azure_janitor: false
artifact_name: artifacts_embedded_capi
use_eks: true
secrets: inherit
33 changes: 17 additions & 16 deletions .github/workflows/e2e-short.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@ name: Run short e2e tests

on:
pull_request:
types: [opened, edited, synchronize, reopened, labeled, unlabeled]

jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setupGo
uses: actions/setup-go@v5
with:
go-version: '=1.22.0'
- name: Run e2e tests
run: ISOLATED_MODE=true GINKGO_LABEL_FILTER=short make test-e2e
- name: Collect run artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: artifacts
path: _artifacts
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setupGo
uses: actions/setup-go@v5
with:
go-version: "=1.22.0"
- name: Run e2e tests
run: ISOLATED_MODE=true USE_EKS=false GINKGO_LABEL_FILTER=short make test-e2e
- name: Collect run artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: artifacts
path: _artifacts
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: golangci-lint

on:
pull_request:
types: [opened, edited, synchronize, reopened]
types: [opened, edited, synchronize, reopened, labeled, unlabeled]

# Remove all permissions from GITHUB_TOKEN except metadata.
permissions: {}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Lint

on:
pull_request:
types: [opened, edited, synchronize, reopened]
types: [opened, edited, synchronize, reopened, labeled, unlabeled]

# Remove all permissions from GITHUB_TOKEN except metadata.
permissions: {}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly-chart-and-image-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
env:
TAG: v0.0.0-${{ github.sha }}
REGISTRY: ghcr.io
PROD_ORG: rancher-sandbox
PROD_ORG: rancher

jobs:
build-and-publish-ghcr:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
with:
ref: ${{ github.ref }}
- name: Install Helm
uses: Azure/setup-helm@v3
uses: Azure/setup-helm@v4
with:
version: 3.8.0
- name: Build Helm chart
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly-test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
strategy:
matrix:
destination: [ghcr]
arch: [amd64, arm64, s390x]
arch: [amd64, arm64]
include:
- destination: ghcr
registry: ghcr.io
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
runs-on: ubuntu-latest
env:
PROD_REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
PROD_ORG: rancher-sandbox
PROD_ORG: rancher
RELEASE_DIR: .cr-release-packages
steps:
- name: Checkout
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dev-drprasad/delete-tag-and-release@v1.0
- uses: dev-drprasad/delete-tag-and-release@v1.1
with:
tag_name: ${{ env.RELEASE_TAG }}
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-md-link-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR check Markdown links

on:
pull_request:
types: [opened, edited, synchronize, reopened]
types: [opened, edited, synchronize, reopened, labeled, unlabeled]
paths:
- '**.md'

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr_size_labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: PR Size Labeler

on: [pull_request]
on:
pull_request:
types: [opened, edited, synchronize, reopened, labeled, unlabeled]

jobs:
labeler:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/pr_type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ name: PR Type

on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
types: [opened, edited, synchronize, reopened, labeled, unlabeled]

jobs:
check_pull_request_type:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ on:
type: string
description: Organization part of the image name
required: false
default: "rancher-sandbox"
default: "rancher"

jobs:
build:
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
with:
image: ${{ format('{0}-{1}', vars[inputs.image], inputs.arch) }}
digest: ${{ needs.build.outputs.digest }}
identity: https://github.com/${{ inputs.org }}/rancher-turtles/.github/workflows/release-workflow.yml@${{ github.ref }}
identity: https://github.com/${{ inputs.org }}/turtles/.github/workflows/release-workflow.yml@${{ github.ref }}
oids-issuer: https://token.actions.githubusercontent.com
registry: ${{ inputs.secret_registry && secrets[inputs.registry] || inputs.registry }}
username: ${{ inputs.secret_registry && secrets[inputs.username] || inputs.username }}
Expand All @@ -99,7 +99,7 @@ jobs:
actions: read
id-token: write
packages: write
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.9.0
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.10.0
with:
digest: ${{ needs.build.outputs.digest }}
image: ${{ format('{0}-{1}', vars[inputs.image], inputs.arch) }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
destination: [ghcr, prod]
arch: [amd64, arm64, s390x]
arch: [amd64, arm64]
include:
- destination: ghcr
registry: ghcr.io
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
TAG: ${{ github.ref_name }}
CONTROLLER_IMG: ${{ vars.REGISTRY_IMAGE }}
PROD_REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
PROD_ORG: rancher-sandbox
PROD_ORG: rancher
RELEASE_DIR: .cr-release-packages
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
org:
description: "Organization part of the image path"
required: false
default: "rancher-sandbox"
default: "rancher"
type: string
registry:
description: "The registry to login"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_sign/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
registry: ${{ inputs.registry }}
username: ${{ inputs.username }}
password: ${{ inputs.password }}
- uses: sigstore/cosign-installer@v3.1.2
- uses: sigstore/cosign-installer@v3.4.0
- name: Sign manifests
shell: bash
env:
Expand Down
Loading
Loading