mirror of
https://github.com/rancher/types.git
synced 2025-04-27 18:25:05 +00:00
Add globaldns system images
This commit is contained in:
parent
856db7f1e1
commit
2c58759d05
@ -68,3 +68,7 @@ type AlidnsProviderConfig struct {
|
||||
AccessKey string `json:"accessKey" norman:"notnullable,required,minLength=1"`
|
||||
SecretKey string `json:"secretKey" norman:"notnullable,required,minLength=1,type=password"`
|
||||
}
|
||||
|
||||
type GlobalDNSSystemImages struct {
|
||||
ExternalDNS string `yaml:"ExternalDns" json:"ExternalDns,omitempty"`
|
||||
}
|
||||
|
@ -84,11 +84,12 @@ var (
|
||||
},
|
||||
}
|
||||
|
||||
// ToolsSystemImages default images for alert, pipeline, logging
|
||||
// ToolsSystemImages default images for alert, pipeline, logging, globaldns
|
||||
ToolsSystemImages = struct {
|
||||
AlertSystemImages AlertSystemImages
|
||||
PipelineSystemImages projectv3.PipelineSystemImages
|
||||
LoggingSystemImages LoggingSystemImages
|
||||
AlertSystemImages AlertSystemImages
|
||||
PipelineSystemImages projectv3.PipelineSystemImages
|
||||
LoggingSystemImages LoggingSystemImages
|
||||
GlobalDNSSystemImages GlobalDNSSystemImages
|
||||
}{
|
||||
AlertSystemImages: AlertSystemImages{
|
||||
AlertManager: m("prom/alertmanager:v0.15.2"),
|
||||
@ -109,6 +110,9 @@ var (
|
||||
FluentdHelper: m("rancher/fluentd-helper:v0.1.2"),
|
||||
LogAggregatorFlexVolumeDriver: m("rancher/log-aggregator:v0.1.4"),
|
||||
},
|
||||
GlobalDNSSystemImages: GlobalDNSSystemImages{
|
||||
ExternalDNS: m("registry.opensource.zalan.do/teapot/external-dns:v0.5.10"),
|
||||
},
|
||||
}
|
||||
|
||||
AllK8sVersions = map[string]RKESystemImages{
|
||||
|
@ -20,6 +20,7 @@ func Mirror(image string) string {
|
||||
image = strings.Replace(image, "alpine/git", "rancher/alpine-git", 1)
|
||||
image = strings.Replace(image, "prom/", "rancher/prom-", 1)
|
||||
image = strings.Replace(image, "quay.io/pires", "rancher", 1)
|
||||
image = strings.Replace(image, "registry.opensource.zalan.do/teapot/external-dns", "rancher/kubernetes-external-dns", 1)
|
||||
|
||||
Mirrors[image] = orig
|
||||
return image
|
||||
|
Loading…
Reference in New Issue
Block a user