Skip to content

Commit

Permalink
Merge pull request #194 from aayushsss1/golang-va-fixes
Browse files Browse the repository at this point in the history
Golang VA and Bug Fix
  • Loading branch information
akgunjal authored May 10, 2024
2 parents a69c9e5 + 377a740 commit dca4b46
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion block-storage-attacher/Dockerfile.fips
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ LABEL travis_build_number=${travis_build_number}

COPY --from=builder --chown=2000 /image /

WORKDIR /home/armada-storage/
WORKDIR /image/

USER 2000:2000

Expand Down
2 changes: 1 addition & 1 deletion block-storage-attacher/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ require (
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.26.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
Expand Down
2 changes: 2 additions & 0 deletions block-storage-attacher/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg=
google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
Expand Down
12 changes: 6 additions & 6 deletions block-storage-attacher/images/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ set -ex
#VOLUME_CONFIG_FILE="/host/etc/iscsi-block-volume.conf"

# Copy block volume configurations
cp /home/armada-storage/iscsi-block-volume.conf /host/etc/
cp home/armada-storage/iscsi-block-volume.conf /host/etc/

# Copy service files
mkdir -p /host/lib/ibmc-block-attacher
cp /home/armada-storage/iscsi-attach.sh /host/lib/ibmc-block-attacher/
cp /home/armada-storage/ibmc-block-attacher.service /host/lib/systemd/system/
cp home/armada-storage/iscsi-attach.sh /host/lib/ibmc-block-attacher/
cp home/armada-storage/ibmc-block-attacher.service /host/lib/systemd/system/
ln -s -f /lib/systemd/system/ibmc-block-attacher.service /host/etc/systemd/system/multi-user.target.wants/ibmc-block-attacher.service

# Set the volume details from environment variables of pod to conf file
Expand All @@ -27,8 +27,8 @@ ln -s -f /lib/systemd/system/ibmc-block-attacher.service /host/etc/systemd/syste
#sed -i 's/<password>/'$PASSWORD'/' $VOLUME_CONFIG_FILE
#sed -i 's/<target>/'$TARGET'/' $VOLUME_CONFIG_FILE

/home/armada-storage/systemutil -action reload
/home/armada-storage/systemutil -target ibmc-block-attacher.service -action start
/home/armada-storage/block-storage-attacher
home/armada-storage/systemutil -action reload
home/armada-storage/systemutil -target ibmc-block-attacher.service -action start
home/armada-storage/block-storage-attacher

set +ex

0 comments on commit dca4b46

Please sign in to comment.