forked from jonschoning/kubernetes-client-haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and test all K8S versions 1.20-1.30, GHC up to 9.8
- Loading branch information
Showing
1,021 changed files
with
3,188,318 additions
and
221,224 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 |
---|---|---|
|
@@ -18,3 +18,6 @@ cabal.sandbox.config | |
.stack-work/ | ||
cabal.project.local | ||
.HTF/ | ||
swagger.json | ||
swagger.json.unprocessed | ||
git_push.sh |
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
cd "$SCRIPTDIR" | ||
|
||
# This script builds kubernetes-client + kubernetes-client-core for | ||
# all Kubernetes versions. | ||
|
||
nix run .#set-stack-version 1.20 stack.yaml && stack build | ||
nix run .#set-stack-version 1.21 stack.yaml && stack build | ||
nix run .#set-stack-version 1.22 stack.yaml && stack build | ||
nix run .#set-stack-version 1.23 stack.yaml && stack build | ||
nix run .#set-stack-version 1.24 stack.yaml && stack build | ||
nix run .#set-stack-version 1.25 stack.yaml && stack build | ||
nix run .#set-stack-version 1.26 stack.yaml && stack build | ||
nix run .#set-stack-version 1.27 stack.yaml && stack build | ||
nix run .#set-stack-version 1.28 stack.yaml && stack build | ||
nix run .#set-stack-version 1.29 stack.yaml && stack build | ||
nix run .#set-stack-version 1.30 stack.yaml && stack build |
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,4 +1,9 @@ | ||
packages: | ||
kubernetes | ||
kubernetes-1.21 | ||
kubernetes-client | ||
examples | ||
examples | ||
|
||
source-repository-package | ||
type: git | ||
location: https://github.com/codedownio/haskell-oidc-client | ||
tag: b70757b85751525cba41316ea9af132d9a43cfaf |
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,50 @@ | ||
{ | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
inputs.gen = { | ||
url = "github:kubernetes-client/gen"; | ||
flake = false; | ||
}; | ||
inputs.gitignore = { | ||
url = "github:hercules-ci/gitignore.nix"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=release-24.05"; | ||
|
||
outputs = { self, flake-utils, gen, gitignore, nixpkgs }: | ||
flake-utils.lib.eachSystem ["x86_64-linux"] (system: | ||
let | ||
pkgs = import nixpkgs { inherit system; }; | ||
|
||
in { | ||
packages = rec { | ||
generate = pkgs.writeShellScriptBin "generate-kubernetes-client-core.sh" '' | ||
export KUBERNETES_VERSION="$1" | ||
PACKAGE_VERSION="$2" | ||
out="kubernetes-$KUBERNETES_VERSION" | ||
# Generate | ||
${pkgs.bash}/bin/bash "${gen}/openapi/haskell.sh" "$out" settings | ||
# Fill in the package version | ||
${pkgs.gnused}/bin/sed -i "s/^version:\s*\(.*\)/version: $PACKAGE_VERSION/" "$out/kubernetes-client-core.cabal" | ||
# Fix a bound | ||
${pkgs.gnused}/bin/sed -i 's/\(http-api-data >= 0.3.4 &&\) <0.6/\1 <0.7/' "$out/kubernetes-client-core.cabal" | ||
''; | ||
|
||
set-stack-version = pkgs.writeShellScriptBin "build-kubernetes-client.sh" '' | ||
export KUBERNETES_VERSION="$1" | ||
STACK_YAML="$2" | ||
${pkgs.gnused}/bin/sed -i "s/^- kubernetes-\(1\.\)[0-9]\+/- kubernetes-$KUBERNETES_VERSION/" "$STACK_YAML" | ||
''; | ||
|
||
set-cabal-version = pkgs.writeShellScriptBin "build-kubernetes-client.sh" '' | ||
export KUBERNETES_VERSION="$1" | ||
CABAL_PROJECT="$2" | ||
${pkgs.gnused}/bin/sed -i "s/^ kubernetes-\(1\.\)[0-9]\+/ kubernetes-$KUBERNETES_VERSION/" "$CABAL_PROJECT" | ||
''; | ||
}; | ||
}); | ||
} |
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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
cd "$SCRIPTDIR" | ||
|
||
# The first argument is the Kubernetes release to use. | ||
# The second is the package version to place in ./kubernetes-<K8S version>/kubernetes-client-core.cabal. | ||
# The idea is to use the patch number for our own purposes, incrementing when we need to update | ||
# the kubernetes-client-core library. | ||
|
||
nix run .#generate -- 1.20 1.20.0 | ||
nix run .#generate -- 1.21 1.21.0 | ||
nix run .#generate -- 1.22 1.22.0 | ||
nix run .#generate -- 1.23 1.23.0 | ||
nix run .#generate -- 1.24 1.24.0 | ||
nix run .#generate -- 1.25 1.25.0 | ||
nix run .#generate -- 1.26 1.26.0 | ||
nix run .#generate -- 1.27 1.27.0 | ||
nix run .#generate -- 1.28 1.28.0 | ||
nix run .#generate -- 1.29 1.29.0 | ||
nix run .#generate -- 1.30 1.30.0 |
File renamed without changes.
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 |
---|---|---|
|
@@ -21,5 +21,3 @@ | |
#docs/*.md | ||
# Then explicitly reverse the ignore rule for a single file: | ||
#!docs/README.md | ||
|
||
README.md |
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,2 @@ | ||
Requested Commit/Tag : ab7d0cb74f6ef95bdaeafd327bbdb5d54f819175 | ||
Actual Commit : ab7d0cb74f6ef95bdaeafd327bbdb5d54f819175 |
1 change: 1 addition & 0 deletions
1
kubernetes/.openapi-generator/FILES → kubernetes-1.20/.openapi-generator/FILES
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,5 +1,6 @@ | ||
.gitignore | ||
.travis.yml | ||
README.md | ||
Setup.hs | ||
git_push.sh | ||
kubernetes-client-core.cabal | ||
|
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 @@ | ||
7.6.0 |
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 @@ | ||
19f91fe5110cab07889fb5816d54a140ac5072c7e6e791580eaca741a56bd203 |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.