Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/agent/baker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,10 @@ func getContainerServiceFuncMap(config *datamodel.NodeBootstrappingConfiguration
"GetBootstrapProfileContainerRegistryServer": func() string {
return config.ContainerService.Properties.SecurityProfile.GetPrivateEgressContainerRegistryServer()
},
// Used for internal e2e test only, won't be set by RP or used in production.
"GetNetworkIsolatedClusterTestMode": func() bool {
return config.ContainerService.Properties.SecurityProfile.GetPrivateEgressTestMode()
},
"GetMCRRepositoryBase": func() string {
if config.CloudSpecConfig.KubernetesSpecConfig.MCRKubernetesImageBase == "" {
return "mcr.microsoft.com"
Expand Down
10 changes: 10 additions & 0 deletions pkg/agent/datamodel/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2412,6 +2412,8 @@ type PrivateEgress struct {
Enabled bool `json:"enabled"`
ContainerRegistryServer string `json:"containerRegistryServer"`
ProxyAddress string `json:"proxyAddress"`
// Used for internal e2e test only, won't be set by RP or used in production.
TestMode bool `json:"testMode,omitempty"`
}

func (s *SecurityProfile) GetProxyAddress() string {
Expand All @@ -2428,6 +2430,14 @@ func (s *SecurityProfile) GetPrivateEgressContainerRegistryServer() string {
return ""
}

// Used for internal e2e test only, won't be set by RP or used in production.
func (s *SecurityProfile) GetPrivateEgressTestMode() bool {
if s != nil && s.PrivateEgress != nil && s.PrivateEgress.Enabled {
return s.PrivateEgress.TestMode
}
return false
}

// SecurityProfile end.

// ----------------------- Start of changes related to localdns ------------------------------------------.
Expand Down
Loading