Skip to content

Commit c7ef8bd

Browse files
committed
use private Bitnami registry
1 parent ddd435d commit c7ef8bd

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package influxdb
22

33
import (
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
9093
func 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
}

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package kafka
22

33
import (
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
123126
func 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
}

0 commit comments

Comments
 (0)