generated from openmcp-project/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Adding code from cloud-orchestration/control-plane-operator #2
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
99a308c
Squashed commit of the following:
moelsayed 0f3ebd3
fix Makefile
moelsayed 5330224
docs(contributing): update Code of Conduct
maximiliantech 5b82b47
docs(readme): update managed setup, remove self-hosted part
maximiliantech 50594af
fix: remove cloud-orchestration occurrences
maximiliantech 059b38b
fix: typo
maximiliantech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,4 @@ | ||
| # powered by direnv | ||
| [[ -f dev.env ]] && dotenv dev.env | ||
| [[ -f secret.env ]] && dotenv secret.env | ||
| [[ -f e2e.env ]] && dotenv e2e.env |
This file contains hidden or 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,33 @@ | ||
| name: ci | ||
| on: | ||
| push: | ||
| tags: | ||
| - v* | ||
| branches: | ||
| - master | ||
| - main | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-24.04 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: go.mod | ||
|
|
||
| - name: make tidy | ||
| run: | | ||
| make tidy | ||
| git diff --exit-code | ||
| - name: make verify | ||
| run: make verify | ||
|
|
||
| - name: make test | ||
| run: make test | ||
This file contains hidden or 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,87 @@ | ||
| name: Versioned Release | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| permissions: | ||
| contents: write # we need this to be able to push tags | ||
|
|
||
| jobs: | ||
| release_tag: | ||
| name: Release version | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ssh-key: ${{ secrets.PUSH_KEY }} | ||
| fetch-tags: true | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Read and validate VERSION | ||
| id: version | ||
| run: | | ||
| VERSION=$(cat VERSION) | ||
| if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev)?$ ]]; then | ||
| echo "Invalid version format in VERSION file: $VERSION" | ||
| exit 1 | ||
| fi | ||
| echo "New version: $VERSION" | ||
| echo "version=$VERSION" >> $GITHUB_ENV | ||
|
|
||
| - name: Skip release if version is a dev version | ||
| if: contains(env.version, '-dev') | ||
| run: | | ||
| echo "Skipping development version release: ${{ env.version }}" | ||
| echo "SKIP=true" >> $GITHUB_ENV | ||
| exit 0 | ||
|
|
||
| - name: Check if VERSION is already tagged | ||
| id: check_tag | ||
| run: | | ||
| if git rev-parse "refs/tags/${{ env.version }}" >/dev/null 2>&1; then | ||
| echo "Tag ${{ env.version }} already exists. Skipping release." | ||
| echo "SKIP=true" >> $GITHUB_ENV | ||
| exit 0 | ||
| fi | ||
| echo "Tag ${{ env.version }} doesn't exists. Proceeding with release." | ||
|
|
||
| - name: Create Git tag | ||
| if: ${{ env.SKIP != 'true' }} | ||
| run: | | ||
| AUTHOR_NAME=$(git log -1 --pretty=format:'%an') | ||
| AUTHOR_EMAIL=$(git log -1 --pretty=format:'%ae') | ||
| echo "Tagging as $AUTHOR_NAME <$AUTHOR_EMAIL>" | ||
|
|
||
| echo "AUTHOR_NAME=$AUTHOR_NAME" >> $GITHUB_ENV | ||
| echo "AUTHOR_EMAIL=$AUTHOR_EMAIL" >> $GITHUB_ENV | ||
|
|
||
| git config user.name "$AUTHOR_NAME" | ||
| git config user.email "$AUTHOR_EMAIL" | ||
|
|
||
| git tag -a "${{ env.version }}" -m "Release ${{ env.version }}" | ||
| git push origin "${{ env.version }}" | ||
|
|
||
| - name: Create GitHub release | ||
| if: ${{ env.SKIP != 'true' }} | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| tag_name: ${{ env.version }} | ||
| name: Release ${{ env.version }} | ||
| body: "Automated release for version ${{ env.version }}" | ||
| draft: false | ||
| prerelease: false | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Push dev VERSION | ||
| if: ${{ env.SKIP != 'true' }} | ||
| run: | | ||
| echo "${{ env.version }}-dev" > VERSION | ||
| git config user.name "${{ env.AUTHOR_NAME }}" | ||
| git config user.email "${{ env.AUTHOR_EMAIL }}" | ||
| git add VERSION | ||
| git commit -m "Update VERSION to ${{ env.version }}-dev" | ||
| git push origin main |
This file contains hidden or 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,44 @@ | ||
|
|
||
| # Binaries for programs and plugins | ||
| *.exe | ||
| *.exe~ | ||
| *.dll | ||
| *.so | ||
| *.dylib | ||
| bin/* | ||
| Dockerfile.cross | ||
|
|
||
| # Test binary, build with `go test -c` | ||
| *.test | ||
|
|
||
| # Output of the go coverage tool, specifically when used with LiteIDE | ||
| *.out | ||
| cover.html | ||
|
|
||
| # Kubernetes Generated files - skip generated files, except for vendored files | ||
|
|
||
| !vendor/**/zz_generated.* | ||
|
|
||
| # editor and IDE paraphernalia | ||
| .idea | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
|
|
||
| .DS_Store | ||
| /test/e2e/logs/ | ||
| /test/e2e/logs-* | ||
|
|
||
| config/samples/*_untracked.yaml | ||
|
|
||
| # charts | ||
| charts/*/charts/*.tgz | ||
|
|
||
| /charts/*/templates-original/ | ||
| *.orig | ||
|
|
||
| .generated | ||
| secret.env | ||
|
|
||
| test/e2e/testdata/serect.yaml | ||
| integration-tests.xml |
This file contains hidden or 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,39 @@ | ||
| run: | ||
| timeout: 5m | ||
| allow-parallel-runners: true | ||
|
|
||
| issues: | ||
| # don't skip warning about doc comments | ||
| # don't exclude the default set of lint | ||
| exclude-use-default: false | ||
| # restore some of the defaults | ||
| # (fill in the rest as needed) | ||
| exclude-rules: | ||
| - path: "api/*" | ||
| linters: | ||
| - lll | ||
| - path: "internal/*" | ||
| linters: | ||
| - dupl | ||
| - lll | ||
| linters: | ||
| enable: | ||
| - dupl | ||
| - errcheck | ||
| - copyloopvar | ||
| - goconst | ||
| - gocyclo | ||
| - gofmt | ||
| - goimports | ||
| - gosimple | ||
| - govet | ||
| - ineffassign | ||
| - lll | ||
| - misspell | ||
| - nakedret | ||
| - prealloc | ||
| - staticcheck | ||
| - typecheck | ||
| - unconvert | ||
| - unused | ||
| disable: [] |
This file contains hidden or 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,17 @@ | ||
| { | ||
| // Use IntelliSense to learn about possible attributes. | ||
| // Hover to view descriptions of existing attributes. | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "Run operator locally", | ||
| "type": "go", | ||
| "request": "launch", | ||
| "mode": "debug", | ||
| "program": "cmd/main.go", | ||
| "args": ["start"], | ||
| "envFile": "${workspaceFolder}/dev.env" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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,5 @@ | ||
| { | ||
| "gopls": { | ||
| "build.buildFlags": ["-tags=e2e"] | ||
| } | ||
| } |
This file contains hidden or 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,28 @@ | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "label": "Run make", | ||
| "command": "make", | ||
| "type": "shell", | ||
| "args": [], | ||
| "presentation": { | ||
| "reveal": "silent" | ||
| }, | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": true | ||
| }, | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "Build docker image", | ||
| "command": "make docker-build", | ||
| "type": "shell", | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": false | ||
| } | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,7 +4,9 @@ | |
|
|
||
| All members of the project community must abide by the [SAP Open Source Code of Conduct](https://github.com/SAP/.github/blob/main/CODE_OF_CONDUCT.md). | ||
| Only by respecting each other we can develop a productive, collaborative community. | ||
| Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting [a project maintainer](.reuse/dep5). | ||
| Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [[email protected]](mailto:[email protected]) (SAP Open Source Program Office). All complaints will be reviewed and investigated promptly and fairly. | ||
|
|
||
| All community leaders are obligated to respect the privacy and security of the reporter of any incident. | ||
|
|
||
| ## Engaging in Our Project | ||
|
|
||
|
|
||
This file contains hidden or 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,9 @@ | ||
| # Use distroless as minimal base image to package the manager binary | ||
| # Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
| FROM gcr.io/distroless/static:nonroot | ||
| ARG TARGETARCH | ||
| WORKDIR / | ||
| COPY bin/manager-linux.${TARGETARCH} /manager | ||
| USER 65532:65532 | ||
|
|
||
| ENTRYPOINT ["/manager"] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium