Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit e74f08c

Browse files
authored
Merge pull request #478 from MattiasGees/bug/validate-jenkins-hub
Validate Jenkins as a valid instance pool for hub
2 parents 3d32f45 + 6c5a044 commit e74f08c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/tarmak/cluster/cluster.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ func (c *Cluster) validateClusterInstancePoolTypes() error {
140140
poolMap = map[string]bool{
141141
clusterv1alpha1.InstancePoolTypeVault: true,
142142
clusterv1alpha1.InstancePoolTypeBastion: true,
143+
clusterv1alpha1.InstancePoolTypeJenkins: true,
143144
}
144145

145146
break

pkg/tarmak/cluster/cluster_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@ func TestCluster_ValidateClusterInstancePoolTypesHub(t *testing.T) {
238238
passTypes := []string{
239239
clusterv1alpha1.InstancePoolTypeBastion,
240240
clusterv1alpha1.InstancePoolTypeVault,
241+
clusterv1alpha1.InstancePoolTypeJenkins,
241242
}
242243
failTypes := []string{
243244
clusterv1alpha1.InstancePoolTypeMaster,
244245
clusterv1alpha1.InstancePoolTypeWorker,
245246
clusterv1alpha1.InstancePoolTypeEtcd,
246-
clusterv1alpha1.InstancePoolTypeJenkins,
247247
}
248248
tryInstancePoolTypes(c, passTypes, failTypes, t)
249249

0 commit comments

Comments
 (0)