Skip to content

Commit

Permalink
chore: further example
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Meissner committed Feb 8, 2024
1 parent a28fa0b commit 57e56ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/agent/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ func getParameters(config *datamodel.NodeBootstrappingConfiguration) paramsMap {
addValue(parametersMap, fmt.Sprintf("kubeletConfigKey%s", parameterKey), kcValue)
}

// or doing something like this and just grab the specific value we need
if clusterDNS, ok := config.KubeletConfig["--cluster-dns"]; ok {
addValue(parametersMap, "--cluster-dns", clusterDNS)
}

return parametersMap
}

Expand Down

0 comments on commit 57e56ce

Please sign in to comment.