Skip to content

Commit

Permalink
docs: update docs and add deprecation notices
Browse files Browse the repository at this point in the history
  • Loading branch information
rauno56 committed Aug 13, 2024
1 parent b103566 commit f3ce9f3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
13 changes: 11 additions & 2 deletions api/config/crd/bases/odigos.io_odigosconfigurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ spec:
- name: v1alpha1
schema:
openAPIV3Schema:
description: OdigosConfiguration is the Schema for the odigos configuration
description: |-
OdigosConfiguration is the Schema for the odigos configuration
Deprecated: Use common.OdigosConfiguration instead
properties:
apiVersion:
description: |-
Expand All @@ -37,11 +41,16 @@ spec:
metadata:
type: object
spec:
description: OdigosConfigurationSpec defines the desired state of OdigosConfiguration
description: |-
OdigosConfigurationSpec defines the desired state of OdigosConfiguration
Deprecated: Use common.OdigosConfiguration instead
properties:
autoscalerImage:
type: string
collectorGateway:
description: 'Deprecated: Use common.OdigosConfiguration instead'
properties:
goMemLimitMiB:
description: |-
Expand Down
5 changes: 5 additions & 0 deletions api/odigos/v1alpha1/odigosconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// Deprecated: Use common.OdigosConfiguration instead
type CollectorGatewayConfiguration struct {
// RequestMemoryMiB is the memory request for the cluster gateway collector deployment.
// it will be embedded in the deployment as a resource request of the form "memory: <value>Mi"
Expand All @@ -30,6 +31,8 @@ type CollectorGatewayConfiguration struct {
}

// OdigosConfigurationSpec defines the desired state of OdigosConfiguration
//
// Deprecated: Use common.OdigosConfiguration instead
type OdigosConfigurationSpec struct {
OdigosVersion string `json:"odigosVersion"`
ConfigVersion int `json:"configVersion"`
Expand All @@ -55,6 +58,8 @@ type OdigosConfigurationSpec struct {
//+kubebuilder:object:root=true

// OdigosConfiguration is the Schema for the odigos configuration
//
// Deprecated: Use common.OdigosConfiguration instead
type OdigosConfiguration struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
5 changes: 3 additions & 2 deletions docs/architecture/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ If the instrumentation devices are missing:

The instrumentation devices is selected based on the programming language and the configuration in the global odigos config resource:

```
kubectl get odigosconfigurations.odigos.io -n odigos-system odigos-config -o yaml
```bash
kubectl get configmap -n odigos-system odigos-config -o json | jq -r '.data."config.yaml"' | jq .
# or, if your environment does not have jq, examine "config.yaml" field under "data" of the configmap
```

To examine the resources for a workload, use this as an example:
Expand Down

0 comments on commit f3ce9f3

Please sign in to comment.