Skip to content

[CLI-1559, CLI-1849] Add TTL to KafkaClusterConfig struct#1336

Merged
Brian Strauch (brianstrauch) merged 1 commit intomainfrom
CLI-1849
Jun 30, 2022
Merged

[CLI-1559, CLI-1849] Add TTL to KafkaClusterConfig struct#1336
Brian Strauch (brianstrauch) merged 1 commit intomainfrom
CLI-1849

Conversation

@brianstrauch

Checklist

  1. [CRUCIAL] Is the change for CP or CCloud functionalities that are already live in prod?
    • yes: ok

What

In https://confluent.slack.com/archives/C03L12X8C8M, the customer's Kafka API endpoint was updated, but since the CLI config never refreshes it, the customer's client didn't receive the new endpoint. In this PR, we add a 1 week TTL so that API endpoints are refreshed every week, so they can be updated again in the future without needing the customer to delete their config file. This gives backend teams 1 week to support both endpoints as they are transitioned.

References

https://confluentinc.atlassian.net/browse/CLI-1849

Test & Review

Added unit tests for TTL update logic

@brianstrauch Brian Strauch (brianstrauch) requested a review from a team as a code owner June 25, 2022 00:13
@brianstrauch Brian Strauch (brianstrauch) changed the title [CLI-1849] Add TTL to KafkaClusterConfig struct [CLI-1559, CLI-1849] Add TTL to KafkaClusterConfig struct Jun 27, 2022
Copy link
Contributor

@DABH David Hyde (DABH) left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants