File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1525,15 +1525,12 @@ function Install-LoggingAgent {
1525
1525
function Configure-LoggingAgent {
1526
1526
$fluentd_config_dir = " $STACKDRIVER_ROOT \LoggingAgent\config.d"
1527
1527
$fluentd_config_file = " $fluentd_config_dir \k8s_containers.conf"
1528
- if (-not (ShouldWrite- File $fluentd_config_file )) {
1529
- Log- Output (" Skip: fluentd logging config $fluentd_config_file already " +
1530
- " exists" )
1531
- } else {
1532
- # Create a configuration file for kubernetes containers.
1533
- # The config.d directory should have already been created automatically, but
1534
- # try creating again just in case.
1535
- New-Item $fluentd_config_dir - ItemType ' directory' - Force | Out-Null
1536
- }
1528
+
1529
+ # Create a configuration file for kubernetes containers.
1530
+ # The config.d directory should have already been created automatically, but
1531
+ # try creating again just in case.
1532
+ New-Item $fluentd_config_dir - ItemType ' directory' - Force | Out-Null
1533
+
1537
1534
$config = $FLUENTD_CONFIG.replace (' NODE_NAME' , (hostname))
1538
1535
$config | Out-File - FilePath $fluentd_config_file - Encoding ASCII
1539
1536
Log- Output " Wrote fluentd logging config to $fluentd_config_file "
You can’t perform that action at this time.
0 commit comments