-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(mc): Add function to override logger for sensitive outputs (#1286)
# Description * add fetchSensitiveOutputs function to override default logger to prevent sensitive outputs from being logged * add checkRetinaPodsRunning function to check if Retina pods are running * add make target for formatting both OpenTofu and go code * modify make test target to run test ONLY for TestRetinaKindIntegration till we get cloud creds * refactor tests to use new func ## Related Issue #1267 ## Checklist - [x] I have read the [contributing documentation](https://retina.sh/docs/contributing). - [x] I signed and signed-off the commits (`git commit -S -s ...`). See [this documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification) on signing commits. - [x] I have correctly attributed the author(s) of the code. - [x] I have tested the changes locally. - [x] I have followed the project's style guidelines. - [x] I have updated the documentation, if necessary. - [x] I have added tests, if applicable. ## Screenshots (if applicable) or Testing Completed ![image](https://github.com/user-attachments/assets/fd711fa8-4064-4c57-87cc-2a7acc088f6f) ## Additional Notes Add any additional notes or context about the pull request here. --- Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more information on how to contribute to this project.
- Loading branch information
Showing
11 changed files
with
152 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
output "host" { | ||
value = module.aks.host | ||
sensitive = true | ||
} | ||
|
||
output "client_certificate" { | ||
value = module.aks.client_certificate | ||
sensitive = true | ||
} | ||
|
||
output "client_key" { | ||
value = module.aks.client_key | ||
sensitive = true | ||
} | ||
|
||
output "cluster_ca_certificate" { | ||
value = module.aks.cluster_ca_certificate | ||
sensitive = true | ||
} |
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,19 @@ | ||
output "host" { | ||
value = module.aks.host | ||
sensitive = true | ||
} | ||
|
||
output "client_certificate" { | ||
value = module.aks.client_certificate | ||
sensitive = true | ||
} | ||
|
||
output "client_key" { | ||
value = module.aks.client_key | ||
sensitive = true | ||
} | ||
|
||
output "cluster_ca_certificate" { | ||
value = module.aks.cluster_ca_certificate | ||
sensitive = true | ||
} |
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,24 +1,24 @@ | ||
output "kubeconfig" { | ||
value = kind_cluster.kind.kubeconfig | ||
value = kind_cluster.kind.kubeconfig | ||
sensitive = true | ||
} | ||
|
||
output "host" { | ||
value = kind_cluster.kind.endpoint | ||
value = kind_cluster.kind.endpoint | ||
sensitive = true | ||
} | ||
|
||
output "client_certificate" { | ||
value = kind_cluster.kind.client_certificate | ||
value = kind_cluster.kind.client_certificate | ||
sensitive = true | ||
} | ||
|
||
output "client_key" { | ||
value = kind_cluster.kind.client_key | ||
value = kind_cluster.kind.client_key | ||
sensitive = true | ||
} | ||
|
||
output "cluster_ca_certificate" { | ||
value = kind_cluster.kind.cluster_ca_certificate | ||
value = kind_cluster.kind.cluster_ca_certificate | ||
sensitive = true | ||
} |
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