@@ -40,7 +40,8 @@ pub async fn install_ingress(profile: &config::ProfileConfig) -> Result<()> {
40
40
install_helm_chart (
41
41
profile,
42
42
"ingress-nginx" ,
43
- Some ( "https://kubernetes.github.io/ingress-nginx" ) ,
43
+ "https://kubernetes.github.io/ingress-nginx" ,
44
+ None ,
44
45
"ingress-nginx" ,
45
46
INGRESS_NAMESPACE ,
46
47
VALUES ,
@@ -57,7 +58,8 @@ pub async fn install_certmanager(profile: &config::ProfileConfig) -> Result<()>
57
58
install_helm_chart (
58
59
profile,
59
60
"cert-manager" ,
60
- Some ( "https://charts.jetstack.io" ) ,
61
+ "https://charts.jetstack.io" ,
62
+ None ,
61
63
"cert-manager" ,
62
64
INGRESS_NAMESPACE ,
63
65
VALUES ,
@@ -90,7 +92,8 @@ pub async fn install_extdns(profile: &config::ProfileConfig) -> Result<()> {
90
92
91
93
install_helm_chart (
92
94
profile,
93
- "oci://registry-1.docker.io/bitnamicharts/external-dns" ,
95
+ "external-dns" ,
96
+ "https://kubernetes-sigs.github.io/external-dns" ,
94
97
None ,
95
98
"external-dns" ,
96
99
INGRESS_NAMESPACE ,
@@ -106,7 +109,8 @@ pub async fn install_extdns(profile: &config::ProfileConfig) -> Result<()> {
106
109
fn install_helm_chart (
107
110
profile : & config:: ProfileConfig ,
108
111
chart : & str ,
109
- repo : Option < & str > ,
112
+ repo : & str ,
113
+ version : Option < & str > ,
110
114
release_name : & str ,
111
115
namespace : & str ,
112
116
values : & str ,
@@ -123,8 +127,8 @@ fn install_helm_chart(
123
127
. tempfile ( ) ?;
124
128
temp_values. write_all ( values. as_bytes ( ) ) ?;
125
129
126
- let repo_arg = match repo {
127
- Some ( r ) => format ! ( "--repo {r }" ) ,
130
+ let version_arg = match version {
131
+ Some ( v ) => format ! ( "--version {v }" ) ,
128
132
None => "" . to_string ( ) ,
129
133
} ;
130
134
@@ -139,7 +143,7 @@ fn install_helm_chart(
139
143
r#"
140
144
upgrade --install
141
145
{release_name}
142
- {chart} {repo_arg }
146
+ {chart} --repo {repo} {version_arg }
143
147
--namespace {namespace} --create-namespace
144
148
--values {}
145
149
--wait --timeout 1m
0 commit comments