From 970d355d885b7b9a39988905c0e1b9ee2b6a3d0a Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Fri, 12 Mar 2021 11:58:54 -0800 Subject: [PATCH] chore: deprecation in v1.5 comments (#1109) * chore: deprecate in v1.5 comments Signed-off-by: Derek Wang --- api/event-source.html | 4 ++-- api/event-source.md | 6 +++-- api/openapi-spec/swagger.json | 20 ++++++++--------- api/sensor.html | 12 +++++----- api/sensor.md | 22 ++++++++++--------- pkg/apis/common/common.go | 6 ++--- pkg/apis/common/generated.proto | 6 ++--- pkg/apis/common/openapi_generated.go | 6 ++--- pkg/apis/eventsource/v1alpha1/generated.proto | 4 ++-- .../eventsource/v1alpha1/openapi_generated.go | 4 ++-- pkg/apis/eventsource/v1alpha1/types.go | 4 ++-- pkg/apis/sensor/v1alpha1/generated.proto | 10 ++++----- pkg/apis/sensor/v1alpha1/openapi_generated.go | 10 ++++----- pkg/apis/sensor/v1alpha1/types.go | 10 ++++----- 14 files changed, 64 insertions(+), 60 deletions(-) diff --git a/api/event-source.html b/api/event-source.html index dd998371bc..3d4999785d 100644 --- a/api/event-source.html +++ b/api/event-source.html @@ -600,7 +600,7 @@

CalendarEventSource (Optional)

UserPayload will be sent to sensor as extra data once the event is triggered -Deprecated. Please use Metadata instead.

+Deprecated: will be removed in v1.5. Please use Metadata instead.

@@ -3034,7 +3034,7 @@

PubSubEventSource

CredentialsFile is the file that contains credentials to authenticate for GCP -Deprecated, use CredentialSecret instead

+Deprecated: will be removed in v1.5, use CredentialSecret instead

diff --git a/api/event-source.md b/api/event-source.md index d7b4d35bbd..85ca3a23c0 100644 --- a/api/event-source.md +++ b/api/event-source.md @@ -638,7 +638,8 @@ Timezone in which to run the schedule (Optional)

UserPayload will be sent to sensor as extra data once the event is -triggered Deprecated. Please use Metadata instead. +triggered Deprecated: will be removed in v1.5. Please use Metadata +instead.

@@ -3099,7 +3100,8 @@ will be JSON

CredentialsFile is the file that contains credentials to authenticate -for GCP Deprecated, use CredentialSecret instead +for GCP Deprecated: will be removed in v1.5, use CredentialSecret +instead

diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index e6280eeb72..5ea12f41d1 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -199,7 +199,7 @@ "type": "object", "properties": { "caCertPath": { - "description": "DeprecatedCACertPath refers the file path that contains the CA cert. Deprecated: use CACertSecret instead", + "description": "DeprecatedCACertPath refers the file path that contains the CA cert. Deprecated: will be removed in v1.5, use CACertSecret instead", "type": "string" }, "caCertSecret": { @@ -207,7 +207,7 @@ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" }, "clientCertPath": { - "description": "DeprecatedClientCertPath refers the file path that contains client cert. Deprecated: use ClientCertSecret instead", + "description": "DeprecatedClientCertPath refers the file path that contains client cert. Deprecated: will be removed in v1.5, use ClientCertSecret instead", "type": "string" }, "clientCertSecret": { @@ -215,7 +215,7 @@ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" }, "clientKeyPath": { - "description": "DeprecatedClientKeyPath refers the file path that contains client key. Deprecated: use ClientKeySecret instead", + "description": "DeprecatedClientKeyPath refers the file path that contains client key. Deprecated: will be removed in v1.5, use ClientKeySecret instead", "type": "string" }, "clientKeySecret": { @@ -678,7 +678,7 @@ "type": "string" }, "userPayload": { - "description": "UserPayload will be sent to sensor as extra data once the event is triggered Deprecated. Please use Metadata instead.", + "description": "UserPayload will be sent to sensor as extra data once the event is triggered Deprecated: will be removed in v1.5. Please use Metadata instead.", "type": "string", "format": "byte" } @@ -1528,7 +1528,7 @@ "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" }, "credentialsFile": { - "description": "CredentialsFile is the file that contains credentials to authenticate for GCP Deprecated, use CredentialSecret instead", + "description": "CredentialsFile is the file that contains credentials to authenticate for GCP Deprecated: will be removed in v1.5, use CredentialSecret instead", "type": "string" }, "deleteSubscriptionOnFinish": { @@ -2268,7 +2268,7 @@ ], "properties": { "certFilePath": { - "description": "DeprecatedCertFilePath is path to the cert file within sensor for secure connection between sensor and custom trigger gRPC server. DEPRECATED: use CertSecret instead", + "description": "DeprecatedCertFilePath is path to the cert file within sensor for secure connection between sensor and custom trigger gRPC server. Deprecated: will be removed in v1.5, use CertSecret instead", "type": "string" }, "certSecret": { @@ -2509,7 +2509,7 @@ "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.GitRemoteConfig" }, "sshKeyPath": { - "description": "DeprecatedSSHKeyPath is path to your ssh key path. Use this if you don't want to provide username and password. ssh key path must be mounted in sensor pod. DEPRECATED: use SSHKeySecret instead.", + "description": "DeprecatedSSHKeyPath is path to your ssh key path. Use this if you don't want to provide username and password. ssh key path must be mounted in sensor pod. Deprecated: will be removed in v1.5, use SSHKeySecret instead.", "type": "string" }, "sshKeySecret": { @@ -2848,7 +2848,7 @@ ], "properties": { "circuit": { - "description": "Circuit is a boolean expression of dependency groups DEPRECATED: Use Switch in triggers instead.", + "description": "Circuit is a boolean expression of dependency groups Deprecated: will be removed in v1.5, use Switch in triggers instead.", "type": "string" }, "dependencies": { @@ -3158,7 +3158,7 @@ } }, "io.argoproj.sensor.v1alpha1.TriggerSwitch": { - "description": "TriggerSwitch describes condition which must be satisfied in order to execute a trigger. Depending upon condition type, status of dependency groups is used to evaluate the result. DEPRECATED", + "description": "TriggerSwitch describes condition which must be satisfied in order to execute a trigger. Depending upon condition type, status of dependency groups is used to evaluate the result. Deprecated: will be removed in v1.5", "type": "object", "properties": { "all": { @@ -3233,7 +3233,7 @@ "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.SlackTrigger" }, "switch": { - "description": "DeprecatedSwitch is the condition to execute the trigger. DEPRECATED: USE conditions instead", + "description": "DeprecatedSwitch is the condition to execute the trigger. Deprecated: will be removed in v1.5, use conditions instead", "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerSwitch" } } diff --git a/api/sensor.html b/api/sensor.html index a0cabcbdfd..bb537f4d59 100644 --- a/api/sensor.html +++ b/api/sensor.html @@ -411,7 +411,7 @@

CustomTrigger

DeprecatedCertFilePath is path to the cert file within sensor for secure connection between sensor and custom trigger gRPC server. -DEPRECATED: use CertSecret instead

+Deprecated: will be removed in v1.5, use CertSecret instead

@@ -964,7 +964,7 @@

GitArtifact (Optional)

DeprecatedSSHKeyPath is path to your ssh key path. Use this if you don’t want to provide username and password. ssh key path must be mounted in sensor pod. -DEPRECATED: use SSHKeySecret instead.

+Deprecated: will be removed in v1.5, use SSHKeySecret instead.

@@ -1731,7 +1731,7 @@

Sensor

Circuit is a boolean expression of dependency groups -DEPRECATED: Use Switch in triggers instead.

+Deprecated: will be removed in v1.5, use Switch in triggers instead.

@@ -1854,7 +1854,7 @@

SensorSpec

Circuit is a boolean expression of dependency groups -DEPRECATED: Use Switch in triggers instead.

+Deprecated: will be removed in v1.5, use Switch in triggers instead.

@@ -2619,7 +2619,7 @@

TriggerSwitch

TriggerSwitch describes condition which must be satisfied in order to execute a trigger. Depending upon condition type, status of dependency groups is used to evaluate the result. -DEPRECATED

+Deprecated: will be removed in v1.5

@@ -2844,7 +2844,7 @@

TriggerTemplate

diff --git a/api/sensor.md b/api/sensor.md index 3595669f53..e1005206fd 100644 --- a/api/sensor.md +++ b/api/sensor.md @@ -424,8 +424,8 @@ gRPC server knows how to interpret. @@ -995,7 +995,8 @@ Refer

DeprecatedSSHKeyPath is path to your ssh key path. Use this if you don’t want to provide username and password. ssh key path must be mounted in -sensor pod. DEPRECATED: use SSHKeySecret instead. +sensor pod. Deprecated: will be removed in v1.5, use SSHKeySecret +instead.

@@ -1765,8 +1766,8 @@ EventBusName references to a EventBus name. By default the value is @@ -1885,8 +1886,8 @@ EventBusName references to a EventBus name. By default the value is @@ -2709,7 +2710,8 @@ TriggerSwitch

TriggerSwitch describes condition which must be satisfied in order to execute a trigger. Depending upon condition type, status of dependency -groups is used to evaluate the result. DEPRECATED +groups is used to evaluate the result. Deprecated: will be removed in +v1.5

(Optional)

DeprecatedSwitch is the condition to execute the trigger. -DEPRECATED: USE conditions instead

+Deprecated: will be removed in v1.5, use conditions instead

DeprecatedCertFilePath is path to the cert file within sensor for secure -connection between sensor and custom trigger gRPC server. DEPRECATED: -use CertSecret instead +connection between sensor and custom trigger gRPC server. Deprecated: +will be removed in v1.5, use CertSecret instead

-Circuit is a boolean expression of dependency groups DEPRECATED: Use -Switch in triggers instead. +Circuit is a boolean expression of dependency groups Deprecated: will be +removed in v1.5, use Switch in triggers instead.

-Circuit is a boolean expression of dependency groups DEPRECATED: Use -Switch in triggers instead. +Circuit is a boolean expression of dependency groups Deprecated: will be +removed in v1.5, use Switch in triggers instead.

@@ -2927,8 +2929,8 @@ Log refers to the trigger designed to invoke log the event. diff --git a/pkg/apis/common/common.go b/pkg/apis/common/common.go index 3b135425f7..c70d734a2f 100644 --- a/pkg/apis/common/common.go +++ b/pkg/apis/common/common.go @@ -117,13 +117,13 @@ type TLSConfig struct { ClientKeySecret *corev1.SecretKeySelector `json:"clientKeySecret,omitempty" protobuf:"bytes,3,opt,name=clientKeySecret"` // DeprecatedCACertPath refers the file path that contains the CA cert. - // Deprecated: use CACertSecret instead + // Deprecated: will be removed in v1.5, use CACertSecret instead DeprecatedCACertPath string `json:"caCertPath,omitempty" protobuf:"bytes,4,opt,name=caCertPath"` // DeprecatedClientCertPath refers the file path that contains client cert. - // Deprecated: use ClientCertSecret instead + // Deprecated: will be removed in v1.5, use ClientCertSecret instead DeprecatedClientCertPath string `json:"clientCertPath,omitempty" protobuf:"bytes,5,opt,name=clientCertPath"` // DeprecatedClientKeyPath refers the file path that contains client key. - // Deprecated: use ClientKeySecret instead + // Deprecated: will be removed in v1.5, use ClientKeySecret instead DeprecatedClientKeyPath string `json:"clientKeyPath,omitempty" protobuf:"bytes,6,opt,name=clientKeyPath"` } diff --git a/pkg/apis/common/generated.proto b/pkg/apis/common/generated.proto index 2a7112f02c..fcaeed5c6a 100644 --- a/pkg/apis/common/generated.proto +++ b/pkg/apis/common/generated.proto @@ -159,15 +159,15 @@ message TLSConfig { optional k8s.io.api.core.v1.SecretKeySelector clientKeySecret = 3; // DeprecatedCACertPath refers the file path that contains the CA cert. - // Deprecated: use CACertSecret instead + // Deprecated: will be removed in v1.5, use CACertSecret instead optional string caCertPath = 4; // DeprecatedClientCertPath refers the file path that contains client cert. - // Deprecated: use ClientCertSecret instead + // Deprecated: will be removed in v1.5, use ClientCertSecret instead optional string clientCertPath = 5; // DeprecatedClientKeyPath refers the file path that contains client key. - // Deprecated: use ClientKeySecret instead + // Deprecated: will be removed in v1.5, use ClientKeySecret instead optional string clientKeyPath = 6; } diff --git a/pkg/apis/common/openapi_generated.go b/pkg/apis/common/openapi_generated.go index bc04dcafec..ecb5c2f8ee 100644 --- a/pkg/apis/common/openapi_generated.go +++ b/pkg/apis/common/openapi_generated.go @@ -431,21 +431,21 @@ func schema_argo_events_pkg_apis_common_TLSConfig(ref common.ReferenceCallback) }, "caCertPath": { SchemaProps: spec.SchemaProps{ - Description: "DeprecatedCACertPath refers the file path that contains the CA cert. Deprecated: use CACertSecret instead", + Description: "DeprecatedCACertPath refers the file path that contains the CA cert. Deprecated: will be removed in v1.5, use CACertSecret instead", Type: []string{"string"}, Format: "", }, }, "clientCertPath": { SchemaProps: spec.SchemaProps{ - Description: "DeprecatedClientCertPath refers the file path that contains client cert. Deprecated: use ClientCertSecret instead", + Description: "DeprecatedClientCertPath refers the file path that contains client cert. Deprecated: will be removed in v1.5, use ClientCertSecret instead", Type: []string{"string"}, Format: "", }, }, "clientKeyPath": { SchemaProps: spec.SchemaProps{ - Description: "DeprecatedClientKeyPath refers the file path that contains client key. Deprecated: use ClientKeySecret instead", + Description: "DeprecatedClientKeyPath refers the file path that contains client key. Deprecated: will be removed in v1.5, use ClientKeySecret instead", Type: []string{"string"}, Format: "", }, diff --git a/pkg/apis/eventsource/v1alpha1/generated.proto b/pkg/apis/eventsource/v1alpha1/generated.proto index 3897f8ba65..04de4468ac 100644 --- a/pkg/apis/eventsource/v1alpha1/generated.proto +++ b/pkg/apis/eventsource/v1alpha1/generated.proto @@ -204,7 +204,7 @@ message CalendarEventSource { // UserPayload will be sent to sensor as extra data once the event is triggered // +optional - // Deprecated. Please use Metadata instead. + // Deprecated: will be removed in v1.5. Please use Metadata instead. optional bytes userPayload = 5; // Metadata holds the user defined metadata which will passed along the event payload. @@ -767,7 +767,7 @@ message PubSubEventSource { optional bool jsonBody = 7; // CredentialsFile is the file that contains credentials to authenticate for GCP - // Deprecated, use CredentialSecret instead + // Deprecated: will be removed in v1.5, use CredentialSecret instead optional string credentialsFile = 8; // Metadata holds the user defined metadata which will passed along the event payload. diff --git a/pkg/apis/eventsource/v1alpha1/openapi_generated.go b/pkg/apis/eventsource/v1alpha1/openapi_generated.go index f481681df1..773531746c 100644 --- a/pkg/apis/eventsource/v1alpha1/openapi_generated.go +++ b/pkg/apis/eventsource/v1alpha1/openapi_generated.go @@ -433,7 +433,7 @@ func schema_pkg_apis_eventsource_v1alpha1_CalendarEventSource(ref common.Referen }, "userPayload": { SchemaProps: spec.SchemaProps{ - Description: "UserPayload will be sent to sensor as extra data once the event is triggered Deprecated. Please use Metadata instead.", + Description: "UserPayload will be sent to sensor as extra data once the event is triggered Deprecated: will be removed in v1.5. Please use Metadata instead.", Type: []string{"string"}, Format: "byte", }, @@ -2016,7 +2016,7 @@ func schema_pkg_apis_eventsource_v1alpha1_PubSubEventSource(ref common.Reference }, "credentialsFile": { SchemaProps: spec.SchemaProps{ - Description: "CredentialsFile is the file that contains credentials to authenticate for GCP Deprecated, use CredentialSecret instead", + Description: "CredentialsFile is the file that contains credentials to authenticate for GCP Deprecated: will be removed in v1.5, use CredentialSecret instead", Type: []string{"string"}, Format: "", }, diff --git a/pkg/apis/eventsource/v1alpha1/types.go b/pkg/apis/eventsource/v1alpha1/types.go index d2ae3da757..fdc4743c40 100644 --- a/pkg/apis/eventsource/v1alpha1/types.go +++ b/pkg/apis/eventsource/v1alpha1/types.go @@ -204,7 +204,7 @@ type CalendarEventSource struct { Timezone string `json:"timezone,omitempty" protobuf:"bytes,4,opt,name=timezone"` // UserPayload will be sent to sensor as extra data once the event is triggered // +optional - // Deprecated. Please use Metadata instead. + // Deprecated: will be removed in v1.5. Please use Metadata instead. UserPayload json.RawMessage `json:"userPayload,omitempty" protobuf:"bytes,5,opt,name=userPayload,casttype=encoding/json.RawMessage"` // Metadata holds the user defined metadata which will passed along the event payload. // +optional @@ -625,7 +625,7 @@ type PubSubEventSource struct { // +optional JSONBody bool `json:"jsonBody,omitempty" protobuf:"varint,7,opt,name=jsonBody"` // CredentialsFile is the file that contains credentials to authenticate for GCP - // Deprecated, use CredentialSecret instead + // Deprecated: will be removed in v1.5, use CredentialSecret instead DeprecatedCredentialsFile string `json:"credentialsFile" protobuf:"bytes,8,opt,name=credentialsFile"` // Metadata holds the user defined metadata which will passed along the event payload. // +optional diff --git a/pkg/apis/sensor/v1alpha1/generated.proto b/pkg/apis/sensor/v1alpha1/generated.proto index 5ed58ea899..14515f23b5 100644 --- a/pkg/apis/sensor/v1alpha1/generated.proto +++ b/pkg/apis/sensor/v1alpha1/generated.proto @@ -111,7 +111,7 @@ message CustomTrigger { repeated TriggerParameter payload = 7; // DeprecatedCertFilePath is path to the cert file within sensor for secure connection between sensor and custom trigger gRPC server. - // DEPRECATED: use CertSecret instead + // Deprecated: will be removed in v1.5, use CertSecret instead optional string certFilePath = 8; } @@ -254,7 +254,7 @@ message GitArtifact { // DeprecatedSSHKeyPath is path to your ssh key path. Use this if you don't want to provide username and password. // ssh key path must be mounted in sensor pod. - // DEPRECATED: use SSHKeySecret instead. + // Deprecated: will be removed in v1.5, use SSHKeySecret instead. // +optional optional string sshKeyPath = 10; } @@ -466,7 +466,7 @@ message SensorSpec { optional string eventBusName = 6; // Circuit is a boolean expression of dependency groups - // DEPRECATED: Use Switch in triggers instead. + // Deprecated: will be removed in v1.5, use Switch in triggers instead. optional string circuit = 7; } @@ -694,7 +694,7 @@ message TriggerPolicy { // TriggerSwitch describes condition which must be satisfied in order to execute a trigger. // Depending upon condition type, status of dependency groups is used to evaluate the result. -// DEPRECATED +// Deprecated: will be removed in v1.5 message TriggerSwitch { // Any acts as a OR operator between dependencies repeated string any = 1; @@ -754,7 +754,7 @@ message TriggerTemplate { optional LogTrigger log = 13; // DeprecatedSwitch is the condition to execute the trigger. - // DEPRECATED: USE conditions instead + // Deprecated: will be removed in v1.5, use conditions instead // +optional optional TriggerSwitch switch = 12; } diff --git a/pkg/apis/sensor/v1alpha1/openapi_generated.go b/pkg/apis/sensor/v1alpha1/openapi_generated.go index df4b31d57f..2dd0e7b1ae 100644 --- a/pkg/apis/sensor/v1alpha1/openapi_generated.go +++ b/pkg/apis/sensor/v1alpha1/openapi_generated.go @@ -326,7 +326,7 @@ func schema_pkg_apis_sensor_v1alpha1_CustomTrigger(ref common.ReferenceCallback) }, "certFilePath": { SchemaProps: spec.SchemaProps{ - Description: "DeprecatedCertFilePath is path to the cert file within sensor for secure connection between sensor and custom trigger gRPC server. DEPRECATED: use CertSecret instead", + Description: "DeprecatedCertFilePath is path to the cert file within sensor for secure connection between sensor and custom trigger gRPC server. Deprecated: will be removed in v1.5, use CertSecret instead", Type: []string{"string"}, Format: "", }, @@ -686,7 +686,7 @@ func schema_pkg_apis_sensor_v1alpha1_GitArtifact(ref common.ReferenceCallback) c }, "sshKeyPath": { SchemaProps: spec.SchemaProps{ - Description: "DeprecatedSSHKeyPath is path to your ssh key path. Use this if you don't want to provide username and password. ssh key path must be mounted in sensor pod. DEPRECATED: use SSHKeySecret instead.", + Description: "DeprecatedSSHKeyPath is path to your ssh key path. Use this if you don't want to provide username and password. ssh key path must be mounted in sensor pod. Deprecated: will be removed in v1.5, use SSHKeySecret instead.", Type: []string{"string"}, Format: "", }, @@ -1307,7 +1307,7 @@ func schema_pkg_apis_sensor_v1alpha1_SensorSpec(ref common.ReferenceCallback) co }, "circuit": { SchemaProps: spec.SchemaProps{ - Description: "Circuit is a boolean expression of dependency groups DEPRECATED: Use Switch in triggers instead.", + Description: "Circuit is a boolean expression of dependency groups Deprecated: will be removed in v1.5, use Switch in triggers instead.", Type: []string{"string"}, Format: "", }, @@ -1819,7 +1819,7 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerSwitch(ref common.ReferenceCallback) return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TriggerSwitch describes condition which must be satisfied in order to execute a trigger. Depending upon condition type, status of dependency groups is used to evaluate the result. DEPRECATED", + Description: "TriggerSwitch describes condition which must be satisfied in order to execute a trigger. Depending upon condition type, status of dependency groups is used to evaluate the result. Deprecated: will be removed in v1.5", Type: []string{"object"}, Properties: map[string]spec.Schema{ "any": { @@ -1939,7 +1939,7 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerTemplate(ref common.ReferenceCallbac }, "switch": { SchemaProps: spec.SchemaProps{ - Description: "DeprecatedSwitch is the condition to execute the trigger. DEPRECATED: USE conditions instead", + Description: "DeprecatedSwitch is the condition to execute the trigger. Deprecated: will be removed in v1.5, use conditions instead", Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerSwitch"), }, }, diff --git a/pkg/apis/sensor/v1alpha1/types.go b/pkg/apis/sensor/v1alpha1/types.go index 1594be17ea..19663c43dc 100644 --- a/pkg/apis/sensor/v1alpha1/types.go +++ b/pkg/apis/sensor/v1alpha1/types.go @@ -109,7 +109,7 @@ type SensorSpec struct { // EventBusName references to a EventBus name. By default the value is "default" EventBusName string `json:"eventBusName,omitempty" protobuf:"bytes,6,opt,name=eventBusName"` // Circuit is a boolean expression of dependency groups - // DEPRECATED: Use Switch in triggers instead. + // Deprecated: will be removed in v1.5, use Switch in triggers instead. DeprecatedCircuit string `json:"circuit,omitempty" protobuf:"bytes,7,opt,name=circuit"` } @@ -305,14 +305,14 @@ type TriggerTemplate struct { // +optional Log *LogTrigger `json:"log,omitempty" protobuf:"bytes,13,opt,name=log"` // DeprecatedSwitch is the condition to execute the trigger. - // DEPRECATED: USE conditions instead + // Deprecated: will be removed in v1.5, use conditions instead // +optional DeprecatedSwitch *TriggerSwitch `json:"switch,omitempty" protobuf:"bytes,12,opt,name=switch"` } // TriggerSwitch describes condition which must be satisfied in order to execute a trigger. // Depending upon condition type, status of dependency groups is used to evaluate the result. -// DEPRECATED +// Deprecated: will be removed in v1.5 type TriggerSwitch struct { // Any acts as a OR operator between dependencies @@ -497,7 +497,7 @@ type CustomTrigger struct { Payload []TriggerParameter `json:"payload" protobuf:"bytes,7,rep,name=payload"` // DeprecatedCertFilePath is path to the cert file within sensor for secure connection between sensor and custom trigger gRPC server. - // DEPRECATED: use CertSecret instead + // Deprecated: will be removed in v1.5, use CertSecret instead DeprecatedCertFilePath string `json:"certFilePath,omitempty" protobuf:"bytes,8,opt,name=certFilePath"` } @@ -763,7 +763,7 @@ type GitArtifact struct { Remote *GitRemoteConfig `json:"remote,omitempty" protobuf:"bytes,9,opt,name=remote"` // DeprecatedSSHKeyPath is path to your ssh key path. Use this if you don't want to provide username and password. // ssh key path must be mounted in sensor pod. - // DEPRECATED: use SSHKeySecret instead. + // Deprecated: will be removed in v1.5, use SSHKeySecret instead. // +optional DeprecatedSSHKeyPath string `json:"sshKeyPath,omitempty" protobuf:"bytes,10,opt,name=sshKeyPath"` }
(Optional)

-DeprecatedSwitch is the condition to execute the trigger. DEPRECATED: -USE conditions instead +DeprecatedSwitch is the condition to execute the trigger. Deprecated: +will be removed in v1.5, use conditions instead