Skip to content

Commit

Permalink
Merge branch 'master' into andyzhangx/upgrade-sidecar-images2
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx authored Jun 26, 2024
2 parents 0f8d045 + cd90aa7 commit 50003c8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ run:
# This file contains only configs which differ from defaults.
# All possible options can be found here https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
linters-settings:
revive:
rules:
- name: dot-imports
disabled: true

cyclop:
# The maximal code complexity to report.
# Default: 10
Expand Down
2 changes: 0 additions & 2 deletions pkg/agent/baker.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ func (t *TemplateGenerator) getSingleLine(textFilename string, profile interface
}

// getTemplateFuncMap returns the general purpose template func map from getContainerServiceFuncMap.
//
//nolint:gocognit
func getBakerFuncMap(config *datamodel.NodeBootstrappingConfiguration, params paramsMap, variables paramsMap) template.FuncMap {
funcMap := getContainerServiceFuncMap(config)

Expand Down
2 changes: 0 additions & 2 deletions pkg/agent/bakerapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/Azure/agentbaker/pkg/agent/vhd/cache"
)

//nolint:revive // Name does not need to be modified to baker
type AgentBaker interface {
GetNodeBootstrapping(ctx context.Context, config *datamodel.NodeBootstrappingConfiguration) (*datamodel.NodeBootstrapping, error)
GetLatestSigImageConfig(sigConfig datamodel.SIGConfig, distro datamodel.Distro, envInfo *datamodel.EnvironmentInfo) (*datamodel.SigImageConfig, error)
Expand All @@ -26,7 +25,6 @@ type agentBakerImpl struct {

var _ AgentBaker = (*agentBakerImpl)(nil)

//nolint:revive // fine to return unexported type due to interface usage
func NewAgentBaker() (*agentBakerImpl, error) {
return &agentBakerImpl{
toggles: toggles.New(),
Expand Down
6 changes: 3 additions & 3 deletions pkg/agent/datamodel/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ type WindowsProfile struct {
AlwaysPullWindowsPauseImage *bool `json:"alwaysPullWindowsPauseImage,omitempty"`
ContainerdWindowsRuntimes *ContainerdWindowsRuntimes `json:"containerdWindowsRuntimes,omitempty"`
WindowsCalicoPackageURL string `json:"windowsCalicoPackageURL,omitempty"`
//nolint:revive, stylecheck // keep field names the same as RP
//nolint:stylecheck // keep field names the same as RP
WindowsSecureTlsEnabled *bool `json:"windowsSecureTlsEnabled,omitempty"`
//nolint:revive, stylecheck // keep field names the same as RP
//nolint:stylecheck // keep field names the same as RP
WindowsGmsaPackageUrl string `json:"windowsGmsaPackageUrl,omitempty"`
CseScriptsPackageURL string `json:"cseScriptsPackageURL,omitempty"`
GpuDriverURL string `json:"gpuDriverUrl,omitempty"`
Expand Down Expand Up @@ -1335,7 +1335,7 @@ func (w *WindowsProfile) IsAlwaysPullWindowsPauseImage() bool {

// IsWindowsSecureTLSEnabled returns true if secure TLS should be enabled for Windows nodes.
//
//nolint:revive,stylecheck // allign func name with field name
//nolint:stylecheck // allign func name with field name
func (w *WindowsProfile) IsWindowsSecureTlsEnabled() bool {
if w.WindowsSecureTlsEnabled != nil {
return *w.WindowsSecureTlsEnabled
Expand Down

0 comments on commit 50003c8

Please sign in to comment.