Visitar URL original
fix: Fix resolving to the correct version v1 or v1alpha1 · feast-dev/feast@0d6e558 · GitHub
Skip to content

Commit 0d6e558

Browse files
committed
fix: Fix resolving to the correct version v1 or v1alpha1
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
1 parent 2ed8d23 commit 0d6e558

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎infra/feast-operator/test/utils/test_util.go‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ const (
2626
FeastPrefix = "feast-"
2727
FeatureStoreName = "simple-feast-setup"
2828
FeastResourceName = FeastPrefix + FeatureStoreName
29+
FeatureStoreResourceName = "featurestores.feast.dev"
2930
)
3031

3132
// dynamically checks if all conditions of custom resource featurestore are in "Ready" state.
3233
func checkIfFeatureStoreCustomResourceConditionsInReady(featureStoreName, namespace string) error {
3334
// Wait 10 seconds to lets the feature store status update
3435
time.Sleep(1 * time.Minute)
3536

36-
cmd := exec.Command("kubectl", "get", "featurestore", featureStoreName, "-n", namespace, "-o", "json")
37+
cmd := exec.Command("kubectl", "get", FeatureStoreResourceName, featureStoreName, "-n", namespace, "-o", "json")
3738

3839
var out bytes.Buffer
3940
var stderr bytes.Buffer
@@ -180,15 +181,15 @@ func isFeatureStoreHavingRemoteRegistry(namespace, featureStoreName string) (boo
180181

181182
for time.Since(startTime) < timeout {
182183
// First check if the resource exists
183-
checkCmd := exec.Command("kubectl", "get", "featurestore", featureStoreName, "-n", namespace)
184+
checkCmd := exec.Command("kubectl", "get", FeatureStoreResourceName, featureStoreName, "-n", namespace)
184185
if err := checkCmd.Run(); err != nil {
185186
// Resource doesn't exist yet, retry
186187
fmt.Printf("FeatureStore %s/%s does not exist yet, waiting...\n", namespace, featureStoreName)
187188
time.Sleep(interval)
188189
continue
189190
}
190191

191-
cmd := exec.Command("kubectl", "get", "featurestore", featureStoreName, "-n", namespace,
192+
cmd := exec.Command("kubectl", "get", FeatureStoreResourceName, featureStoreName, "-n", namespace,
192193
"-o=jsonpath='{.status.applied.services.registry}'")
193194

194195
output, err := cmd.Output()

0 commit comments

Comments
 (0)