Skip to content

Commit

Permalink
Add field in v2 for backwards compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Salaberria <[email protected]>
  • Loading branch information
psalaberria002 committed Apr 15, 2022
1 parent 66c957e commit f36a9c3
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 1 deletion.
9 changes: 9 additions & 0 deletions manifests/emissary/emissary-crds.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -3696,6 +3696,15 @@ spec:
type: boolean
trace_id_128bit:
type: boolean
v3PropagationModes:
items:
enum:
- ENVOY
- LIGHTSTEP
- B3
- TRACE_CONTEXT
type: string
type: array
type: object
driver:
enum:
Expand Down
9 changes: 9 additions & 0 deletions pkg/api/getambassador.io/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3755,6 +3755,15 @@ spec:
type: boolean
trace_id_128bit:
type: boolean
v3PropagationModes:
items:
enum:
- ENVOY
- LIGHTSTEP
- B3
- TRACE_CONTEXT
type: string
type: array
type: object
driver:
enum:
Expand Down
4 changes: 4 additions & 0 deletions pkg/api/getambassador.io/v2/crd_tracingservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package v2

import (
"github.com/datawire/ambassador/v2/pkg/api/getambassador.io/v3alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand All @@ -39,6 +40,9 @@ type TraceConfig struct {
TraceID128Bit *bool `json:"trace_id_128bit,omitempty"`
SharedSpanContext *bool `json:"shared_span_context,omitempty"`
ServiceName string `json:"service_name,omitempty"`

// +k8s:conversion-gen:rename=PropagationModes
V3PropagationModes []v3alpha1.PropagationMode `json:"v3PropagationModes,omitempty"`
}

// TracingServiceSpec defines the desired state of TracingService
Expand Down
14 changes: 13 additions & 1 deletion pkg/api/getambassador.io/v2/zz_generated.conversion.go

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

6 changes: 6 additions & 0 deletions pkg/api/getambassador.io/v2/zz_generated.deepcopy.go

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

9 changes: 9 additions & 0 deletions python/tests/integration/manifests/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3605,6 +3605,15 @@ spec:
type: boolean
trace_id_128bit:
type: boolean
v3PropagationModes:
items:
enum:
- ENVOY
- LIGHTSTEP
- B3
- TRACE_CONTEXT
type: string
type: array
type: object
driver:
enum:
Expand Down

0 comments on commit f36a9c3

Please sign in to comment.