Skip to content

Fix timeout option of Functionbeat#16287

Merged
kvch merged 3 commits intoelastic:masterfrom
kvch:fix-functionbeat-timeout-option
Feb 25, 2020
Merged

Fix timeout option of Functionbeat#16287
kvch merged 3 commits intoelastic:masterfrom
kvch:fix-functionbeat-timeout-option

Conversation

@kvch
Copy link
Copy Markdown
Contributor

@kvch kvch commented Feb 12, 2020

What does this PR do?

This PR changes the type of timeout option of GCP functions to string from time.Duration.

Why is it important?

The option was parsed as time.Duration and then converted to string when creating the payload to upload a function. However, the format of the converted value was not accepted by GCP. This prevented users from setting the timeout from the manager.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works

How to test this PR locally

Set the timeout option of a GCP function and try to deploy it.

Related issues

Closes #16282

@kvch kvch added needs_backport PR is waiting to be backported to other branches. [zube]: In Review Team:Services (Deprecated) Label for the former Integrations-Services team labels Feb 12, 2020
@kvch
Copy link
Copy Markdown
Contributor Author

kvch commented Feb 25, 2020

Failing tests are unrelated.

@kvch kvch merged commit 6cc308d into elastic:master Feb 25, 2020
@kvch kvch removed the needs_backport PR is waiting to be backported to other branches. label Feb 25, 2020
kvch added a commit to kvch/beats that referenced this pull request Feb 25, 2020
## What does this PR do?

This PR changes the type of `timeout` option of GCP functions to `string` from `time.Duration`.

## Why is it important?

The option was parsed as `time.Duration` and then converted to `string` when creating the payload to upload a function. However, the format of the converted value was not accepted by GCP. This prevented users from setting the timeout from the manager.
(cherry picked from commit 6cc308d)
@kvch kvch added the v7.7.0 label Feb 25, 2020
kvch added a commit to kvch/beats that referenced this pull request Feb 25, 2020
## What does this PR do?

This PR changes the type of `timeout` option of GCP functions to `string` from `time.Duration`.

## Why is it important?

The option was parsed as `time.Duration` and then converted to `string` when creating the payload to upload a function. However, the format of the converted value was not accepted by GCP. This prevented users from setting the timeout from the manager.
(cherry picked from commit 6cc308d)
@kvch kvch added the v7.6.1 label Feb 25, 2020
kvch added a commit that referenced this pull request Feb 25, 2020
## What does this PR do?

This PR changes the type of `timeout` option of GCP functions to `string` from `time.Duration`.

## Why is it important?

The option was parsed as `time.Duration` and then converted to `string` when creating the payload to upload a function. However, the format of the converted value was not accepted by GCP. This prevented users from setting the timeout from the manager.
(cherry picked from commit 6cc308d)
kvch added a commit that referenced this pull request Feb 25, 2020
## What does this PR do?

This PR changes the type of `timeout` option of GCP functions to `string` from `time.Duration`.

## Why is it important?

The option was parsed as `time.Duration` and then converted to `string` when creating the payload to upload a function. However, the format of the converted value was not accepted by GCP. This prevented users from setting the timeout from the manager.
(cherry picked from commit 6cc308d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team:Services (Deprecated) Label for the former Integrations-Services team v7.6.1 v7.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot deploy function to GCP after changing the timeout

3 participants