Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix timeout option of Functionbeat #16287

Merged
merged 3 commits into from
Feb 25, 2020

Conversation

kvch
Copy link
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
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