Skip to content

Commit ab762c0

Browse files
dynatrace_k8s_credentials: added support for davisEventsIntegrationEnabled, adjusted test cases for most recent tenant version
1 parent cb58754 commit ab762c0

File tree

7 files changed

+17
-7
lines changed

7 files changed

+17
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/dtcookie/dynatrace/api/config/autotags v1.0.13
88
github.com/dtcookie/dynatrace/api/config/credentials/aws v1.0.4
99
github.com/dtcookie/dynatrace/api/config/credentials/azure v1.0.3
10-
github.com/dtcookie/dynatrace/api/config/credentials/kubernetes v1.0.5
10+
github.com/dtcookie/dynatrace/api/config/credentials/kubernetes v1.0.6
1111
github.com/dtcookie/dynatrace/api/config/customservices v1.0.9
1212
github.com/dtcookie/dynatrace/api/config/dashboards v1.0.3
1313
github.com/dtcookie/dynatrace/api/config/maintenance v1.0.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ github.com/dtcookie/dynatrace/api/config/credentials/aws v1.0.4 h1:unfIE9oP381B4
9797
github.com/dtcookie/dynatrace/api/config/credentials/aws v1.0.4/go.mod h1:cLmiZu+LjDE2pRqNAPwkM+yWnSciXXSSlgodgPPYw54=
9898
github.com/dtcookie/dynatrace/api/config/credentials/azure v1.0.3 h1:YYYonHD1mIDfotZzWXrJy/JRow0eaDBzDbt0MjyyMdY=
9999
github.com/dtcookie/dynatrace/api/config/credentials/azure v1.0.3/go.mod h1:uw9cr/zT+82xbOmvXz8iFd+Ro5Bl7wRoyag2EA3/VoY=
100-
github.com/dtcookie/dynatrace/api/config/credentials/kubernetes v1.0.5 h1:RBx9z/6gqExhgRsLglo0XAqEJpk56XB6B80kUifAtmc=
101-
github.com/dtcookie/dynatrace/api/config/credentials/kubernetes v1.0.5/go.mod h1:8o9SQmYQ3lXFXj0EDiCswmtq16KzqmJMcyv+u49axMg=
100+
github.com/dtcookie/dynatrace/api/config/credentials/kubernetes v1.0.6 h1:EPSwR79jmcJy+H06xDvUd2U9KCy3ECARUOaLj8w6dPI=
101+
github.com/dtcookie/dynatrace/api/config/credentials/kubernetes v1.0.6/go.mod h1:8o9SQmYQ3lXFXj0EDiCswmtq16KzqmJMcyv+u49axMg=
102102
github.com/dtcookie/dynatrace/api/config/customservices v1.0.9 h1:Hgyp9LW57WlGvK3FdJkp+3GHeQGdsZv3jhNsK0JlsOY=
103103
github.com/dtcookie/dynatrace/api/config/customservices v1.0.9/go.mod h1:uHqhKBL7+FQGmbWRXbLrkxNNSPOGkpLp+OuC1vhLk4w=
104104
github.com/dtcookie/dynatrace/api/config/dashboards v1.0.3 h1:rU8ulsbLxCfwkzTN8oSbNlP1C7YP5ZOnKeaXUEYddmU=

test_data/auto_tags/example_a.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"conditions": [
1717
{
1818
"key": {
19-
"attribute": "SERVICE_TOPOLOGY"
19+
"attribute": "SERVICE_TOPOLOGY",
20+
"type": "STATIC"
21+
2022
},
2123
"comparisonInfo": {
2224
"type": "SERVICE_TOPOLOGY",
@@ -27,7 +29,8 @@
2729
},
2830
{
2931
"key": {
30-
"attribute": "SERVICE_DETECTED_NAME"
32+
"attribute": "SERVICE_DETECTED_NAME",
33+
"type": "STATIC"
3134
},
3235
"comparisonInfo": {
3336
"type": "STRING",

test_data/auto_tags/example_a.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ resource "dynatrace_autotag" "#name#" {
88
}
99
key {
1010
attribute = "SERVICE_TOPOLOGY"
11+
type = "STATIC"
1112
}
1213
}
1314
conditions {
@@ -19,6 +20,7 @@ resource "dynatrace_autotag" "#name#" {
1920
}
2021
key {
2122
attribute = "SERVICE_DETECTED_NAME"
23+
type = "STATIC"
2224
}
2325
}
2426
enabled = true

test_data/credentials/azure/example_a.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ resource "dynatrace_azure_credentials" "#name#" {
44
auto_tagging = true
55
directory_id = "ABCDE"
66
label = "#name#"
7+
key = "aaaa"
78
monitor_only_tagged_entities = true
89

910
monitor_only_tag_pairs {

test_data/management_zones/example_a.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"conditions": [
1414
{
1515
"key": {
16-
"attribute": "HOST_TECHNOLOGY"
16+
"attribute": "HOST_TECHNOLOGY",
17+
"type": "STATIC"
1718
},
1819
"comparisonInfo": {
1920
"type": "SIMPLE_HOST_TECH",
@@ -26,7 +27,8 @@
2627
},
2728
{
2829
"key": {
29-
"attribute": "HOST_TAGS"
30+
"attribute": "HOST_TAGS",
31+
"type": "STATIC"
3032
},
3133
"comparisonInfo": {
3234
"type": "TAG",

test_data/management_zones/example_a.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ resource "dynatrace_management_zone" "#name#" {
1111
}
1212
key {
1313
attribute = "HOST_TECHNOLOGY"
14+
type = "STATIC"
1415
}
1516
}
1617
conditions {
@@ -24,6 +25,7 @@ resource "dynatrace_management_zone" "#name#" {
2425
}
2526
key {
2627
attribute = "HOST_TAGS"
28+
type = "STATIC"
2729
}
2830
}
2931
enabled = true

0 commit comments

Comments
 (0)