Skip to content

Commit

Permalink
Updating GA, crossplane.yaml, README.md and Makefile for CI and publi…
Browse files Browse the repository at this point in the history
…shing
  • Loading branch information
Artem Shakhbazian authored and Artem Shakhbazian committed Jul 17, 2024
1 parent d64c07a commit 2bf0963
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 5 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: automerge

on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}

jobs:
automerge:
runs-on: ubuntu-latest
if: >
contains(github.event.pull_request.labels.*.name, 'gate')
environment: github
steps:
- name: Create GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_KEY }}

- id: automerge
name: automerge
uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
MERGE_LABELS: "gate"
MERGE_METHOD: "squash"
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,14 @@ jobs:

- name: Publish Artifacts
run: make publish BRANCH_NAME=${GITHUB_REF##*/}

eco_check:
name: eco/check
if: always()
needs: [detect-noop, report-breaking-changes, lint, check-diff, unit-tests, local-deploy, publish-artifacts]
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ UPTEST_VERSION = v0.5.0
# ====================================================================================
# Setup Images

REGISTRY_ORGS ?= xpkg.upbound.io/upbound
REGISTRY_ORGS ?= xpkg.upbound.io/opentelekomcloud
IMAGES = $(PROJECT_NAME)
-include build/makelib/imagelight.mk

# ====================================================================================
# Setup XPKG

XPKG_REG_ORGS ?= xpkg.upbound.io/upbound
XPKG_REG_ORGS ?= xpkg.upbound.io/opentelekomcloud
# NOTE(hasheddan): skip promoting on xpkg.upbound.io as channel tags are
# inferred.
XPKG_REG_ORGS_NO_PROMOTE ?= xpkg.upbound.io/upbound
XPKG_REG_ORGS_NO_PROMOTE ?= xpkg.upbound.io/opentelekomcloud
XPKGS = $(PROJECT_NAME)
-include build/makelib/xpkg.mk

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ kind: Provider
metadata:
name: provider-opentelekomcloud
spec:
package: opentelekomcloud/provider-opentelekomcloud:v0.1.0
package: xpkg.upbound.io/opentelekomcloud/provider-opentelekomcloud:v0.1.0
EOF
```

Notice that in this example Provider resource is referencing ControllerConfig with debug enabled.

You can see the API reference [here](https://doc.crds.dev/github.com/opentelekomcloud/provider-opentelekomcloud).
You can see the API reference [here](https://marketplace.upbound.io/providers/opentelekomcloud/provider-opentelekomcloud/latest).

## Developing

Expand Down
15 changes: 15 additions & 0 deletions package/crossplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,18 @@ apiVersion: meta.pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-opentelekomcloud
annotations:
meta.crossplane.io/maintainer: OTC Ecosystem Squad
meta.crossplane.io/source: github.com/opentelekomcloud/provider-opentelekomcloud
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/description: |
The OpenTelekomCloud Crossplane provider adds support for
managing OTC resources in Kubernetes.
meta.crossplane.io/readme: |
`provider-opentelekomcloud` is the Crossplane infrastructure provider for [OpenTelekomCloud (OTC)](https://www.open-telekom-cloud.com/).
## Report a Bug
If you encounter any bugs, have suggestions for improvements, or want to request new features, please
open an [issue](https://github.com/opentelekomcloud/provider-opentelekomcloud/issues).

0 comments on commit 2bf0963

Please sign in to comment.