Skip to content

Commit

Permalink
link agent provider stylus
Browse files Browse the repository at this point in the history
Signed-off-by: Nianyu Shen <[email protected]>
  • Loading branch information
nianyush committed Mar 11, 2024
1 parent a135de1 commit 0b73530
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ luet:
install-k8s:
FROM alpine
COPY +luet/luet /usr/bin/luet
ARG K8S_VERSION=1.26.4
ARG K8S_VERSION=1.27.9

IF [ "$K8S_DISTRIBUTION" = "kubeadm" ] || [ "$K8S_DISTRIBUTION" = "kubeadm-fips" ]
ARG BASE_K8S_VERSION=$K8S_VERSION
Expand Down Expand Up @@ -350,7 +350,6 @@ provider-image:
RUN slink --source /k8s/ --target /opt/k8s
RUN rm -f /usr/bin/slink
RUN rm -rf /k8s
RUN ln -sf /opt/spectrocloud/bin/agent-provider-stylus /usr/local/bin/agent-provider-stylus
ELSE
COPY +install-k8s/ /
END
Expand Down
6 changes: 6 additions & 0 deletions stylus_uki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ users:
passwd: kairos

stages:
initramfs:
- name: link agent provider stylus
commands:
- echo "Linking agent provider"
- mkdir -p /usr/local/bin/
- ln -sf /opt/spectrocloud/bin/agent-provider-stylus /usr/local/bin/agent-provider-stylus
after-install:
- name: uki stylus unpack
commands:
Expand Down

0 comments on commit 0b73530

Please sign in to comment.