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

v0.3.1 #300

Merged
merged 87 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
b63bbc2
UID mapping with remote jobs on pod annotations
dciangot Jun 22, 2024
c731ad0
move main.go to cmd interlin + adapt builds
dciangot Jun 25, 2024
db8fdfb
Merge pull request #239 from dciangot/store_state
dciangot Jun 25, 2024
e3b4b37
Update build_images.yaml
dciangot Jun 25, 2024
614057f
Merge pull request #240 from interTwin-eu/dciangot-patch-1
dciangot Jun 25, 2024
68f9185
fix interlink installer with correct clusterbinding
dciangot Jun 26, 2024
0ebd72a
fix https check in url interlink
dciangot Jun 26, 2024
fe305f3
Merge pull request #241 from dciangot/store_state
dciangot Jun 26, 2024
165a4e5
fix status loop regression
dciangot Jun 26, 2024
56fb5bd
fix status loop regression
dciangot Jun 26, 2024
b94b781
Store state (#243)
dciangot Jun 26, 2024
a4bea64
tested strong state machine for all components
dciangot Jun 28, 2024
067d6d2
Merge pull request #244 from dciangot/store_state
dciangot Jun 28, 2024
fcc7eec
updated OpenAPI spec and python script
Surax98 Jul 1, 2024
9be36b2
forgot minor
Surax98 Jul 1, 2024
0312dae
Merge pull request #245 from interTwin-eu/OpenAPI_Update
dciangot Jul 1, 2024
f0741d8
Allow installation script to accept oauth2 client_credentials grant t…
dciangot Jul 1, 2024
8060d36
Fix installation script and client credentials support in refresh tok…
dciangot Jul 2, 2024
89ee023
Update deployment.yaml
dciangot Jul 2, 2024
1d37a83
Update 01-deploy-interlink.mdx
dciangot Jul 2, 2024
956cab7
Update Dockerfile.vk
dciangot Jul 2, 2024
cfea36c
Update set-version.sh
dciangot Jul 2, 2024
21f4fcf
Update set-version.sh
dciangot Jul 2, 2024
e2572d0
Merge pull request #248 from interTwin-eu/dciangot-patch-2
dciangot Jul 2, 2024
75f7097
Update set-version.sh
dciangot Jul 2, 2024
ef4c5b9
Merge pull request #249 from interTwin-eu/dciangot-patch-3
dciangot Jul 2, 2024
fbc0882
Update 02-develop-a-plugin.md
dciangot Jul 3, 2024
513456c
Update 01-deploy-interlink.mdx
dciangot Jul 3, 2024
1e4cc24
Avoid remote status requests with 0 pods
dciangot Jul 3, 2024
a6f608b
Update 02-develop-a-plugin.md
dciangot Jul 3, 2024
f0754cb
Patches after 0.3.0 rc reviews (#254)
dciangot Jul 10, 2024
ef29eea
Fix CI virtual-kubelet-config.yaml
dciangot Jul 10, 2024
e68deee
fix CI plugin config and plugin ping exit code
dciangot Jul 10, 2024
42fa578
Merge pull request #255 from dciangot/patch_3_0
dciangot Jul 11, 2024
3c3462a
Fix #259 to reuse refresh token everytime
Jul 17, 2024
9f6ea26
Improved log for debug
Jul 17, 2024
b39e476
Merge pull request #262 from antoinetran/hotfix/issue259-refreshtoken
dciangot Jul 17, 2024
331b713
Patch for 0.3.0 (#264)
dciangot Jul 18, 2024
26dfb7d
fix all service account role with namespaces and leases
dciangot Jul 18, 2024
a7175b9
Merge pull request #265 from dciangot/namespace_role
dciangot Jul 18, 2024
438ee8d
InterLinkAddress field for interlink config file generation
dciangot Jul 19, 2024
8b74353
Merge pull request #267 from dciangot/namespace_role
dciangot Jul 19, 2024
9738668
refactoring python script and getting openAPI spec complaint to curre…
Surax98 Jul 22, 2024
8112afb
Update intro.mdx
dciangot Jul 31, 2024
df6bc0d
now informers start
Surax98 Aug 2, 2024
627c41c
first otel implementation on VK only
Surax98 Jul 23, 2024
d3815e4
added gh action to generate the openapi json file
Surax98 Jul 22, 2024
e3eb044
Merge pull request #274 from Surax98/pending_fix
dciangot Aug 6, 2024
eb192e6
Merge pull request #272 from Surax98/otel
dciangot Aug 6, 2024
3b7ef71
new ci with k3s dagger module dep
Aug 6, 2024
58ff8b1
building website by action
Surax98 Aug 2, 2024
d4f8c98
monitoring documentation added to docusaurus
Surax98 Aug 6, 2024
7499848
Merge pull request #269 from Surax98/fix_python
dciangot Aug 6, 2024
7e7ba58
Merge pull request #275 from Surax98/Docusaurs_action
dciangot Aug 6, 2024
da4f173
fix plugin installation
Aug 6, 2024
e5d52ae
rework doc structure
Aug 6, 2024
042d119
adapt github action
Aug 6, 2024
1c08726
Delete .github/workflows/pages.yaml
dciangot Aug 6, 2024
aa7f82f
Merge pull request #278 from Surax98/openapi_doc
dciangot Aug 6, 2024
c552b2f
fix ci manifest for plugin and gh actions
dciangot Aug 6, 2024
760e5b5
Merge pull request #279 from dciangot/new_ci
dciangot Aug 7, 2024
121e45c
Update build_openapi.yaml
dciangot Aug 7, 2024
fab2929
Update build_openapi.yaml
dciangot Aug 7, 2024
2851261
Update intro.mdx
dciangot Aug 7, 2024
261d52e
Update _category_.json
dciangot Aug 7, 2024
147b59e
Merge pull request #280 from interTwin-eu/dciangot-patch-4
dciangot Aug 7, 2024
b64a1d4
specified envs to enable monitoring and set the endpoint
Surax98 Aug 8, 2024
bc6b90a
Merge branch 'openapi_doc' of https://github.com/Surax98/interLink in…
Surax98 Aug 8, 2024
30c9494
Update 06-monitoring.md
Surax98 Aug 8, 2024
039bae7
Update 06-monitoring.md
Surax98 Aug 8, 2024
0aee0b8
splitting actions
Surax98 Aug 8, 2024
74cf939
Merge pull request #284 from Surax98/OpenAPI_action
dciangot Aug 8, 2024
52347d3
Merge pull request #283 from Surax98/openapi_doc
dciangot Aug 8, 2024
a2521d5
Update Developers.md
dciangot Aug 8, 2024
ac9a4b4
implemented otel tracing for interlink API && minors
Surax98 Aug 26, 2024
be83bfb
Merge branch 'interTwin-eu:main' into otel_interlink
Surax98 Aug 27, 2024
24c4597
Merge pull request #285 from Surax98/otel_interlink
dciangot Aug 29, 2024
c146e07
Upgrade dagger and introduce socket communication (#290)
dciangot Sep 16, 2024
b9526ab
monitoring setup configure mtls and assign unique identifiers to otlp…
Bianco95 Sep 16, 2024
2e0bea3
keep sdk in repo for now
dciangot Sep 19, 2024
4b2c810
Merge pull request #291 from interTwin-eu/keep-sdk
dciangot Sep 19, 2024
c500f81
Delete node_modules directory
dciangot Sep 19, 2024
96c7fb1
Installation with Helm and doc rework (#293)
dciangot Sep 28, 2024
40eae5b
Fix: rename Ping-API to StatusAPI (#294)
Bianco95 Sep 30, 2024
1ac1685
Add badges to doc and site (#295)
dciangot Sep 30, 2024
0458270
Update index.tsx
dciangot Sep 30, 2024
eaf1c0b
Merge pull request #296 from interTwin-eu/dciangot-patch-5
dciangot Sep 30, 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
Binary file modified .DS_Store
Binary file not shown.
50 changes: 50 additions & 0 deletions .github/workflows/build_docusaurus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Update Docusaurus

on:
push:
branches:
- main
tags-ignore:
- "*"
workflow_call:

jobs:
update-doc:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Remove existing openapi.json
run: rm ./docs/openapi/openapi.json

- name: Download openapi.json
uses: robinraju/release-downloader@v1
with:
latest: true
preRelease: false
fileName: 'openAPISpec'
out-file-path: 'docs/openapi'

- name: Rename openAPISpec to openapi.json
run: mv ./docs/openapi/openAPISpec ./docs/openapi/openapi.json

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22' # Ensure this matches the Node.js version required by Docusaurus

- name: Install dependencies
working-directory: ./docs # Change to the directory where package.json is located
run: npm install

- name: Build Docusaurus site
working-directory: ./docs # Change to the directory where package.json is located
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build # Ensure this matches the build output directory of Docusaurus#
6 changes: 3 additions & 3 deletions .github/workflows/build_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/interlink/virtual-kubelet-inttw:latest
file: ./docker/Dockerfile.vk
platforms: linux/amd64, linux/arm64
build-args:
- VERSION=${{ env.RELEASE_VERSION }}
build-args: |
VERSION=${{ env.RELEASE_VERSION }}
- name: Build container base image interlink
uses: docker/build-push-action@v5
with:
Expand All @@ -52,7 +52,7 @@ jobs:
file: ./docker/Dockerfile.interlink
platforms: linux/amd64, linux/arm64

virtual-kubelet-refrest-token:
virtual-kubelet-refresh-token:
runs-on: ubuntu-latest
#env:
# DOCKER_TARGET_PLATFORM: linux/arm64
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/build_openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update OpenAPI

on:
push:
tags:
- '*'

jobs:
update-openapi:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x' # specify the Python version you need

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r example/requirements.txt # if you have a requirements file
- name: Run script to generate OpenAPI JSON
run: python example/create_openapi.py

- name: Upload json to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./docs/openapi/openapi.json
asset_name: openAPISpec
tag: ${{ github.ref }}
overwrite: true
body: "OpenAPI spec for plugin REST"

Trigger-Docusaurus-Update:
uses: ./.github/workflows/build_docusaurus.yaml
13 changes: 3 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
#password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GH_CR_TOKEN }}
- name: Get Repo Owner
id: get_repo_owner
run: echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')
- name: Integration Test
uses: dagger/dagger-for-github@v5
uses: dagger/dagger-for-github@v6
with:
workdir: ci
verb: call
args: -s build-images --source-folder ../ --virtual-kubelet-ref ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/interlink/virtual-kubelet-inttw:$GITHUB_SHA --interlink-ref ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/interlink/interlink:$GITHUB_SHA new-interlink --manifests $PWD/manifests load-plugin test stdout
args: -s --name slurm-test build-images new-interlink test stdout
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
#dagger-flags: -d
version: "0.13.0"
43 changes: 0 additions & 43 deletions .github/workflows/pages.yaml

This file was deleted.

21 changes: 18 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ builds:
- arm64
- amd64
main: ./cmd/virtual-kubelet
- id: "interlink"
- id: "interlink-api"
binary: interlink
hooks:
pre: bash -c "KUBELET_VERSION={{.Version}} ./cmd/virtual-kubelet/set-version.sh"
env:
- CGO_ENABLED=0
goos:
Expand All @@ -29,8 +31,9 @@ builds:
- arm64
- amd64
- ppc64le
- id: "interlink-install"
binary: interlink-install
main: ./cmd/interlink
- id: "installer"
binary: interlink-installer
env:
- CGO_ENABLED=0
goos:
Expand All @@ -41,6 +44,18 @@ builds:
- amd64
- ppc64le
main: ./cmd/installer
- id: "ssh-tunnel"
binary: ssh-tunnel
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- arm64
- amd64
- ppc64le
main: ./cmd/ssh-tunnel
archives:
- name_template: >-
{{ .Binary }}_
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ you submit the pull request). We have a 3 steps process for contributions.
understanding and appreciating your pull request, please use the template to
explain _why_ you are making this contribution, rather than just _what_ the
contribution entails.
2. **Run E2E tests with success**. You can follow the steps described [here](https://intertwin-eu.github.io/interLink/docs/Developers)

### Code Review Process

Expand All @@ -44,7 +45,7 @@ follows:

1. A maintainer will review your code and merge it if no changes are necessary.
Your change will be merged into the repository's `main` branch.
1. If a maintainer has feedback or questions on your changes then they will set
2. If a maintainer has feedback or questions on your changes then they will set
`request changes` in the review and provide an explanation.

## Using git
Expand Down
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
all: interlink vk installer
all: interlink vk installer ssh-tunnel

interlink:
CGO_ENABLED=0 OOS=linux go build -o bin/interlink
CGO_ENABLED=0 OOS=linux go build -o bin/interlink cmd/interlink/main.go

vk:
CGO_ENABLED=0 OOS=linux go build -o bin/vk cmd/virtual-kubelet/main.go

installer:
CGO_ENABLED=0 OOS=linux go build -o bin/installer cmd/installer/main.go

ssh-tunnel:
CGO_ENABLED=0 OOS=linux go build -o bin/ssh-tunnel cmd/ssh-tunnel/main.go

clean:
rm -rf ./bin

dagger_registry_delete:
docker rm -fv registry || true

test:
dagger_registry_delete
docker run -d --rm --name registry -p 5432:5000 registry
cd ci
dagger go run go main.go k8s.go
cd -
dagger call -m ./ci \
--name my-tests \
build-images \
new-interlink \
test stdout

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
![GitHub License](https://img.shields.io/github/license/intertwin-eu/interlink)
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/intertwin-eu/interlink/total)
![GitHub Repo stars](https://img.shields.io/github/stars/intertwin-eu/interlink)

![GitHub Release](https://img.shields.io/github/v/release/intertwin-eu/interlink)
![Tested with Dagger](https://img.shields.io/badge/tested_with_dagger-v0.13.3-green)

![Home Page](https://img.shields.io/badge/home_page-orange?link=https%3A%2F%2Fintertwin-eu.github.io%2Ft%2FinterLink%2F)
![Slack server](https://img.shields.io/badge/slack_server-8A2BE2?link=https%3A%2F%2Fjoin.slack.com%2Ft%2Fintertwin%2Fshared_invite%2Fzt-2cs67h9wz-2DFQ6EiSQGS1vlbbbJHctA)

![Interlink logo](./docs/static/img/interlink_logo.png)

## :information_source: Overview
Expand Down
8 changes: 7 additions & 1 deletion ci/dagger.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "interlink",
"sdk": "go",
"dependencies": [
{
"name": "k3s",
"source": "github.com/marcosnils/daggerverse/k3s@ce8fe35d309bdb29f9983f7d90ea518e724534fe"
}
],
"source": ".",
"engineVersion": "v0.11.4"
"engineVersion": "v0.13.0"
}
52 changes: 32 additions & 20 deletions ci/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,46 @@ module dagger/interlink
go 1.22.2

require (
github.com/99designs/gqlgen v0.17.44
github.com/99designs/gqlgen v0.17.49
github.com/Khan/genqlient v0.7.0
github.com/vektah/gqlparser/v2 v2.5.11
go.opentelemetry.io/otel v1.24.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.24.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0
go.opentelemetry.io/otel/sdk v1.24.0
go.opentelemetry.io/otel/trace v1.24.0
github.com/vektah/gqlparser/v2 v2.5.16
go.opentelemetry.io/otel v1.27.0
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.0.0-20240518090000-14441aefdf88
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.3.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.27.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0
go.opentelemetry.io/otel/log v0.3.0
go.opentelemetry.io/otel/sdk v1.27.0
go.opentelemetry.io/otel/sdk/log v0.3.0
go.opentelemetry.io/otel/trace v1.27.0
go.opentelemetry.io/proto/otlp v1.3.1
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
golang.org/x/sync v0.7.0
google.golang.org/grpc v1.63.2
google.golang.org/grpc v1.64.0
)

require (
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
github.com/sosodev/duration v1.2.0 // indirect
github.com/stretchr/testify v1.9.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.24.0 // indirect
go.opentelemetry.io/otel/metric v1.24.0 // indirect
go.opentelemetry.io/proto/otlp v1.1.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240325203815-454cdb8f5daa // indirect
google.golang.org/protobuf v1.33.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/sosodev/duration v1.3.1 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.27.0 // indirect
go.opentelemetry.io/otel/metric v1.27.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291 // indirect
google.golang.org/protobuf v1.34.1 // indirect
)

replace go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc => go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.0.0-20240518090000-14441aefdf88

replace go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp => go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.3.0

replace go.opentelemetry.io/otel/log => go.opentelemetry.io/otel/log v0.3.0

replace go.opentelemetry.io/otel/sdk/log => go.opentelemetry.io/otel/sdk/log v0.3.0
Loading
Loading