-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Datadog to install with flux (#972)
* Setup datadog with flux * use empty string in list * remove default value since value cant be empty * fix validation, docs and changelog * Switch to use 2 kustomizations and dependsOn for CRD installs * Add CSI and config * More config for CSI to work * Add datadog UAI config * adjust tenant id * Remove vars and use new CSI secret * Add dummypod for secret mounting, fix kv variable, and some general improvements * fix closing bracket * remove unused variable * fix vars name * Fix vars * Fix namespace name for datadogagent * Add namespace to dummy secret-mount deployment * add label for aadpodidentity * Add label to pod template * Fix so agent work * Switch name of secret * Fix agent config * Try to make it work in AWS * Add more config * Revert "Add more config" This reverts commit 8a27f73. * Revert "Try to make it work in AWS" This reverts commit b6f5770. * Revert "Revert "Try to make it work in AWS"" This reverts commit ecd65fb. * Revert "Revert "Revert "Try to make it work in AWS""" This reverts commit 8a71212. * Fix for EKS * refactor to use if cloud_provider * Update IAM for datadog * Update IAM for datadog * fix output * Try again without IAM/IRSA config * Revert "Try again without IAM/IRSA config" This reverts commit e8fa1c4. * more fixes * Fix SA name * Fix SA role_arn * Remove array from secretprovider in AWS * make docs and remove unused vars * Bump dd-operator to 0.9.2 * Bump git-provider to 0.0.2 * docs * Update flux crd * Rename datadog-agent file
- Loading branch information
Showing
29 changed files
with
484 additions
and
233 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
resource "azurerm_user_assigned_identity" "datadog" { | ||
resource_group_name = data.azurerm_resource_group.this.name | ||
location = data.azurerm_resource_group.this.location | ||
name = "uai-${var.environment}-${var.location_short}-${var.name}-datadog" | ||
} | ||
|
||
resource "azurerm_role_assignment" "datadog" { | ||
scope = azurerm_user_assigned_identity.datadog.id | ||
role_definition_name = "Managed Identity Operator" | ||
principal_id = var.aks_managed_identity | ||
} | ||
|
||
resource "azurerm_key_vault_access_policy" "datadog" { | ||
key_vault_id = data.azurerm_key_vault.core.id | ||
tenant_id = data.azurerm_client_config.current.tenant_id | ||
object_id = azurerm_user_assigned_identity.datadog.principal_id | ||
key_permissions = local.key_vault_default_permissions.key_permissions | ||
secret_permissions = local.key_vault_default_permissions.secret_permissions | ||
} |
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
Oops, something went wrong.