-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into structured-auth
- Loading branch information
Showing
699 changed files
with
45,391 additions
and
10,483 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
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 @@ | ||
docs/_sidebar.md linguist-generated=true |
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 |
---|---|---|
@@ -1,40 +1,32 @@ | ||
--- | ||
.build: | ||
.build-container: | ||
cache: | ||
key: $CI_COMMIT_REF_SLUG | ||
paths: | ||
- image-cache | ||
tags: | ||
- ffci | ||
stage: build | ||
image: | ||
name: moby/buildkit:rootless | ||
entrypoint: [""] | ||
name: gcr.io/kaniko-project/executor:debug | ||
entrypoint: [''] | ||
variables: | ||
BUILDKITD_FLAGS: --oci-worker-no-process-sandbox | ||
TAG: $CI_COMMIT_SHORT_SHA | ||
PROJECT_DIR: $CI_PROJECT_DIR | ||
DOCKERFILE: Dockerfile | ||
GODEBUG: "http2client=0" | ||
before_script: | ||
- mkdir ~/.docker | ||
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > ~/.docker/config.json | ||
|
||
pipeline image: | ||
extends: .build | ||
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json | ||
script: | ||
- | | ||
buildctl-daemonless.sh build \ | ||
--frontend=dockerfile.v0 \ | ||
--local context=. \ | ||
--local dockerfile=. \ | ||
--opt filename=./pipeline.Dockerfile \ | ||
--output type=image,name=$PIPELINE_IMAGE,push=true \ | ||
--import-cache type=registry,ref=$CI_REGISTRY_IMAGE/pipeline:cache | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH' | ||
- /kaniko/executor --cache=true | ||
--cache-dir=image-cache | ||
--context $PROJECT_DIR | ||
--dockerfile $PROJECT_DIR/$DOCKERFILE | ||
--label 'git-branch'=$CI_COMMIT_REF_SLUG | ||
--label 'git-tag=$CI_COMMIT_TAG' | ||
--destination $PIPELINE_IMAGE | ||
|
||
pipeline image and build cache: | ||
extends: .build | ||
script: | ||
- | | ||
buildctl-daemonless.sh build \ | ||
--frontend=dockerfile.v0 \ | ||
--local context=. \ | ||
--local dockerfile=. \ | ||
--opt filename=./pipeline.Dockerfile \ | ||
--output type=image,name=$PIPELINE_IMAGE,push=true \ | ||
--import-cache type=registry,ref=$CI_REGISTRY_IMAGE/pipeline:cache \ | ||
--export-cache type=registry,ref=$CI_REGISTRY_IMAGE/pipeline:cache,mode=max | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH' | ||
pipeline-image: | ||
extends: .build-container | ||
variables: | ||
DOCKERFILE: pipeline.Dockerfile |
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 |
---|---|---|
@@ -1,118 +1,35 @@ | ||
--- | ||
yamllint: | ||
extends: .job | ||
stage: unit-tests | ||
tags: [light] | ||
pre-commit: | ||
stage: test | ||
tags: | ||
- ffci | ||
image: 'ghcr.io/pre-commit-ci/runner-image@sha256:aaf2c7b38b22286f2d381c11673bec571c28f61dd086d11b43a1c9444a813cef' | ||
variables: | ||
LANG: C.UTF-8 | ||
PRE_COMMIT_HOME: /pre-commit-cache | ||
script: | ||
- yamllint --strict . | ||
except: ['triggers', 'master'] | ||
- pre-commit run --all-files | ||
cache: | ||
key: pre-commit-all | ||
paths: | ||
- /pre-commit-cache | ||
needs: [] | ||
|
||
vagrant-validate: | ||
extends: .job | ||
stage: unit-tests | ||
tags: [light] | ||
stage: test | ||
tags: [ffci] | ||
variables: | ||
VAGRANT_VERSION: 2.3.7 | ||
script: | ||
- ./tests/scripts/vagrant-validate.sh | ||
except: ['triggers', 'master'] | ||
|
||
ansible-lint: | ||
extends: .job | ||
stage: unit-tests | ||
tags: [light] | ||
script: | ||
- ansible-lint -v | ||
except: ['triggers', 'master'] | ||
|
||
jinja-syntax-check: | ||
extends: .job | ||
stage: unit-tests | ||
tags: [light] | ||
script: | ||
- "find -name '*.j2' -exec tests/scripts/check-templates.py {} +" | ||
except: ['triggers', 'master'] | ||
|
||
syntax-check: | ||
extends: .job | ||
stage: unit-tests | ||
tags: [light] | ||
variables: | ||
ANSIBLE_INVENTORY: inventory/local-tests.cfg | ||
ANSIBLE_REMOTE_USER: root | ||
ANSIBLE_BECOME: "true" | ||
ANSIBLE_BECOME_USER: root | ||
ANSIBLE_VERBOSITY: "3" | ||
script: | ||
- ansible-playbook --syntax-check cluster.yml | ||
- ansible-playbook --syntax-check playbooks/cluster.yml | ||
- ansible-playbook --syntax-check upgrade-cluster.yml | ||
- ansible-playbook --syntax-check playbooks/upgrade_cluster.yml | ||
- ansible-playbook --syntax-check reset.yml | ||
- ansible-playbook --syntax-check playbooks/reset.yml | ||
- ansible-playbook --syntax-check extra_playbooks/upgrade-only-k8s.yml | ||
except: ['triggers', 'master'] | ||
|
||
collection-build-install-sanity-check: | ||
extends: .job | ||
stage: unit-tests | ||
tags: [light] | ||
variables: | ||
ANSIBLE_COLLECTIONS_PATH: "./ansible_collections" | ||
script: | ||
- ansible-galaxy collection build | ||
- ansible-galaxy collection install kubernetes_sigs-kubespray-$(grep "^version:" galaxy.yml | awk '{print $2}').tar.gz | ||
- ansible-galaxy collection list $(egrep -i '(name:\s+|namespace:\s+)' galaxy.yml | awk '{print $2}' | tr '\n' '.' | sed 's|\.$||g') | grep "^kubernetes_sigs.kubespray" | ||
- test -f ansible_collections/kubernetes_sigs/kubespray/playbooks/cluster.yml | ||
- test -f ansible_collections/kubernetes_sigs/kubespray/playbooks/reset.yml | ||
- ./tests/scripts/vagrant-validate.sh | ||
except: ['triggers', 'master'] | ||
|
||
tox-inventory-builder: | ||
stage: unit-tests | ||
tags: [light] | ||
extends: .job | ||
before_script: | ||
- ./tests/scripts/rebase.sh | ||
script: | ||
- pip3 install tox | ||
- cd contrib/inventory_builder && tox | ||
except: ['triggers', 'master'] | ||
|
||
markdownlint: | ||
stage: unit-tests | ||
tags: [light] | ||
image: node | ||
before_script: | ||
- npm install -g [email protected] | ||
script: | ||
- markdownlint $(find . -name '*.md' | grep -vF './.git') --ignore docs/_sidebar.md --ignore contrib/dind/README.md | ||
|
||
check-readme-versions: | ||
stage: unit-tests | ||
tags: [light] | ||
image: python:3 | ||
script: | ||
- tests/scripts/check_readme_versions.sh | ||
|
||
# TODO: convert to pre-commit hook | ||
check-galaxy-version: | ||
stage: unit-tests | ||
tags: [light] | ||
image: python:3 | ||
script: | ||
- tests/scripts/check_galaxy_version.sh | ||
|
||
check-typo: | ||
stage: unit-tests | ||
tags: [light] | ||
image: python:3 | ||
script: | ||
- tests/scripts/check_typo.sh | ||
|
||
ci-matrix: | ||
stage: unit-tests | ||
tags: [light] | ||
needs: [] | ||
stage: test | ||
tags: [ffci] | ||
image: python:3 | ||
script: | ||
- tests/scripts/md-table/test.sh | ||
- tests/scripts/check_galaxy_version.sh |
Oops, something went wrong.