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

Add expiration seconds to binding params #1189

Conversation

KsaweryZietara
Copy link
Contributor

@KsaweryZietara KsaweryZietara commented Sep 25, 2024

Description

Changes proposed in this pull request:

  • use optional expiration_seconds parameter if specified, otherwise use value from KEB config,
  • update kyma binding docs.

Related issue(s)
See also #284

@KsaweryZietara KsaweryZietara added the kind/enhancement Categorizes issue or PR as related to modifying or improving an existing feature label Sep 25, 2024
@KsaweryZietara KsaweryZietara self-assigned this Sep 25, 2024
@KsaweryZietara KsaweryZietara requested a review from a team as a code owner September 25, 2024 12:30
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 25, 2024
Copy link

Add one of following labels

- kind/feature -> Use it when you want to submit a new feature

- kind/enhancement -> Use it when you modify or improve an existing feature

- kind/bug -> Use it when you fix a bug

@KsaweryZietara KsaweryZietara added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 25, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label Sep 25, 2024
Copy link
Member

@ralikio ralikio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check review remarks.

@kyma-bot kyma-bot removed the lgtm Looks good to me! label Sep 25, 2024
require.NoError(t, err)
t.Logf("binding: %v", binding.Credentials)
assert.Equal(t, 10000*time.Second, duration)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Magic value. Could we use const preparing request and testing assertion?


duration, err := getTokenDuration(t, binding.Credentials)
require.NoError(t, err)
assert.Equal(t, 900*time.Second, duration)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Magic value again. As in the previous comment.

@KsaweryZietara KsaweryZietara changed the title Add token expiration to binding params Add expiration seconds to binding params Sep 26, 2024
@KsaweryZietara KsaweryZietara force-pushed the add-token-expiration-to-binding-params branch 3 times, most recently from a5a06f1 to 1177215 Compare September 26, 2024 12:28
@KsaweryZietara KsaweryZietara requested a review from a team as a code owner September 26, 2024 12:38
@kyma-bot kyma-bot added the area/documentation Issues or PRs related to documentation label Sep 26, 2024
IwonaLanger
IwonaLanger previously approved these changes Sep 26, 2024
@kyma-bot kyma-bot removed the lgtm Looks good to me! label Sep 26, 2024
@KsaweryZietara KsaweryZietara force-pushed the add-token-expiration-to-binding-params branch 2 times, most recently from e95a757 to 3fd7c40 Compare September 27, 2024 09:57
@KsaweryZietara KsaweryZietara force-pushed the add-token-expiration-to-binding-params branch from 3fd7c40 to b2ba57d Compare September 30, 2024 05:59
@kyma-gopher-bot kyma-gopher-bot enabled auto-merge (squash) September 30, 2024 09:39
@kyma-bot kyma-bot added the lgtm Looks good to me! label Oct 2, 2024
@KsaweryZietara KsaweryZietara removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Issues or PRs related to documentation cla: yes Indicates the PR's author has signed the CLA. kind/enhancement Categorizes issue or PR as related to modifying or improving an existing feature lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants