• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KusionStack / karpor / 10808634043
64%

Build:
DEFAULT BRANCH: main
Ran 11 Sep 2024 09:15AM UTC
Jobs 1
Files 37
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Sep 2024 09:12AM UTC coverage: 76.777% (-0.9%) from 77.675%
10808634043

push

github

web-flow
feat(syncer): supports users to group related resources by adding same label (#589)

## What type of PR is this?

/kind feature

## What this PR does / why we need it:

For example, we have an app named `ray`, and we want to quick search all
its events including deployment and pods.

we can add label `app=ray` to all its events, then we can just type ``
where kind = 'Event' and `labels.app` = "ray" `` to search all related
events.

```yaml
---
apiVersion: search.karpor.io/v1beta1
kind: TransformRule
metadata:
  name: for-events
spec:
  type: patch
  valueTemplate: |
    {{- $ref := (objectRef .Object.involvedObject.apiVersion .Object.involvedObject.kind .Object.involvedObject.namespace .Object.involvedObject.name) -}}
    [
      { "op": "add", "path": "/metadata/labels", "value": { "app": "{{ index $ref.Object.metadata.labels "app" }}" } }
    ]
---
apiVersion: search.karpor.io/v1beta1
kind: SyncRegistry
metadata:
  name: events-sync-rule
spec:
  clusters:
    - "*"
  syncResources:
    - apiVersion: v1
      resource: events
      transformRefName: for-events
      namespace: test
```


## Which issue(s) this PR fixes:

<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related
issues/tests in a comment and do not use `Fixes`_*
-->

Fixes #

13 of 64 new or added lines in 2 files covered. (20.31%)

3025 of 3940 relevant lines covered (76.78%)

0.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10808634043.1 11 Sep 2024 09:15AM UTC 0
76.78
GitHub Action Run
Source Files on build 10808634043
Detailed source file information is not available for this build.
  • Back to Repo
  • 5932cfb8 on github
  • Prev Build on main (#10676282990)
  • Next Build on main (#10808641004)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc