File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 11package influxdb
22
33import (
4+ "fmt"
5+ "os"
6+
47 "github.com/smartcontractkit/chainlink-testing-framework/lib/k8s/config"
58 "github.com/smartcontractkit/chainlink-testing-framework/lib/k8s/environment"
69)
@@ -88,11 +91,15 @@ func New(props map[string]interface{}) environment.ConnectedChart {
8891
8992// NewVersioned enables choosing a specific helm chart version
9093func NewVersioned (helmVersion string , props map [string ]interface {}) environment.ConnectedChart {
94+ reg := os .Getenv ("BITNAMI_PRIVATE_REGISTRY" )
95+ if reg == "" {
96+ panic ("BITNAMI_PRIVATE_REGISTRY not set, it is required for Helm charts" )
97+ }
9198 dp := defaultProps ()
9299 config .MustMerge (& dp , props )
93100 return Chart {
94101 Name : "influxdb" ,
95- Path : "bitnami/ influxdb" ,
102+ Path : fmt . Sprintf ( "%s/charts/debian-12/ influxdb", reg ) ,
96103 Values : & dp ,
97104 Version : helmVersion ,
98105 }
Original file line number Diff line number Diff line change 11package kafka
22
33import (
4+ "fmt"
5+ os "os"
6+
47 "github.com/smartcontractkit/chainlink-testing-framework/lib/k8s/config"
58 "github.com/smartcontractkit/chainlink-testing-framework/lib/k8s/environment"
69)
@@ -121,11 +124,15 @@ func New(props map[string]interface{}) environment.ConnectedChart {
121124
122125// NewVersioned enables choosing a specific helm chart version
123126func NewVersioned (helmVersion string , props map [string ]interface {}) environment.ConnectedChart {
127+ reg := os .Getenv ("BITNAMI_PRIVATE_REGISTRY" )
128+ if reg == "" {
129+ panic ("BITNAMI_PRIVATE_REGISTRY not set, it is required for Helm charts" )
130+ }
124131 dp := defaultProps ()
125132 config .MustMerge (& dp , props )
126133 return Chart {
127134 Name : "kafka" ,
128- Path : "bitnami/ kafka" ,
135+ Path : fmt . Sprintf ( "%s/charts/debian-12/ kafka", reg ) ,
129136 Values : & dp ,
130137 Version : helmVersion ,
131138 }
You can’t perform that action at this time.
0 commit comments