Skip to content

Commit 766daf2

Browse files
committed
fix: init job launching on the same nodes
1 parent fec3806 commit 766daf2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ kind-init:
7373
--name kind-ydb-operator
7474
docker pull k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.0
7575
kind load docker-image k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.0 --name kind-ydb-operator
76+
kubectl cluster-info --context kind-kind-ydb-operator # yes, kind prefixes all context with one more 'kind-'
7677
docker pull ${YDB_IMAGE}
7778
kind load docker-image ${YDB_IMAGE} --name kind-ydb-operator
7879

tests/test-k8s-objects/objects.go

+3
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ func DefaultStorage(storageYamlConfigPath string) *v1alpha1.Storage {
109109
AdditionalLabels: map[string]string{"ydb-cluster": "kind-storage"},
110110
Affinity: storageAntiAffinity,
111111
},
112+
InitJob: &v1alpha1.StorageInitJobSpec{
113+
AdditionalLabels: map[string]string{"ydb-cluster": "kind-storage-init"},
114+
},
112115
},
113116
}
114117
}

0 commit comments

Comments
 (0)