Skip to content

Commit 9c31bba

Browse files
authored
Copy power-dra-kubeletplugin to bin in container file and readme modification (#22)
* Example readme and yamls corrections Signed-off-by: Punith Kenchappa <[email protected]> * fix not found of power-dra-kubeletplugin and cdi file Signed-off-by: Punith Kenchappa <[email protected]> * Added path and exec permission to container file and readme modification for uninstall Signed-off-by: Punith Kenchappa <[email protected]> * Copy power-dra-kubeletplugin to bin in container file and readme modification Signed-off-by: Punith Kenchappa <[email protected]> --------- Signed-off-by: Punith Kenchappa <[email protected]>
1 parent 7d02c26 commit 9c31bba

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You should also be using an OpenShift Container Platform 4.19+.
1919
## Install
2020

2121
```
22-
helm upgrade -i \
22+
helm upgrade \
2323
--create-namespace \
2424
--namespace power-dra-driver \
2525
power-dra-driver \

build/Containerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ RUN [ "$(arch)" == "s390x" ]
4040
|| echo "Not running on s390x, skip linking gcc binary"
4141

4242
ENV GOROOT=/usr/local/go
43-
ENV PATH="/root/platform/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:$GOROOT/bin:/opt/power-dra/bin"
43+
ENV PATH="/root/platform/bin:/opt/power-dra/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:$GOROOT/bin"
44+
4445

4546
COPY . .
4647

@@ -63,8 +64,11 @@ LABEL description="Automate the management and monitoring of addition of specifi
6364
RUN microdnf -y update && microdnf install util-linux -y && microdnf clean all
6465
WORKDIR /
6566

67+
# Copy the entrypoint script and the binary from the builder stage
6668
COPY ./build/entrypoint.sh /
6769
COPY --from=builder /workspace/bin/power-dra-kubeletplugin /opt/power-dra/bin/
70+
COPY --from=builder /workspace/bin/power-dra-kubeletplugin /usr/local/bin/
71+
6872
RUN chmod +x /opt/power-dra/bin/power-dra-kubeletplugin
6973

7074
ENTRYPOINT ["/entrypoint.sh"]

build/Containerfile-build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ LABEL description="Automate the management and monitoring of addition of specifi
1111
RUN microdnf -y update && microdnf install util-linux findutils -y && microdnf clean all
1212
WORKDIR /
1313

14+
ENV GOROOT=/usr/local/go
15+
ENV PATH="/root/platform/bin:/opt/power-dra/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:$GOROOT/bin"
16+
1417
COPY ./build/entrypoint.sh /
1518
COPY bin/* /opt/power-dra/bin/
19+
COPY bin/* /usr/local/bin/
20+
1621
RUN chmod +x /opt/power-dra/bin/power-dra-kubeletplugin
1722

1823
ENTRYPOINT ["/entrypoint.sh"]

deployments/helm/power-dra-driver/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ deviceClasses: ["nx-device"]
1010
imagePullSecrets: []
1111
image:
1212
repository: quay.io/powercloud/power-dra-driver
13-
pullPolicy: IfNotPresent
13+
pullPolicy: Always
1414
# Overrides the image tag whose default is the chart appVersion.
1515
tag: "main"
1616

0 commit comments

Comments
 (0)