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

Merge current main #1783

Merged
merged 568 commits into from
Nov 19, 2024
Merged

Conversation

alonkeyval
Copy link
Collaborator

No description provided.

alonkeyval and others added 30 commits August 27, 2024 14:34
[GEN-1361] feat: get destination - gql
[GEN-1043] chore: insert destinations and action to cp and create resolvers
[GEN-1405] chore: change api to new schema and delete unused files
alonbraymok and others added 29 commits November 12, 2024 13:31
Co-authored-by: Amir Blum <amirgiraffe@gmail.com>
…s-io#1741)

Define a minimum k8s version for odigos being installed. This is defined
both in helm and the CLI. Currently, the minimum version is 1.23.0, but
we might change that in the future.
Co-authored-by: Tamir David <tamirdavid@Tamirs-MacBook-Pro.local>
This PR is a general housekeeping, removing some auto-generated comments
with trivial or non-up-to-date info, that does not give any value to our
code base.
…-io#1757)

This PR:

- shifts to use the common predicates in `k8sutils` over writing them
specifically in the controllers.
- splits logic into smaller parts and combine them with `predicate.And`
for better readability.
- adds few straight forward predicates to places where they are
currently missing
…ler for instrumentation (odigos-io#1754)

Following odigos-io#1666, this PR includes the following:

1. Change the predicate for ebpf instrumentation to only pass events
where all the containers in a pod become ready. This will fix cases
where the reconciliation was called too early and missed the relevant
process.
2. Create an `AllContainersReadyPredicate` which is common to the
runtime details reconciler (the predicate was added in odigos-io#1666 ) and the
ebpf instrumentation reconciler.
3. Create a common `DeletionPredicate` predicate - for the
instrumentation reconcilation it is an OR between the containers ready
predicate and the delete one.
Co-authored-by: David <david@odigos.io>
…luster details once for all commands (odigos-io#1759)

Add `PersistentPreRun` which will be inherited by all sub-commands of
the root command.
Perform a client initialzation in that function and set the cluster kind
and k8s version as well - so they can be used by all commands. Both the
kube client and the cluster details are set on the command context and
can be used by all the commands.
The helper function from k8sutils `GetKubernetesVersion` can't be used
outside of the cluster by the CLI since it as using a rest client which
states:

> // InClusterConfig returns a config object which uses the service
account
// kubernetes gives to pods. It's intended for clients that expect to be
// running inside a pod running on kubernetes. It will return
ErrNotInCluster
// if called from a process not running in a kubernetes environment.
func InClusterConfig() (*Config, error) {

Hence, removing the use of this function from the CLI, and using the k8s
version which was calculated in the `PersistentPreRun` function.
Before this change `odigos upgrade` resulted in errors such as:

> Syncing customresourcedefinitionsDeleteOldOdigosSystemObjects failed
to get k8s version, proceeding.. :unable to load in-cluster
configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must
be defined ✔
Syncing deploymentsDeleteOldOdigosSystemObjects failed to get k8s
version, proceeding.. :unable to load in-cluster configuration,
KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined ✔
Syncing daemonsetsDeleteOldOdigosSystemObjects failed to get k8s
version, proceeding.. :unable to load in-cluster
Simplified the `SetInjectInstrumentationLabel` function by removing the
`odigosTier` variable and the conditional check for the community tier,
ensuring that the instrumentation label is always injected.
…ok (odigos-io#1738)

This is a special exception, used to temporarly filter out a specific
value that is known to be managed by a webhook. For this case, we only
want to populate the odigos value

---------

Co-authored-by: Eden Federman <eden@keyval.dev>
@alonkeyval alonkeyval merged commit 887f4b4 into odigos-io:odigos-ui-beta Nov 19, 2024
3 checks passed
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.

8 participants