-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added stern, update istio-mc examples module (#967)
* feat: added stern, update istio-mc examples module Signed-off-by: Ali <[email protected]> * chore: formatting of istio examples fix: set default install_stern value to false Signed-off-by: Ali <[email protected]> --------- Signed-off-by: Ali <[email protected]>
- Loading branch information
Showing
12 changed files
with
133 additions
and
66 deletions.
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# provider | ||
# provider | ||
api_fingerprint = "" | ||
|
||
api_private_key_path = "~/.oci/oci_rsa.pem" | ||
|
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 |
---|---|---|
|
@@ -32,6 +32,7 @@ data "cloudinit_config" "operator" { | |
"git", | ||
"jq", | ||
"python3-oci-cli", | ||
"golang", | ||
var.install_helm ? "helm" : null, | ||
var.install_istioctl ? "istio-istioctl" : null, | ||
var.install_kubectl_from_repo ? "kubectl": null, | ||
|
@@ -193,6 +194,23 @@ data "cloudinit_config" "operator" { | |
} | ||
} | ||
|
||
# stern installation | ||
dynamic "part" { | ||
for_each = var.install_kubectx ? [1] : [] | ||
content { | ||
content_type = "text/cloud-config" | ||
content = jsonencode({ | ||
runcmd = [ | ||
"go install github.com/stern/[email protected]", | ||
"mv $HOME/go/bin/stern /usr/local/bin/", | ||
"ln -s /usr/local/bin/stern /usr/bin/stern" | ||
] | ||
}) | ||
filename = "20-stern.yml" | ||
merge_type = local.default_cloud_init_merge_type | ||
} | ||
} | ||
|
||
# Write user bashrc to filesystem | ||
part { | ||
content_type = "text/cloud-config" | ||
|
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