-
Notifications
You must be signed in to change notification settings - Fork 11
feat(cos-dev): Service mesh #343
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
Draft
MichaelThamm
wants to merge
28
commits into
main
Choose a base branch
from
feat/service-mesh-cos-dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
4669d7b
feat: COS-Dev mesh
MichaelThamm 05f3fbd
Merge branch 'main' into feat/service-mesh-cos-dev
MichaelThamm 555e7e3
overhaul for mesh
MichaelThamm 061d98d
chore
MichaelThamm 7bada97
chore
MichaelThamm 18b2641
chore
MichaelThamm 02ac17a
feat: Generic COS assertions function (#351)
MichaelThamm fecf0ee
chore
MichaelThamm 0c2bdf4
Merge branch 'main' into feat/service-mesh-cos-dev
MichaelThamm fccec76
chore
MichaelThamm d91bee9
chore
MichaelThamm bfffa49
refactor: Traefik and SSC are conditional
MichaelThamm 567dfce
chore
MichaelThamm f5120ab
chore
MichaelThamm 928012b
Merge branch 'refactor/housekeeping' into feat/service-mesh-cos-dev
MichaelThamm 5e1c5c4
chore
MichaelThamm 2be7775
chore
MichaelThamm f91048b
chore
MichaelThamm 34b7a4f
chore
MichaelThamm 04254ba
chore
MichaelThamm 1b046e2
chore
MichaelThamm 75a71a8
Merge branch 'refactor/housekeeping' into feat/service-mesh-cos-dev
MichaelThamm 9462ac2
chore
MichaelThamm 0e84219
chore
MichaelThamm 4ed8950
chore
MichaelThamm 7da4a86
Merge branch 'main' into feat/service-mesh-cos-dev
MichaelThamm 5900945
Merge branch 'main' into feat/service-mesh-cos-dev
MichaelThamm 8ea99f1
Merge branch 'main' into feat/service-mesh-cos-dev
MichaelThamm 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,64 @@ | ||
| mock_provider "juju" {} | ||
|
|
||
| variables { model_uuid = "00000000-0000-0000-0000-000000000000" } | ||
|
|
||
| # --- mesh and internal_tls disabled: no validation error --- | ||
|
|
||
| run "mesh_and_internal_tls_disabled" { | ||
| command = plan | ||
|
|
||
| variables { | ||
| service_mesh = false | ||
| internal_tls = false | ||
| } | ||
| } | ||
|
|
||
| # --- mesh and internal_tls enabled: validation error --- | ||
|
|
||
| run "mesh_and_internal_tls_enabled_fails" { | ||
| command = plan | ||
|
|
||
| variables { | ||
| service_mesh = true | ||
| internal_tls = true | ||
| } | ||
|
|
||
| expect_failures = [var.service_mesh] | ||
| } | ||
|
|
||
| # --- default: mesh disabled - no istio beacon --- | ||
|
|
||
| run "mesh_disabled" { | ||
| command = plan | ||
|
|
||
| assert { | ||
| condition = length(module.istio_beacon) == 0 | ||
| error_message = "Expected no istio_beacon module when the mesh is disabled" | ||
| } | ||
|
|
||
| assert { | ||
| condition = length(juju_integration.istio_beacon) == 0 | ||
| error_message = "Expected no istio_beacon integrations when the mesh is disabled" | ||
| } | ||
| } | ||
|
|
||
| # --- mesh enabled: ingress via istio --- | ||
|
|
||
| run "service_mesh" { | ||
| command = plan | ||
|
|
||
| variables { | ||
| service_mesh = true | ||
| internal_tls = false | ||
| } | ||
|
|
||
| assert { | ||
| condition = length(module.istio_beacon) == 1 | ||
| error_message = "Expected istio_beacon module when the mesh is enabled" | ||
| } | ||
|
|
||
| assert { | ||
| condition = length(juju_integration.istio_beacon) == 7 | ||
| error_message = "Unexpected istio_beacon integrations when the mesh is enabled" | ||
| } | ||
| } |
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.
We need to feature resources here like in this PR for example:
This requires the beacon and istio modules to feature this as an input as well, e.g.: