-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use locking for status update (#318)
* chore: add flakes * chore: add locking * fix: add locks for api ops * chore: switch cluster status to fields * chore: use fields instead * chore: added some stati ctypes * ci: add Jenkinsfile * ci: fix jenkinsfile * ci: remove old workflow * ci: run as ubuntu * ci: fix lints * chore: fix isort * chore: fix cluster_lock_wrapper * create namespace early * fix: use correct function * don't run update_nodegroup_status with a lock * include CA only if needed * stop the PR body stuff * add cluster_template_id save * misc fixes
- Loading branch information
Showing
16 changed files
with
2,091 additions
and
1,487 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
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,6 +1,7 @@ | ||
.direnv | ||
__pycache__ | ||
dist | ||
magnum_cluster_api/charts/* | ||
!magnum_cluster_api/charts/.gitkeep | ||
!magnum_cluster_api/charts/k8s-keystone-auth | ||
site | ||
site |
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,58 @@ | ||
pipeline { | ||
agent none | ||
|
||
options { | ||
disableConcurrentBuilds(abortPrevious: true); | ||
} | ||
|
||
stages { | ||
stage('functional') { | ||
matrix { | ||
axes { | ||
axis { | ||
name 'OS_DISTRO' | ||
values 'flatcar', 'ubuntu-2204' | ||
} | ||
|
||
axis { | ||
name 'KUBE_TAG' | ||
values 'v1.26.11', 'v1.27.8' | ||
} | ||
} | ||
|
||
agent { | ||
label 'jammy-16c-64g' | ||
} | ||
|
||
stages { | ||
stage('sonobuoy') { | ||
steps { | ||
sh './hack/stack.sh' | ||
|
||
// TODO: Wait for built artifacts | ||
// TODO: Download built image | ||
|
||
script { | ||
env.KUBE_TAG = "${KUBE_TAG}" | ||
env.NODE_COUNT = 2 | ||
env.OS_DISTRO = "${OS_DISTRO}" | ||
|
||
// if (pullRequest.body.contains('/build-new-image')) { | ||
// env.BUILD_NEW_IMAGE = 'true' | ||
// } | ||
|
||
sh './hack/run-functional-tests.sh' | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
always { | ||
archiveArtifacts artifacts: 'sonobuoy-results.tar.gz', allowEmptyArchive: true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,26 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
flake-utils.lib.eachDefaultSystem | ||
(system: | ||
let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
}; | ||
in | ||
{ | ||
devShell = pkgs.mkShell | ||
{ | ||
# LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; | ||
|
||
buildInputs = with pkgs; [ | ||
poetry | ||
]; | ||
}; | ||
} | ||
); | ||
} |
Oops, something went wrong.