Skip to content

Commit 350d6fd

Browse files
committed
Initial commit
0 parents  commit 350d6fd

File tree

129 files changed

+12081
-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.

129 files changed

+12081
-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.23",
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+
* @andybavier @hyunsun @gcgirish @madalazar @MikolajKasprzak

.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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!---
2+
SPDX-FileCopyrightText: (C) 2025 Intel Corporation
3+
SPDX-License-Identifier: Apache-2.0
4+
5+
------------------------------------------------------
6+
7+
Author Mandatory (to be filled by PR Author/Submitter)
8+
------------------------------------------------------
9+
10+
- Developer who submits the Pull Request for merge is required to mark the checklist below as applicable for the PR changes submitted.
11+
- Those checklist items which are not marked are considered as not applicable for the PR change.
12+
-->
13+
14+
### PULL DESCRIPTION
15+
16+
_Provide a 1-2 line brief overview of the changes submitted through the Pull Request..._
17+
18+
19+
### Impact Analysis
20+
21+
| Info | Please fill out this column |
22+
| ----------- | ---------------------------------------------------------------------------------- |
23+
| Root Cause | Specifically for bugs, empty in case of no variants |
24+
| Jira ticket | Add the name to the Jira. |
25+
26+
27+
### CODE MAINTAINABILITY
28+
29+
- [ ] Added required new tests relevant to the changes and the URL has been included
30+
- [ ] Updated Documentation as relevant to the changes
31+
- [ ] PR change contains code related to security
32+
- [ ] PR introduces changes that break compatibility with other modules/services (If YES, please provide description)
33+
34+
35+
# _Code must act as a teacher for future developers_

.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: 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: 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 }}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
if: true
19+
env:
20+
VERSION: ${{ github.head_ref }} # Use the component branch that triggered the action for the test
21+
steps:
22+
- name: Checkout orch ci
23+
uses: actions/checkout@v4
24+
with:
25+
repository: open-edge-platform/orch-ci
26+
path: ci
27+
ref: "main"
28+
token: ${{ secrets.SYS_ORCH_GITHUB }}
29+
30+
- name: Checkout cluster-tests for integration tests
31+
uses: actions/checkout@v4
32+
with:
33+
repository: open-edge-platform/cluster-tests
34+
path: cluster-tests
35+
ref: "main"
36+
token: ${{ secrets.SYS_ORCH_GITHUB }}
37+
38+
- name: Bootstrap CI environment
39+
uses: ./ci/.github/actions/bootstrap
40+
with:
41+
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
42+
43+
- name: Run make test with additional config
44+
run: |
45+
cd cluster-tests
46+
ADDITIONAL_CONFIG="{\"components\":[{\"name\":\"cluster-connect-gateway\", \"skip-local-build\": false, \"git-repo\": {\"version\":\"${{ env.VERSION }}\"}}]}" make test

0 commit comments

Comments
 (0)