generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 7
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
[DPE-5637, DPE-5276] Implement expose-external config option with values false (clusterip), nodeport and loadbalancer #328
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
5931e15
WIP: Implement expose-external config option with values false (clust…
shayancanonical 7cac8af
Manually tested expose-external config + some code cleanup
shayancanonical c1459f2
Fix some issues + implement integration tests for expose-external
shayancanonical f471813
Add missing config file
shayancanonical 902509f
Remove redundant action return code check
shayancanonical d115742
Add workaround for juju client errors when patching svc to loadbalanc…
shayancanonical 681a5c1
Merge branch 'main' into feature/expose-external
shayancanonical b60e5e3
Standardize abstract_charm.py with the VM charm
shayancanonical 0c048db
Update outdated tracing charm libs
shayancanonical ffc728a
Address PR feedback
shayancanonical d76b325
Merge branch 'main' into feature/expose-external
shayancanonical ee7bccb
Avoid waiting for service and let further events update endpoints onc…
shayancanonical ab49776
Appropriately set app status when invalid expose-external value
shayancanonical f938351
Address PR feedback + update outdate charm tracing lib
shayancanonical 7254856
Add check for None when declaring variable
shayancanonical 4d33cbb
Update tests to retry connections to endpoints after it fails
shayancanonical c6f6869
Test against EKS + make updates to be complaint with DA122
shayancanonical e7a9bf1
Merge branch 'main' into feature/expose-external
shayancanonical 4006177
Adjust scenario to include new router peer relation
shayancanonical 887317d
Fix lint warnings
shayancanonical b9575c3
Revert charm tracing lib to libpatch 2
shayancanonical c5df314
Update TLS SANs to include DNS for reaching the unit directly
shayancanonical 369f8b6
Add K8s service SANs (the one created by juju)
shayancanonical fb65030
Address PR feedback
shayancanonical 66138e3
Update data platform workflows to v23.1.0
shayancanonical File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
options: | ||
expose-external: | ||
description: | | ||
String to determine how to expose the MySQLRouter externally from the Kubernetes cluster. | ||
Possible values: 'false', 'nodeport', 'loadbalancer' | ||
type: string | ||
default: "false" | ||
|
||
loadbalancer-extra-annotations: | ||
description: | | ||
A JSON string representing extra annotations for the Kubernetes service created | ||
and managed by the charm. | ||
type: string | ||
default: "{}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: default
false
may implytrue
is valid value. Change to something else?no
none
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paulomach any ideas for alternatives?
expose-external: none
?expose-external: clusterip
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
additionally, the possible values are
false
andnodeport
in kafka-k8s. it may not be a good idea to introduce inconsistenciesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh bummer, ok maybe for another time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly, it seems it was a Marc nitpick also that Mykola did not responded to in the original kafka spec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋🏻 I subscribe Paulo's comment here.
I understand we are "compromising" in order to have a similar interface across DP charms (i.e. kafka-k8s), but it is confusing and we all should make an effort to reduce these occurrences in the future.