File tree 4 files changed +50
-2
lines changed
4 files changed +50
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ locals {
20
20
namespace_ids = [" frontend" , " accounts" , " transactions" ]
21
21
}
22
22
23
+ import {
24
+ id = " projects/${ var . cluster_project_id } /locations/global/features/fleetobservability"
25
+ to = module. env . google_gke_hub_feature . fleet-o11y
26
+ }
27
+
23
28
module "env" {
24
29
source = " ../../modules/env_baseline"
25
30
Original file line number Diff line number Diff line change 17
17
locals {
18
18
env = " non-production"
19
19
20
- namespace_ids = [" frontend" ]
20
+ namespace_ids = [" frontend" , " accounts" , " transactions" ]
21
+ }
22
+
23
+ import {
24
+ id = " projects/${ var . cluster_project_id } /locations/global/features/fleetobservability"
25
+ to = module. env . google_gke_hub_feature . fleet-o11y
21
26
}
22
27
23
28
module "env" {
Original file line number Diff line number Diff line change 17
17
locals {
18
18
env = " production"
19
19
20
- namespace_ids = [" frontend" ]
20
+ namespace_ids = [" frontend" , " accounts" , " transactions" ]
21
+ }
22
+
23
+ import {
24
+ id = " projects/${ var . cluster_project_id } /locations/global/features/fleetobservability"
25
+ to = module. env . google_gke_hub_feature . fleet-o11y
21
26
}
22
27
23
28
module "env" {
Original file line number Diff line number Diff line change
1
+ /* *
2
+ * Copyright 2024 Google LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ resource "google_gke_hub_feature" "fleet-o11y" {
18
+ name = " fleetobservability"
19
+ project = var. cluster_project_id
20
+ location = " global"
21
+ spec {
22
+ fleetobservability {
23
+ logging_config {
24
+ default_config {
25
+ mode = " COPY"
26
+ }
27
+ fleet_scope_logs_config {
28
+ mode = " MOVE"
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
You can’t perform that action at this time.
0 commit comments