Skip to content

Commit c1500d6

Browse files
committed
Initial commit
0 parents  commit c1500d6

File tree

207 files changed

+34602
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+34602
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "Kubebuilder DevContainer",
3+
"image": "golang:1.22",
4+
"features": {
5+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
6+
"ghcr.io/devcontainers/features/git:1": {}
7+
},
8+
9+
"runArgs": ["--network=host"],
10+
11+
"customizations": {
12+
"vscode": {
13+
"settings": {
14+
"terminal.integrated.shell.linux": "/bin/bash"
15+
},
16+
"extensions": [
17+
"ms-kubernetes-tools.vscode-kubernetes-tools",
18+
"ms-azuretools.vscode-docker"
19+
]
20+
}
21+
},
22+
23+
"onCreateCommand": "bash .devcontainer/post-install.sh"
24+
}
25+

.devcontainer/post-install.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
set -x
3+
4+
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
5+
chmod +x ./kind
6+
mv ./kind /usr/local/bin/kind
7+
8+
curl -L -o kubebuilder https://go.kubebuilder.io/dl/latest/linux/amd64
9+
chmod +x kubebuilder
10+
mv kubebuilder /usr/local/bin/
11+
12+
KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
13+
curl -LO "https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl"
14+
chmod +x kubectl
15+
mv kubectl /usr/local/bin/kubectl
16+
17+
docker network create -d=bridge --subnet=172.19.0.0/24 kind
18+
19+
kind version
20+
kubebuilder version
21+
docker --version
22+
go version
23+
kubectl version --client

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
2+
# Ignore build and test binaries.
3+
bin/

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
* @eoghanlawless @jokuniew @hyunsun @gcgirish @jdanieck

.github/CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
##### SPDX-FileCopyrightText: (C) 2025 Intel Corporation
2+
##### SPDX-License-Identifier: Apache-2.0
3+
------------------------------------------------------------------
4+
5+
## <a name="commit"></a> Commit Message Guidelines
6+
7+
We have precise rules over how our git commit messages should be formatted. This leads to more readable messages that are easy to follow when looking through the project history.
8+
9+
### Commit Message Format
10+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes a **JIRA ticket** and a **subject**:
11+
12+
```
13+
[SL6-****] <subject>
14+
<BLANK LINE>
15+
<body>
16+
<BLANK LINE>
17+
<footer>
18+
```
19+
20+
Any line of the commit message should not be longer than 50 characters max on the subject line and 72 characters max on the body! This allows the message to be easier to read on GitHub as well as in various git tools.
21+
22+
Example:
23+
```
24+
[SL6-1000]: Introduce new ROS parameter for client node
25+
26+
In order to give a user option to set value X, a new ROS
27+
parameter has been introduced as Xvalue.
28+
Corresponding tests and docs updated
29+
30+
```
31+
32+
### Pull Requests practices
33+
34+
* PR author is responsible to merge its own PR after review has been done and CI has passed.
35+
* When merging, make sure git linear history is preserved. PR author should select a merge option (`Rebase and merge` or `Squash and merge`) based on which option will fit the best to the git linear history.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!---
2+
todo
3+
-->

.github/dependabot.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
---
5+
version: 2
6+
registries:
7+
github:
8+
type: git
9+
url: https://github.com
10+
username: x-access-token
11+
password: ${{ secrets.SYS_OIE_DEVOPS_GITHUBAPI_TOKEN }}
12+
updates:
13+
- package-ecosystem: "gomod"
14+
directory: "/"
15+
registries:
16+
- github
17+
schedule:
18+
interval: daily
19+
open-pull-requests-limit: 2
20+
commit-message:
21+
prefix: "[gomod] "

.github/workflows/auto-close.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
---
5+
6+
name: Stale Pull Requests
7+
8+
# After 30 days of no activity on a PR, the PR should be marked as stale,
9+
# a comment made on the PR informing the author of the new status,
10+
# and closed after 15 days if there is no further activity from the change to stale state.
11+
on:
12+
schedule:
13+
- cron: '30 1 * * *' # run every day
14+
workflow_dispatch: {}
15+
16+
jobs:
17+
stale-auto-close:
18+
runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}
19+
steps:
20+
- uses: actions/[email protected]
21+
with:
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Make a comment or update the PR to avoid closing PR after 15 days.'
24+
days-before-pr-stale: 30
25+
days-before-pr-close: 15
26+
remove-pr-stale-when-updated: 'true'
27+
close-pr-message: 'This pull request was automatically closed due to inactivity'

.github/workflows/auto-update.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
---
5+
6+
name: Auto Update PR
7+
8+
# On push to the main branch and support branches, update any branches that are out of date
9+
# and have auto-merge enabled. If the branch is currently out of date with the base branch,
10+
# it must be first manually updated and then will be kept up to date on future runs.
11+
on:
12+
push:
13+
branches:
14+
- main
15+
- release-*
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
Auto-Update-PR:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: tibdex/[email protected]
26+
with:
27+
github_token: ${{ secrets.SYS_ORCH_GITHUB }}
28+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
---
5+
6+
name: CO Integration test CI Pipeline
7+
8+
on:
9+
pull_request:
10+
branches:
11+
- main
12+
- release-*
13+
workflow_dispatch:
14+
15+
jobs:
16+
integration-smoke-test:
17+
runs-on: ubuntu-24.04-16core-64GB
18+
env:
19+
VERSION: ${{ github.head_ref }} # Use the component branch that triggered the action for the test
20+
steps:
21+
- name: Checkout orch ci
22+
uses: actions/checkout@v4
23+
with:
24+
repository: open-edge-platform/orch-ci
25+
path: ci
26+
ref: "main"
27+
token: ${{ secrets.SYS_ORCH_GITHUB }}
28+
29+
- name: Checkout cluster-tests for integration tests
30+
uses: actions/checkout@v4
31+
with:
32+
repository: open-edge-platform/cluster-tests
33+
path: cluster-tests
34+
ref: "main"
35+
token: ${{ secrets.SYS_ORCH_GITHUB }}
36+
37+
- name: Bootstrap CI environment
38+
uses: ./ci/.github/actions/bootstrap
39+
with:
40+
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
41+
42+
- name: Run make test with additional config
43+
run: |
44+
cd cluster-tests
45+
ADDITIONAL_CONFIG="{\"components\":[{\"name\":\"cluster-manager\", \"skip-local-build\": false, \"git-repo\": {\"version\":\"${{ env.VERSION }}\"}}]}" make test

0 commit comments

Comments
 (0)