Skip to content

Commit d5dd2fb

Browse files
committed
override image and registry
1 parent c7ef8bd commit d5dd2fb

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

lib/k8s/pkg/helm/influxdb/influxdb.go

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,20 @@ func (m Chart) ExportData(e *environment.Environment) error {
5353
return nil
5454
}
5555

56-
func defaultProps() map[string]interface{} {
56+
func defaultProps(reg string) map[string]interface{} {
5757
return map[string]interface{}{
58-
"auth": map[string]interface{}{
59-
"enabled": "false",
58+
"global": map[string]interface{}{
59+
"security": map[string]interface{}{
60+
"allowInsecureImages": true,
61+
},
6062
},
6163
"image": map[string]interface{}{
62-
"tag": "1.7.10",
64+
"registry": reg,
65+
"repository": "containers/debian-12",
66+
"tag": "3.4.2",
67+
},
68+
"auth": map[string]interface{}{
69+
"enabled": "false",
6370
},
6471
"influxdb": map[string]interface{}{
6572
"readinessProbe": map[string]interface{}{
@@ -95,11 +102,11 @@ func NewVersioned(helmVersion string, props map[string]interface{}) environment.
95102
if reg == "" {
96103
panic("BITNAMI_PRIVATE_REGISTRY not set, it is required for Helm charts")
97104
}
98-
dp := defaultProps()
105+
dp := defaultProps(reg)
99106
config.MustMerge(&dp, props)
100107
return Chart{
101108
Name: "influxdb",
102-
Path: fmt.Sprintf("%s/charts/debian-12/influxdb", reg),
109+
Path: fmt.Sprintf("%s/charts/debian-12/influxdb:7.1.47", reg),
103110
Values: &dp,
104111
Version: helmVersion,
105112
}

lib/k8s/pkg/helm/kafka/kafka.go

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,23 @@ func (m Chart) ExportData(e *environment.Environment) error {
5353
return nil
5454
}
5555

56-
func defaultProps() map[string]interface{} {
56+
func defaultProps(reg string) map[string]interface{} {
5757
return map[string]interface{}{
58+
"global": map[string]interface{}{
59+
"security": map[string]interface{}{
60+
"allowInsecureImages": true,
61+
},
62+
},
63+
"image": map[string]interface{}{
64+
"registry": reg,
65+
"repository": "containers/debian-12",
66+
"tag": "4.1.0",
67+
"debug": true,
68+
},
5869
"auth": map[string]interface{}{
5970
"clientProtocol": "plaintext",
6071
"interBrokerProtocol": "plaintext",
6172
},
62-
"image": map[string]interface{}{
63-
"debug": true,
64-
},
6573
"provisioning": map[string]interface{}{
6674
"enabled": true,
6775
"resources": map[string]interface{}{
@@ -128,11 +136,11 @@ func NewVersioned(helmVersion string, props map[string]interface{}) environment.
128136
if reg == "" {
129137
panic("BITNAMI_PRIVATE_REGISTRY not set, it is required for Helm charts")
130138
}
131-
dp := defaultProps()
139+
dp := defaultProps(reg)
132140
config.MustMerge(&dp, props)
133141
return Chart{
134142
Name: "kafka",
135-
Path: fmt.Sprintf("%s/charts/debian-12/kafka", reg),
143+
Path: fmt.Sprintf("%s/charts/debian-12/kafka:32.4.6", reg),
136144
Values: &dp,
137145
Version: helmVersion,
138146
}

0 commit comments

Comments
 (0)