Skip to content
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

Feature/gen 2030 group sources to destination #2112

Merged
Show file tree
Hide file tree
Changes from 216 commits
Commits
Show all changes
312 commits
Select commit Hold shift + click to select a range
746ff64
Merge branch 'main' of github.com:odigos-io/odigos into feature/sourc…
BenElferink Dec 26, 2024
4bbe6fd
Merge branch 'feature/source-ui' of github.com:BenElferink/odigos int…
BenElferink Dec 26, 2024
fe4895d
refactor: rename GetSourceCRDs to GetAllSourceCRDs and update related…
BenElferink Dec 26, 2024
5f6ee0d
Merge pull request #11 from BenElferink/source-ui-delete
BenElferink Dec 26, 2024
9136f3b
Feedback
damemi Dec 27, 2024
3ede2c7
Merge remote-tracking branch 'upstream/main' into source-crd
damemi Dec 27, 2024
bd57147
Add Source chainsaw test
damemi Dec 27, 2024
70533c2
Create common interface for instrumenteationConfig and instrumentedAp…
RonFed Dec 27, 2024
0bdfaa1
rename interface to WorkloadDetailsObject
RonFed Dec 27, 2024
9ee971d
Update comment
damemi Dec 27, 2024
c0c526e
Return SourceList by value in GetSourceListForWorkload
damemi Dec 27, 2024
df543a1
Merge branch 'source-crd' of github.com:damemi/odigos into feature/so…
BenElferink Dec 28, 2024
5036796
Add check for existing Source CRD before creation
BenElferink Dec 28, 2024
f0ad0bc
Enhance error message for existing Source CRD to include workload name
BenElferink Dec 28, 2024
1cfc83d
Add Source chainsaw test
damemi Dec 27, 2024
7bf007c
Update comment
damemi Dec 27, 2024
64cd9f1
Return SourceList by value in GetSourceListForWorkload
damemi Dec 27, 2024
14a0758
Refactor K8sActualSources resolver and clean up unused code; improve …
BenElferink Dec 28, 2024
c65f0ab
Merge branch 'source-crd' of github.com:damemi/odigos into feature/so…
BenElferink Dec 28, 2024
3efc8da
Merge branch 'instConfig_conditions' of github.com:RonFed/odigos_fork…
BenElferink Dec 28, 2024
c9a5e5a
Improve error messages in source retrieval and add workload kind vali…
BenElferink Dec 28, 2024
6bdd683
Add --nowait option to cli-install command in Makefile
BenElferink Dec 28, 2024
b5d6d55
Refactor K8sActualSource and related components to streamline data ha…
BenElferink Dec 28, 2024
086b1c8
Remove 'sources' resource from UIClusterRole permissions to refine ac…
BenElferink Dec 28, 2024
644f117
Merge branch 'feature/source-crd' into source-crd
damemi Dec 28, 2024
55112cc
Implement Source CRD instrumentation (#2059)
damemi Dec 28, 2024
98d1a24
Merge branch 'source-crd' of github.com:damemi/odigos into feature/so…
BenElferink Dec 29, 2024
f40fd3c
Merge branch 'feature/source-crd' of github.com:odigos-io/odigos into…
BenElferink Dec 29, 2024
d2fa4ad
fix: build error
BenElferink Dec 29, 2024
1c9e6e9
fix: code review
BenElferink Dec 29, 2024
28fd2ad
Merge branch 'main' of github.com:odigos-io/odigos into feature/sourc…
BenElferink Dec 29, 2024
6cad06c
Merge branch 'main' of github.com:odigos-io/odigos into feature/sourc…
BenElferink Dec 29, 2024
47eebdb
Merge branch 'main' of github.com:odigos-io/odigos into feature/sourc…
BenElferink Dec 29, 2024
b1a2354
sync with main (#2094)
BenElferink Dec 29, 2024
9805a4f
Merge branch 'main' into feature/source-crd
BenElferink Dec 29, 2024
f23f5ce
Merge branch 'feature/source-crd' into feature/source-ui
BenElferink Dec 29, 2024
0a6cd62
fix: remove duplicates
BenElferink Dec 29, 2024
154fb4f
feat: add more status to SSE
BenElferink Dec 29, 2024
4c5a84e
feat: replace instru. apps watcher with istru. configs watcher
BenElferink Dec 29, 2024
f2aa2e1
revert pull Ron PR
BenElferink Dec 29, 2024
4ae87c1
fix: empty line
BenElferink Dec 29, 2024
c233f5b
fix: build error
BenElferink Dec 29, 2024
d12c5fc
fix: improve health status determination logic
BenElferink Dec 29, 2024
527ef33
fix: improve error messages in source management functions
BenElferink Dec 29, 2024
bd95122
fix: correct terminology for InstrumentationConfig in watchers and logs
BenElferink Dec 29, 2024
0eb35fe
fix: remove obsolete case for InstrumentedApplication in useClickNoti…
BenElferink Dec 29, 2024
91d69ae
Enable source e2e test scenario (#2096)
damemi Dec 29, 2024
9dd75d9
Merge branch 'main' into feature/source-crd
BenElferink Dec 29, 2024
9da1ae5
Merge branch 'feature/source-crd' into feature/source-ui
BenElferink Dec 29, 2024
2cfcb92
chore: init custom processor
alonbraymok Dec 30, 2024
976ad4a
chore: build collector config
alonbraymok Dec 30, 2024
638160e
feat: add CRD types and improve error message formatting
BenElferink Dec 30, 2024
afcf5ba
refactor: improve event handling and message formatting for destinati…
BenElferink Dec 30, 2024
83289a3
fix: correct message formatting in SSEMessage and improve error handl…
BenElferink Dec 30, 2024
01acd83
fix: improve message formatting for destination and instrumentation e…
BenElferink Dec 30, 2024
03de9b6
refactor: streamline error handling and notification messages across …
BenElferink Dec 30, 2024
8a6e845
refactor: rename event batcher variables for instrumentation config a…
BenElferink Dec 30, 2024
fe051d4
feat: implement event batching for destination and instrumentation in…
BenElferink Dec 30, 2024
0d426c6
feat: add hideFromHistory option to notifications and improve error m…
BenElferink Dec 30, 2024
b8374a9
refactor: update role permissions and resource names for clarity and …
BenElferink Dec 30, 2024
8cd2eea
cleanup
BenElferink Dec 30, 2024
dbaec1f
feat: enhance notification messages for action and instrumentation ru…
BenElferink Dec 30, 2024
44e36d3
cleanup
BenElferink Dec 30, 2024
dfac48c
refactor: remove instr. app from describe source
BenElferink Dec 30, 2024
c3a964e
cleanup
BenElferink Dec 30, 2024
3c59040
refactor: remove instrumented application retrieval from source resou…
BenElferink Dec 30, 2024
b62b840
refactor: remove unnecessary refetch calls in destination and source …
BenElferink Dec 30, 2024
2962545
refactor: add loading state for namespaces in sources list components
BenElferink Dec 30, 2024
6b9dabd
refactor: handle potential undefined supportedSignals in destinations…
BenElferink Dec 30, 2024
69a314a
refactor: remove unnecessary delay in redirect after destination crea…
BenElferink Dec 30, 2024
391f76f
fix: UI tests
BenElferink Dec 30, 2024
b87a13a
fix: shorter wait times in cypress test
BenElferink Dec 30, 2024
48c4570
feat: add handling for modified instrumentation configs
BenElferink Dec 30, 2024
0b1b073
fix: UI tests again
BenElferink Dec 30, 2024
9f41850
feat: mark instrumented sources when gettgin namespace
BenElferink Dec 30, 2024
bb3472f
feat: refactor source handling to allow UI to persist sources without…
BenElferink Dec 30, 2024
01ac3bb
feat: add sources field with spec and status to compute platform
BenElferink Dec 25, 2024
4eeda2c
feat: add source management for workloads and update GraphQL queries
BenElferink Dec 25, 2024
3408c18
refactor: remove sources field and related types from GraphQL schema
BenElferink Dec 25, 2024
9ac2374
refactor: simplify workload source creation and deletion logic
BenElferink Dec 25, 2024
cb4695b
fix: validate workload kind in CreateWorkloadSource function
BenElferink Dec 25, 2024
12fbcf7
Add finalizer for uninstrumentation
damemi Dec 20, 2024
056ebae
Add workload labels to Source
damemi Dec 20, 2024
3f1b7ef
Add SourceReconciler to deleteinstrumentedapplication controller
damemi Dec 23, 2024
656914d
Enable build and e2e workflows for feature branch
damemi Dec 23, 2024
2645702
fix: use default namespace for creating and deleting workload sources
BenElferink Dec 25, 2024
1ff33b0
refactor: replace workload source functions with source CRD implement…
BenElferink Dec 25, 2024
aab3fe6
feat: add GetSourceCRD function to retrieve source CRD by workload de…
BenElferink Dec 25, 2024
942da6b
fix: handle case when source is not found in GetSourceCRD and remove …
BenElferink Dec 25, 2024
30e8fa5
feat: update GetSourceCRD to GetSourceCRDs for retrieving multiple so…
BenElferink Dec 26, 2024
de9dfe1
feat: implement SetWorkloadInstrumentationLabel function and update S…
BenElferink Dec 26, 2024
30c2ddc
refactor: rename GetSourceCRDs to GetAllSourceCRDs and update related…
BenElferink Dec 26, 2024
40729dd
Feedback
damemi Dec 27, 2024
013a08e
Add check for existing Source CRD before creation
BenElferink Dec 28, 2024
beee82d
Enhance error message for existing Source CRD to include workload name
BenElferink Dec 28, 2024
40afd7f
Refactor K8sActualSources resolver and clean up unused code; improve …
BenElferink Dec 28, 2024
030534f
Create common interface for instrumenteationConfig and instrumentedAp…
RonFed Dec 27, 2024
2dddc11
rename interface to WorkloadDetailsObject
RonFed Dec 27, 2024
1d1bcba
Improve error messages in source retrieval and add workload kind vali…
BenElferink Dec 28, 2024
fbd6007
Add --nowait option to cli-install command in Makefile
BenElferink Dec 28, 2024
d5fbab8
Refactor K8sActualSource and related components to streamline data ha…
BenElferink Dec 28, 2024
5c9d44c
Remove 'sources' resource from UIClusterRole permissions to refine ac…
BenElferink Dec 28, 2024
b698f57
fix: build error
BenElferink Dec 29, 2024
0293867
fix: code review
BenElferink Dec 29, 2024
d796c4f
feat: add more status to SSE
BenElferink Dec 29, 2024
e230cbc
feat: replace instru. apps watcher with istru. configs watcher
BenElferink Dec 29, 2024
0cf2ce7
revert pull Ron PR
BenElferink Dec 29, 2024
51465e1
fix: empty line
BenElferink Dec 29, 2024
933e5b0
fix: build error
BenElferink Dec 29, 2024
4e5d8ba
fix: improve health status determination logic
BenElferink Dec 29, 2024
f3e4e6d
fix: improve error messages in source management functions
BenElferink Dec 29, 2024
0d0c27b
fix: correct terminology for InstrumentationConfig in watchers and logs
BenElferink Dec 29, 2024
bcdedba
fix: remove obsolete case for InstrumentedApplication in useClickNoti…
BenElferink Dec 29, 2024
9a78b0c
feat: add CRD types and improve error message formatting
BenElferink Dec 30, 2024
0063fd3
refactor: improve event handling and message formatting for destinati…
BenElferink Dec 30, 2024
a146201
fix: correct message formatting in SSEMessage and improve error handl…
BenElferink Dec 30, 2024
640056e
fix: improve message formatting for destination and instrumentation e…
BenElferink Dec 30, 2024
5b2fe60
refactor: streamline error handling and notification messages across …
BenElferink Dec 30, 2024
4bfe4d1
refactor: rename event batcher variables for instrumentation config a…
BenElferink Dec 30, 2024
4a82ec3
feat: implement event batching for destination and instrumentation in…
BenElferink Dec 30, 2024
2400dc9
feat: add hideFromHistory option to notifications and improve error m…
BenElferink Dec 30, 2024
b3d0bbf
refactor: update role permissions and resource names for clarity and …
BenElferink Dec 30, 2024
e5b838b
cleanup
BenElferink Dec 30, 2024
15f8c53
feat: enhance notification messages for action and instrumentation ru…
BenElferink Dec 30, 2024
bcac4b6
cleanup
BenElferink Dec 30, 2024
a103bd7
refactor: remove instr. app from describe source
BenElferink Dec 30, 2024
45b738d
cleanup
BenElferink Dec 30, 2024
da67a71
refactor: remove instrumented application retrieval from source resou…
BenElferink Dec 30, 2024
7534382
refactor: remove unnecessary refetch calls in destination and source …
BenElferink Dec 30, 2024
79293de
refactor: add loading state for namespaces in sources list components
BenElferink Dec 30, 2024
6b8c3f7
refactor: handle potential undefined supportedSignals in destinations…
BenElferink Dec 30, 2024
2f08574
refactor: remove unnecessary delay in redirect after destination crea…
BenElferink Dec 30, 2024
3371116
fix: UI tests
BenElferink Dec 30, 2024
eee8b8a
fix: shorter wait times in cypress test
BenElferink Dec 30, 2024
ed9cfdd
feat: add handling for modified instrumentation configs
BenElferink Dec 30, 2024
0cbe6d1
fix: UI tests again
BenElferink Dec 30, 2024
58431b8
feat: mark instrumented sources when gettgin namespace
BenElferink Dec 30, 2024
28b6bd2
feat: refactor source handling to allow UI to persist sources without…
BenElferink Dec 30, 2024
9a24988
Merge branch 'feature/source-ui' of github.com:BenElferink/odigos int…
BenElferink Dec 30, 2024
9777c64
Revert "Merge branch 'feature/source-ui' of github.com:BenElferink/od…
BenElferink Dec 30, 2024
3bf587a
cleanup
BenElferink Dec 30, 2024
348c308
chore: wip + pl ben fork
alonbraymok Dec 30, 2024
3dc7f62
Merge branch 'main' into feature/source-crd
BenElferink Dec 30, 2024
ccdcc49
Source CRD & Instru. Config handling in UI Backend (#2092)
BenElferink Dec 30, 2024
e0d02bd
Merge branch 'feature/source-ui' of https://github.com/BenElferink/od…
alonbraymok Dec 31, 2024
13fda7c
Merge branch 'feature/source-crd' of github.com:keyval-dev/odigos int…
alonbraymok Dec 31, 2024
3f1837c
chore: filter data base on groups and namespaces
alonbraymok Dec 31, 2024
10d35d6
[GEN-2140]: improve UX for "pending" states (#2106)
BenElferink Dec 31, 2024
6d3d447
[GEN-2141]: remove instrumentation config modified-event batcher; upd…
BenElferink Dec 31, 2024
9725d7d
chore: use labels and change mode to array
alonbraymok Jan 1, 2025
a91f4aa
chore: change processor name
alonbraymok Jan 1, 2025
76bd45a
chore: use new processor name
alonbraymok Jan 1, 2025
ba64e37
chore: match logs and metrics
alonbraymok Jan 1, 2025
e4f3a83
chore: gen-2144 performance fixes
alonbraymok Jan 1, 2025
7024a7f
chore: type fix
alonbraymok Jan 1, 2025
8056f3d
chore: add the source reconcailer
alonbraymok Jan 1, 2025
d25ae07
[GEN-2150]: handle smart source-selection (exclude non-changed source…
BenElferink Jan 1, 2025
19b2ec5
Merge branch 'main' into feature/source-crd
BenElferink Jan 1, 2025
dbc89fe
chore: new labels working e2e
alonbraymok Jan 1, 2025
2fd5379
Merge branch 'feature/source-crd' of github.com:keyval-dev/odigos int…
alonbraymok Jan 1, 2025
18d971e
chore: remove dup code in make file
alonbraymok Jan 1, 2025
e393499
chore: remove dup code in make file
alonbraymok Jan 1, 2025
ff6854b
chore: fix typo
alonbraymok Jan 1, 2025
f76af08
chore: remove overhead comments"
alonbraymok Jan 1, 2025
e5572a6
chore: use util file
alonbraymok Jan 1, 2025
ff8416b
chore: remove line
alonbraymok Jan 1, 2025
fdc320f
chore: wip\
alonbraymok Jan 1, 2025
744ceca
Sync main into feature/source-crd (#2121)
damemi Jan 2, 2025
04ae9fb
Merge branch 'main' of github.com:odigos-io/odigos into feature/sourc…
BenElferink Jan 4, 2025
d6a01b5
merge main into feat/source branch (#2136)
BenElferink Jan 6, 2025
f60081f
Sync main into feature/source-crd (#2141)
BenElferink Jan 6, 2025
ff22deb
Sync main into feature/source-crd (#2144)
damemi Jan 6, 2025
a9fd8bf
chore: wip
alonbraymok Jan 8, 2025
f496a52
Sync main into feature/source-crd (#2168)
damemi Jan 8, 2025
4969d67
Add Namespace Source instrumentation (#2105)
damemi Jan 8, 2025
fc9f1c8
[GEN-2149]: handle Source CRD "kind=Namespace" in UI (#2116)
BenElferink Jan 8, 2025
68ffdcb
Add Source defaulting and validating webhooks (#2167)
damemi Jan 8, 2025
8d4a4e6
Merge remote-tracking branch 'upstream/feature/source-crd' into merge…
damemi Jan 8, 2025
46d917e
Remove feature branch from workflows on main
damemi Jan 8, 2025
8505555
Merge branch 'merge-source-into-main' of https://github.com/damemi/od…
alonbraymok Jan 9, 2025
11f0e8a
:q
alonbraymok Jan 9, 2025
6c239c8
Update uninstall for Sources
damemi Jan 9, 2025
aca2b60
Change GetWorkloadSources->GetSources, add IsTerminating, move exclud…
damemi Jan 9, 2025
5c376aa
Webhook: check valid kind casing and namespace match. Update tests
damemi Jan 9, 2025
d529466
Update cli/cmd/resource/README.md
damemi Jan 9, 2025
943bf5a
Add instrumentationDisabled field
damemi Jan 9, 2025
24f2382
Support toggling instrumentationDisabled/finalizers in Defaulter + tests
damemi Jan 9, 2025
48f832e
Merge branch 'main' into merge-source-into-main
damemi Jan 9, 2025
72b7cff
chore: remove duplicate consts, use from k8sutils
BenElferink Jan 10, 2025
90767bf
refactor: simplify GetSourceCRD to return the first source item directly
BenElferink Jan 10, 2025
9286e19
Merge pull request #2 from BenElferink/source-ui-code-review
damemi Jan 10, 2025
d0a4913
Merge branch 'main' into merge-source-into-main
damemi Jan 10, 2025
9d7a6ca
Add client.InNamespace to GetSources
damemi Jan 10, 2025
b25e8ac
refactor: frontend server handlers
BenElferink Jan 12, 2025
8460e0c
Merge branch 'main' of github.com:odigos-io/odigos into gen-2186
BenElferink Jan 12, 2025
86274eb
feat: cli remote update token (#2173)
AvihuHenya Jan 12, 2025
82b1701
Merge branch 'main' into feature/token-crud-ui
BenElferink Jan 12, 2025
9f31e3e
Merge branch 'feature/token-crud-ui' into gen-2186
BenElferink Jan 12, 2025
1e43328
feat: add API token update mutation and corresponding endpoint
BenElferink Jan 12, 2025
da24c7e
Merge branch 'main' into feature/token-crud-ui
BenElferink Jan 12, 2025
d117f5f
Merge branch 'feature/token-crud-ui' into gen-2186
BenElferink Jan 12, 2025
ef7a5eb
fix: add missing newline at end of file in consts.go
BenElferink Jan 12, 2025
76b4a33
chore: pulled main
alonbraymok Jan 12, 2025
2d25889
fix: golangci-lint
BenElferink Jan 12, 2025
f6f037b
chore: wip
alonbraymok Jan 12, 2025
1bb268b
fix: update default namespace in UpdateAPIToken resolver
BenElferink Jan 12, 2025
9f47fe9
Merge branch 'merge-source-into-main' of https://github.com/damemi/od…
alonbraymok Jan 12, 2025
6098288
fix: add lint-fix target to Makefile and reorder imports in common.go
BenElferink Jan 12, 2025
841d45e
chore: wip
alonbraymok Jan 13, 2025
b240292
chore: merge main into branch
alonbraymok Jan 13, 2025
5875215
chore: wip
alonbraymok Jan 13, 2025
dc25267
chore: wip
alonbraymok Jan 13, 2025
e9d32cf
chore: fixed pr comments
alonbraymok Jan 13, 2025
66c14cf
chore: pull main and fixed conflict
alonbraymok Jan 15, 2025
e19bb77
chore: add comments for new roles
alonbraymok Jan 15, 2025
85be432
chore: fixed pr comments
alonbraymok Jan 15, 2025
5c10b7f
chore: remove unused file
alonbraymok Jan 15, 2025
bd60616
chore: fixed pr comments
alonbraymok Jan 15, 2025
43236a1
chore: fix pr comments
alonbraymok Jan 19, 2025
e32be80
chore: wip
alonbraymok Jan 19, 2025
fb3c853
chore: return err on sync field
alonbraymok Jan 19, 2025
8343de1
chore: wip
alonbraymok Jan 19, 2025
2c53e8d
chore: move logic to processor
alonbraymok Jan 19, 2025
b9d062e
chore: fix pr comments
alonbraymok Jan 19, 2025
89f692a
chore: change processor name
alonbraymok Jan 19, 2025
1924cfe
chore: change processor name
alonbraymok Jan 19, 2025
47f3587
chore: merge main
alonbraymok Jan 20, 2025
531a3e3
chore: wip
alonbraymok Jan 20, 2025
7697d56
Merge branch 'main' of github.com:keyval-dev/odigos into feature/gen-…
alonbraymok Jan 20, 2025
aea5e2c
chore: wip
alonbraymok Jan 20, 2025
a10ea7c
chore: return pipelines name from dest
alonbraymok Jan 20, 2025
136899a
chore: refactor destinatpon to return pipeline names
alonbraymok Jan 21, 2025
20b129e
chore: fix pr comments
alonbraymok Jan 21, 2025
0bd052d
chore: fix pr comments
alonbraymok Jan 21, 2025
253fec9
chore: revert file
alonbraymok Jan 21, 2025
d2bfd67
chore: revert file
alonbraymok Jan 21, 2025
c716f9e
Merge branch 'main' of github.com:keyval-dev/odigos into feature/gen-…
alonbraymok Jan 21, 2025
c6d6e5e
chore: merge main
alonbraymok Jan 21, 2025
14762df
chore: reverts files
alonbraymok Jan 21, 2025
8d48011
Merge branch 'main' of github.com:keyval-dev/odigos into feature/gen-…
alonbraymok Jan 22, 2025
d047fed
chore: wip
alonbraymok Jan 22, 2025
1355852
chore: Update generated metadata and add missing test files
alonbraymok Jan 22, 2025
7f39f90
chore: Remove generated test files and update go.mod
alonbraymok Jan 22, 2025
6aed0cd
chore: lint issue fix
alonbraymok Jan 22, 2025
14961ed
chore: lint issue fix
alonbraymok Jan 22, 2025
68c7701
chore: fix crds issues
alonbraymok Jan 22, 2025
6122d06
chore: fixed api issue
alonbraymok Jan 22, 2025
e449d88
chore: fixed mod issue
alonbraymok Jan 22, 2025
f99f76c
chore: fixed mod issue
alonbraymok Jan 22, 2025
e937510
Merge branch 'main' of github.com:keyval-dev/odigos into feature/gen-…
alonbraymok Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- main
- stable
- feature/source-crd
- greatwall

jobs:
Expand Down Expand Up @@ -43,7 +44,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- uses: actions/setup-go@v5
with:
go-version: "1.23.0"
go-version: '1.23.0'
- name: Build Instrumentor Image
uses: docker/build-push-action@v6
with:
Expand Down Expand Up @@ -74,7 +75,7 @@ jobs:
run: |
make test
build-and-test-odiglet:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
Expand Down Expand Up @@ -118,7 +119,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23.0"
go-version: '1.23.0'
- name: Set up Goreleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand All @@ -131,7 +132,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23.0"
go-version: '1.23.0'
- name: Test k8sutils module
working-directory: ./k8sutils
run: |
Expand All @@ -143,7 +144,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23.0"
go-version: '1.23.0'
- name: Test common module
working-directory: ./common
run: |
Expand All @@ -155,8 +156,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23.0"
go-version: '1.23.0'
- name: Test procdiscovery module
working-directory: ./procdiscovery
run: |
go test -v ./...
go test -v ./...
2 changes: 2 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- main
- stable
- feature/source-crd
- greatwall

concurrency:
Expand Down Expand Up @@ -74,6 +75,7 @@ jobs:
- 'helm-chart'
- 'cli-upgrade'
- 'workload-lifecycle'
- 'source'
include:
- kube-version: '1.20.15'
kind-image: 'kindest/node:v1.20.15@sha256:a32bf55309294120616886b5338f95dd98a2f7231519c7dedcec32ba29699394'
Expand Down
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,17 @@ check-clean-work-tree:
.PHONY: cli-install
cli-install:
@echo "Installing odigos from source. version: $(ODIGOS_CLI_VERSION)"
cd ./cli ; go run -tags=embed_manifests . install --version $(ODIGOS_CLI_VERSION)
cd ./cli ; go run -tags=embed_manifests . install --version $(ODIGOS_CLI_VERSION) --nowait

.PHONY: cli-uninstall
cli-uninstall:
@echo "Uninstalling odigos from source. version: $(ODIGOS_CLI_VERSION)"
cd ./cli ; go run -tags=embed_manifests . uninstall

.PHONY: cli-uninstall
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This carried over as a duplicate, with typo in the "echo" message, please remove :)

cli-uninstall:
@echo "Installing odigos from source. version: $(ODIGOS_CLI_VERSION)"
cd ./cli ; go run -tags=embed_manifests . uninstall

.PHONY: cli-upgrade
cli-upgrade:
Expand Down Expand Up @@ -256,4 +266,4 @@ dev-nop-destination:

.PHONY: dev-add-backpressue-destination
dev-backpressue-destination:
kubectl apply -f ./tests/backpressure-exporter.yaml
kubectl apply -f ./tests/backpressure-exporter.yaml
28 changes: 28 additions & 0 deletions api/config/crd/bases/odigos.io_destinations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,34 @@ spec:
- METRICS
type: string
type: array
sourceSelector:
description: |-
SourceSelector defines which sources can send data to this destination.
If not specified, defaults to "all".
properties:
groups:
description: Groups specifies the groups for "groups" mode.
items:
type: string
type: array
modes:
description: |-
Mode can contain a combination of "all", "namespaces", or "groups".
Determines how sources are selected for this destination.
enum:
- all
- namespaces
- groups
items:
type: string
type: array
namespaces:
description: Namespaces specifies the namespaces for "namespaces"
mode.
items:
type: string
type: array
type: object
type:
type: string
required:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/generated/odigos/applyconfiguration/utils.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions api/odigos/v1alpha1/destination_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,27 @@ type DestinationSpec struct {
Data map[string]string `json:"data"`
SecretRef *v1.LocalObjectReference `json:"secretRef,omitempty"`
Signals []common.ObservabilitySignal `json:"signals"`

// SourceSelector defines which sources can send data to this destination.
// If not specified, defaults to "all".
// +optional
SourceSelector *SourceSelector `json:"sourceSelector,omitempty"`
}

// SourceSelector defines the criteria for selecting sources.
type SourceSelector struct {
// Mode can contain a combination of "all", "namespaces", or "groups".
// Determines how sources are selected for this destination.
// +kubebuilder:validation:Enum=all;namespaces;groups
Modes []string `json:"modes,omitempty"`

// Namespaces specifies the namespaces for "namespaces" mode.
// +optional
Namespaces []string `json:"namespaces,omitempty"`

// Groups specifies the groups for "groups" mode.
// +optional
Groups []string `json:"groups,omitempty"`
}

// DestinationStatus defines the observed state of Destination
Expand Down
19 changes: 19 additions & 0 deletions api/odigos/v1alpha1/source_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ limitations under the License.
package v1alpha1

import (
"context"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/odigos-io/odigos/k8sutils/pkg/consts"
"github.com/odigos-io/odigos/k8sutils/pkg/workload"
)

Expand Down Expand Up @@ -62,6 +67,20 @@ type SourceList struct {
Items []Source `json:"items"`
}

// GetSourceListForWorkload returns a SourceList of all Sources that have matching
// workload name, namespace, and kind labels for an object. In theory, this should only
// ever return a list with 0 or 1 items, but due diligence should handle unexpected cases.
func GetSourceListForWorkload(ctx context.Context, kubeClient client.Client, obj client.Object) (SourceList, error) {
sourceList := SourceList{}
selector := labels.SelectorFromSet(labels.Set{
consts.WorkloadNameLabel: obj.GetName(),
consts.WorkloadNamespaceLabel: obj.GetNamespace(),
consts.WorkloadKindLabel: obj.GetObjectKind().GroupVersionKind().Kind,
})
err := kubeClient.List(ctx, &sourceList, &client.ListOptions{LabelSelector: selector})
return sourceList, err
}

func init() {
SchemeBuilder.Register(&Source{}, &SourceList{})
}
35 changes: 35 additions & 0 deletions api/odigos/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading