Skip to content

Commit

Permalink
feat(IS): added ARM support to external DNS #3393
Browse files Browse the repository at this point in the history
  • Loading branch information
pregnor committed Jan 13, 2021
1 parent 28db1a2 commit 2cb11c1
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 14 deletions.
7 changes: 4 additions & 3 deletions config/config.yaml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ dex:
#
# charts:
# externalDns:
# chart: "stable/external-dns"
# version: "2.15.2"
# chart: "bitnami/external-dns"
# version: "4.5.0"
#
# # See https://github.com/helm/charts/tree/master/stable/external-dns for details
# # See https://github.com/bitnami/charts/tree/master/bitnami/external-dns for details
# values: {}
#
# securityScan:
Expand Down Expand Up @@ -421,6 +421,7 @@ dex:
# repositories:
# stable: "https://charts.helm.sh/stable"
# banzaicloud-stable: "https://kubernetes-charts.banzaicloud.com"
# bitnami: "https://charts.bitnami.com/bitnami"
# loki: "https://grafana.github.io/loki/charts"
# kubefed-charts: "https://raw.githubusercontent.com/kubernetes-sigs/kubefed/master/charts"

Expand Down
9 changes: 5 additions & 4 deletions internal/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,12 +648,12 @@ func Configure(v *viper.Viper, p *pflag.FlagSet) {
v.SetDefault("cluster::dns::namespace", "")
v.SetDefault("cluster::dns::baseDomain", "")
v.SetDefault("cluster::dns::providerSecret", "secret/data/banzaicloud/aws")
v.SetDefault("cluster::dns::charts::externalDns::chart", "stable/external-dns")
v.SetDefault("cluster::dns::charts::externalDns::version", "2.15.2")
v.SetDefault("cluster::dns::charts::externalDns::chart", "bitnami/external-dns")
v.SetDefault("cluster::dns::charts::externalDns::version", "4.5.0")
v.SetDefault("cluster::dns::charts::externalDns::values", map[string]interface{}{
"image": map[string]interface{}{
"repository": "bitnami/external-dns",
"tag": "0.5.18",
"repository": "k8s.gcr.io/external-dns/external-dns",
"tag": "v0.7.5",
},
})

Expand Down Expand Up @@ -874,6 +874,7 @@ traefik:
v.SetDefault("helm::home", "./var/cache")
v.SetDefault("helm::repositories::stable", "https://charts.helm.sh/stable")
v.SetDefault("helm::repositories::banzaicloud-stable", "https://kubernetes-charts.banzaicloud.com")
v.SetDefault("helm::repositories::bitnami", "https://charts.bitnami.com/bitnami")
v.SetDefault("helm::repositories::loki", "https://grafana.github.io/loki/charts")
v.SetDefault("helm::repositories::kubefed-charts", "https://raw.githubusercontent.com/kubernetes-sigs/kubefed/master/charts")

Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ func TestConfigure_DefaultValueBinding(t *testing.T) {
Charts: dns.ChartsConfig{
ExternalDNS: dns.ExternalDNSChartConfig{
ChartConfigBase: dns.ChartConfigBase{
Chart: "stable/external-dns",
Version: "2.15.2",
Chart: "bitnami/external-dns",
Version: "4.5.0",
},
Values: dns.ExternalDNSChartValuesConfig{
Image: dns.ExternalDNSChartValuesImageConfig{
Repository: "bitnami/external-dns",
Tag: "0.5.18",
Repository: "k8s.gcr.io/external-dns/external-dns",
Tag: "v0.7.5",
},
},
},
Expand Down
7 changes: 4 additions & 3 deletions internal/federation/reconcile_ext_dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (

func testEnsureCRDSourceForExtDNS(testNamespace string) func(t *testing.T) {
return func(t *testing.T) {
chartName := "stable/external-dns"
chartName := "bitnami/external-dns"
releaseName := "fed-ext-dns"
chartVersion := "2.15.2"
chartVersion := "4.5.0"

clusterId := uint(1)

Expand Down Expand Up @@ -60,7 +60,8 @@ func testEnsureCRDSourceForExtDNS(testNamespace string) func(t *testing.T) {
config := helm.Config{
Home: home,
Repositories: map[string]string{
"stable": "https://charts.helm.sh/stable",
"stable": "https://charts.helm.sh/stable",
"bitnami": "https://charts.bitnami.com/bitnami",
},
}

Expand Down
8 changes: 8 additions & 0 deletions internal/helm/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ func Test_service_ListRepositories(t *testing.T) {
Name: "banzaicloud-stable",
URL: "https://kubernetes-charts.banzaicloud.com",
},
{
Name: "bitnami",
URL: "https://charts.bitnami.com/bitnami",
},
{
Name: "loki",
URL: "https://grafana.github.io/loki/charts",
Expand All @@ -251,6 +255,10 @@ func Test_service_ListRepositories(t *testing.T) {
Name: "banzaicloud-stable",
URL: "https://kubernetes-charts.banzaicloud.com",
},
{
Name: "bitnami",
URL: "https://charts.bitnami.com/bitnami",
},
{
Name: "loki",
URL: "https://grafana.github.io/loki/charts",
Expand Down

0 comments on commit 2cb11c1

Please sign in to comment.