Skip to content

Commit

Permalink
Merge pull request #666 from 3scale/backport-665
Browse files Browse the repository at this point in the history
[Backport 665] Rename APIcast openTracing.tracingConfigRef to tracingConfigSecretRef
  • Loading branch information
miguelsorianod authored Sep 22, 2021
2 parents 9e21e34 + 9b62667 commit 43142bc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions apis/apps/v1alpha1/apimanager_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,11 @@ type APIcastOpenTracingSpec struct {
// TracingLibrary controls which OpenTracing library is loaded. At the moment
// the only supported tracer is `jaeger`. If not set, `jaeger` will be used.
TracingLibrary *string `json:"tracingLibrary,omitempty"`
// TracingConfig contains a secret reference the OpenTracing configuration.
// TracingConfigSecretRef contains a secret reference the OpenTracing configuration.
// Each supported tracing library provides a default configuration file
// that is used if TracingConfig is not specified.
// +optional
TracingConfigSecretRef *v1.LocalObjectReference `json:"tracingConfigRef,omitempty"`
TracingConfigSecretRef *v1.LocalObjectReference `json:"tracingConfigSecretRef,omitempty"`
}

// SetDefaults sets the default values for the APIManager spec and returns true if the spec was changed
Expand Down
8 changes: 4 additions & 4 deletions bundle/manifests/apps.3scale.net_apimanagers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ spec:
enabled:
description: Enabled controls whether OpenTracing integration with APIcast is enabled. By default it is not enabled.
type: boolean
tracingConfigRef:
description: TracingConfig contains a secret reference the OpenTracing configuration. Each supported tracing library provides a default configuration file that is used if TracingConfig is not specified.
tracingConfigSecretRef:
description: TracingConfigSecretRef contains a secret reference the OpenTracing configuration. Each supported tracing library provides a default configuration file that is used if TracingConfig is not specified.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Expand Down Expand Up @@ -939,8 +939,8 @@ spec:
enabled:
description: Enabled controls whether OpenTracing integration with APIcast is enabled. By default it is not enabled.
type: boolean
tracingConfigRef:
description: TracingConfig contains a secret reference the OpenTracing configuration. Each supported tracing library provides a default configuration file that is used if TracingConfig is not specified.
tracingConfigSecretRef:
description: TracingConfigSecretRef contains a secret reference the OpenTracing configuration. Each supported tracing library provides a default configuration file that is used if TracingConfig is not specified.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Expand Down
20 changes: 10 additions & 10 deletions config/crd/bases/apps.3scale.net_apimanagers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -783,11 +783,11 @@ spec:
description: Enabled controls whether OpenTracing integration
with APIcast is enabled. By default it is not enabled.
type: boolean
tracingConfigRef:
description: TracingConfig contains a secret reference
the OpenTracing configuration. Each supported tracing
library provides a default configuration file that is
used if TracingConfig is not specified.
tracingConfigSecretRef:
description: TracingConfigSecretRef contains a secret
reference the OpenTracing configuration. Each supported
tracing library provides a default configuration file
that is used if TracingConfig is not specified.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Expand Down Expand Up @@ -1621,11 +1621,11 @@ spec:
description: Enabled controls whether OpenTracing integration
with APIcast is enabled. By default it is not enabled.
type: boolean
tracingConfigRef:
description: TracingConfig contains a secret reference
the OpenTracing configuration. Each supported tracing
library provides a default configuration file that is
used if TracingConfig is not specified.
tracingConfigSecretRef:
description: TracingConfigSecretRef contains a secret
reference the OpenTracing configuration. Each supported
tracing library provides a default configuration file
that is used if TracingConfig is not specified.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Expand Down
6 changes: 3 additions & 3 deletions doc/apimanager-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Generated using [github-markdown-toc](https://github.com/ekalinin/github-markdow
| Workers | `workers` | integer | No | Automatically computed. Check [apicast doc](https://github.com/3scale/APIcast/blob/master/doc/parameters.md#apicast_workers) for further info. | Defines the number of worker processes |
| LogLevel | `logLevel` | string | No | N/A | Log level for the OpenResty logs (see [docs](https://github.com/3scale/APIcast/blob/master/doc/parameters.md#apicast_log_level)) |
| CustomPolicies | `customPolicies` | [][CustomPolicySpec](#CustomPolicySpec) | No | N/A | List of custom policies |
| OpenTracing | `openTracing` | [OpenTracingSpec](#OpenTracingSpec) | No | N/A | contains the OpenTracing integration configuration |
| OpenTracing | `openTracing` | [APIcastOpenTracingSpec](#APIcastOpenTracingSpec) | No | N/A | contains the OpenTracing integration configuration |
| CustomEnvironments | `customEnvironments` | [][CustomEnvironmentSpec](#CustomEnvironmentSpec) | No | N/A | List of custom environments |
| HTTPSPort | `httpsPort` | int | No | **8443** only when `httpsCertificateSecretRef` is provided | Controls on which port APIcast should start listening for HTTPS connections. Do not use `8080` as HTTPS port (see [docs](https://github.com/3scale/APIcast/blob/master/doc/parameters.md#apicast_https_port)) |
| HTTPSVerifyDepth | `httpsVerifyDepth` | int | No | N/A | Defines the maximum length of the client certificate chain. (see [docs](https://github.com/3scale/APIcast/blob/master/doc/parameters.md#apicast_https_verify_depth)) |
Expand Down Expand Up @@ -154,7 +154,7 @@ Some examples are available [here](/doc/adding-custom-policies.md)
| --- | --- | --- | --- | --- | --- |
| Enabled | `enabled` | bool | No | `false` | Controls whether OpenTracing integration with APIcast is enabled. By default it is not enabled |
| TracingLibrary | `tracingLibrary` | string | No | `jaeger` | Controls which OpenTracing library is loaded. At the moment the supported values are: `jaeger`. If not set, `jaeger` will be used |
| | TracingConfigRef | `tracingConfigRef` | LocalObjectReference | No | tracing library-specific default | Secret reference with the tracing library-specific configuration. Each supported tracing library provides a default configuration file which is used if `tracingConfigRef` is not specified. See [APIcastTracingConfigSecret](#APIcastTracingConfigSecret) for more information. |
| TracingConfigSecretRef | `tracingConfigSecretRef` | LocalObjectReference | No | tracing library-specific default | Secret reference with the tracing library-specific configuration. Each supported tracing library provides a default configuration file which is used if `tracingConfigSecretRef` is not specified. See [APIcastTracingConfigSecret](#APIcastTracingConfigSecret) for more information. |

### APIcastTracingConfigSecret

Expand All @@ -168,7 +168,7 @@ However, apicast has the environment already loaded and it does not change the b

If the custom environment content needs to be changed, there are two options:

* [**recommended way**] Create another secret with a different name and update the APIcast custom resource field `spec.apicast.<apicast-environment>.openTracing.tracingConfigRef.name`. The operator will trigger a rolling update loading the new custom environment content.
* [**recommended way**] Create another secret with a different name and update the APIcast custom resource field `spec.apicast.<apicast-environment>.openTracing.tracingConfigSecretRef.name`. The operator will trigger a rolling update loading the new custom environment content.
* Update the existing secret content and redeploy apicast turning `spec.replicas` to 0 and then back to the previous value.

#### CustomEnvironmentSpec
Expand Down

0 comments on commit 43142bc

Please sign in to comment.