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

feat: record installation method into odigos-deployment #2184

Merged
merged 3 commits into from
Jan 11, 2025

Conversation

blumamir
Copy link
Collaborator

@blumamir blumamir commented Jan 11, 2025

This PR adds "instllation method" to odigos-deployment config map, so we can reliably know if the current installation is deployed via "helm" or "odigos-cli".

We can later use this info to warn or block usages which we do not support and might end up with a broken deployment or odigos.

This PR also adds the installation method and tier to the describe cli command:

go run -tags=embed_manifests . describe                           
Odigos Version: v1.0.142
Tier: community
Installation Method: helm

....

@blumamir blumamir merged commit c75f90a into odigos-io:main Jan 11, 2025
31 of 32 checks passed
BenElferink added a commit that referenced this pull request Jan 12, 2025
…#2185)

Following up with a UI update in reference to #2184 

---

This pull request introduces several changes to the `frontend/graph` and
`frontend/webapp` components to add support for `tier` and
`installationMethod` fields in the `OdigosAnalyze` structure. The most
important changes include updates to the GraphQL schema, resolvers, and
TypeScript definitions.

### GraphQL Schema and Resolvers:

* Added `tier` and `installationMethod` fields to the `OdigosAnalyze`
struct in `frontend/graph/generated.go` and updated the corresponding
complexity functions.
[[1]](diffhunk://#diff-4bacf1f13939a5c243f3f83d21f4560b331d13667d81ea5945ed1f57ddb205f2R327-R333)
[[2]](diffhunk://#diff-4bacf1f13939a5c243f3f83d21f4560b331d13667d81ea5945ed1f57ddb205f2R1770-R1776)
[[3]](diffhunk://#diff-4bacf1f13939a5c243f3f83d21f4560b331d13667d81ea5945ed1f57ddb205f2R1812-R1818)
* Implemented resolver functions for the new `tier` and
`installationMethod` fields in `frontend/graph/generated.go`.
* Updated the `OdigosAnalyze` query to include the new fields in
`frontend/graph/generated.go`.
[[1]](diffhunk://#diff-4bacf1f13939a5c243f3f83d21f4560b331d13667d81ea5945ed1f57ddb205f2R13327-R13330)
[[2]](diffhunk://#diff-4bacf1f13939a5c243f3f83d21f4560b331d13667d81ea5945ed1f57ddb205f2R20112-R20121)

### TypeScript and GraphQL Queries:

* Updated the `OdigosAnalyze` type definition to include `tier` and
`installationMethod` in `frontend/graph/model/models_gen.go` and
`frontend/graph/schema.graphqls`.
[[1]](diffhunk://#diff-642ccd7ed71fdfa394bd7f7fd99c9c33e20ff18c876a91cb989d379a44390469R389-R390)
[[2]](diffhunk://#diff-bc07b91dedd1782d9ddbbb6374ad97c7604f9a267de5174645723d863c732f80R547-R548)
* Modified the `convertOdigosToGQL` function to map the new fields in
`frontend/services/describe/odigos_describe/odigos_describe.go`.
* Extended the GraphQL query `DESCRIBE_ODIGOS` to fetch `tier` and
`installationMethod` in `frontend/webapp/graphql/queries/describe.ts`.
* Updated the `useDescribeOdigos` hook to handle the new fields in
`frontend/webapp/hooks/describe/useDescribeOdigos.ts`.
* Added `tier` and `installationMethod` to the `OdigosAnalyze` interface
in `frontend/webapp/types/describe.ts`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants