You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Build the manager binaryFROM golang:1.23 AS builder
ARG TARGETOS
ARG TARGETARCH
WORKDIR /workspace
# Copy the Go Modules manifestsCOPY go.mod go.mod
# cache deps before building and copying source so that we don't need to re-download as much# and so that source changes don't invalidate our downloaded layerRUN go mod download
# Copy the go sourceCOPY main.go main.go
# Build# the GOARCH has not a default value to allow the binary be built according to the host where the command# was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO# the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager main.go
# Use distroless as minimal base image to package the manager binary# Refer to https://github.com/GoogleContainerTools/distroless for more detailsFROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
USER 65532:65532
ENTRYPOINT ["/manager"]
Solution
you can shift the folder location to escape the permission issue, may be some emptyDir in k8s or simple volume in docker
🎯 Affected Components
🖥️ CLI
🎨 UI
📚 Documentation
🔧 Core Functionality
🔌 Plugins/Extensions
✔️ Confirmations
🔍 I have searched existing issues and verified this is a new bug
💬 I will respond to questions and updates in this bug report
📝 Bug Title
Helm OCI based charts unable to install
🔄 Steps to Reproduce
kubectl apply -f <>.yml
✅ Expected Behavior
It should not fail to install
❌ Actual Behavior
Before changing the ociChartPull.DirPath which is default to
.
After changing the ociChartPull.DirPath to
xyz/
🖥️ Environment
ksctl v2.0.0-rc.2 and ka 0.1.0
📎 Additional Context
After checking the error and adding debuging step the contents of the container image. We found the following
Final Layer Base Image which is
gcr.io/distroless/static:nonroot
here is how we came to know about. below is the code to try it yourself
Solution
you can shift the folder location to escape the permission issue, may be some emptyDir in k8s or simple volume in docker
🎯 Affected Components
✔️ Confirmations
The text was updated successfully, but these errors were encountered: