File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
commands/operator-sdk/cmd/scorecard Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ func initConfig() error {
300
300
if err := viper .ReadInConfig (); err == nil {
301
301
log .Info ("Using config file: " , viper .ConfigFileUsed ())
302
302
} else {
303
- log .Warn ("Could not load config file; using only flags" )
303
+ log .Warn ("Could not load config file; using flags" )
304
304
}
305
305
return nil
306
306
}
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
DEST_IMAGE=" quay.io/example/scorecard-proxy"
4
+ CONFIG_PATH=" .test-osdk-scorecard.yaml"
4
5
5
6
set -ex
6
7
7
8
# build scorecard-proxy image (and delete intermediate builder image)
8
- ./hack/image/build-scorecard-proxy-image.sh $DEST_IMAGE
9
+ ./hack/image/build-scorecard-proxy-image.sh " $DEST_IMAGE "
9
10
10
11
# the test framework directory has all the manifests needed to run the cluster
11
12
pushd test/test-framework
12
- commandoutput=" $( operator-sdk scorecard --cr-manifest deploy/crds/cache_v1alpha1_memcached_cr.yaml --init-timeout 60 --csv-path deploy/memcachedoperator.0.0.2.csv.yaml --verbose --proxy-image $DEST_IMAGE --proxy-pull-policy Never 2>&1 ) "
13
+ commandoutput=" $( operator-sdk scorecard \
14
+ --cr-manifest deploy/crds/cache_v1alpha1_memcached_cr.yaml \
15
+ --init-timeout 60 \
16
+ --csv-path deploy/memcachedoperator.0.0.2.csv.yaml \
17
+ --verbose \
18
+ --proxy-image " $DEST_IMAGE " \
19
+ --proxy-pull-policy Never \
20
+ 2>&1 ) "
13
21
echo $commandoutput | grep " Total Score: 6/8 points"
22
+
14
23
# test config file
15
- commandoutput2=" $( operator-sdk scorecard --proxy-image $DEST_IMAGE ) "
24
+ commandoutput2=" $( operator-sdk scorecard \
25
+ --proxy-image " $DEST_IMAGE " \
26
+ --config " $CONFIG_PATH " ) "
16
27
echo $commandoutput2 | grep " Total Score: 6/8 points"
17
28
popd
File renamed without changes.
You can’t perform that action at this time.
0 commit comments