Skip to content

Commit dd74301

Browse files
authored
Removing conditional check
Addressing review comment. Removing conditional check for fluentd config file path.
1 parent a70a534 commit dd74301

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

cluster/gce/windows/k8s-node-setup.psm1

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,15 +1525,12 @@ function Install-LoggingAgent {
15251525
function Configure-LoggingAgent {
15261526
$fluentd_config_dir = "$STACKDRIVER_ROOT\LoggingAgent\config.d"
15271527
$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+
15371534
$config = $FLUENTD_CONFIG.replace('NODE_NAME', (hostname))
15381535
$config | Out-File -FilePath $fluentd_config_file -Encoding ASCII
15391536
Log-Output "Wrote fluentd logging config to $fluentd_config_file"

0 commit comments

Comments
 (0)