diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37debce..b08c8ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: ${{ github.event_name == 'pull_request' && fromJSON('["ubuntu-latest"]') || fromJSON('["ubuntu-latest", "macos-latest"]') }} go-version: [1.24.0] arch: [amd64, arm64] diff --git a/pkg/operator/operatorhub/subscription.go b/pkg/operator/operatorhub/subscription.go index 59da0fb..84da4d7 100644 --- a/pkg/operator/operatorhub/subscription.go +++ b/pkg/operator/operatorhub/subscription.go @@ -118,6 +118,9 @@ func (o *Operator) createSubscription(ctx context.Context, name, namespace, csv "metadata": map[string]interface{}{ "name": name, "namespace": namespace, + "annotations": map[string]interface{}{ + "cpaas.io/target-namespaces": namespace, + }, "labels": map[string]interface{}{ "catalog": "platform", },