forked from kedacore/keda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: New validation hook to check if scale target is already managed (…
…kedacore#4001) * feat: New validation hook to check if scale target is already managed Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update missing changes Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * add prometheus metrics to webhooks Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix test Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix styles Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * remove unused parameter Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * use k8s 1.26 for smoke test Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix style Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * add webhook logs to e2e output Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * apply feedback Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * use kedautil.GetPodNamespace() in adapter Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * use gvkr parser for webhooks Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * remove the empty secret as requirement Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update go.sum Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update errors Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update pictures Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update external name to use admission-webhooks Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update bin output Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * add a core release Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * split rbac Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update changelog Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix styles Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix typo Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update parameter name Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update docs Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update rbac Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update contributing Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * add cpu/memory validation Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * solve styles Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * fix errors Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update arch picture Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * use my own fork temporally Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * move to the operator the cert generation Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix influx test Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix influx test Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix matching errors Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * undo incorrect change Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * remove keda-architecture ppt in favour of keda-docs schematics.pptx Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * Update Makefile Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> * apply feedback Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * add a deletion note in release yaml Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
- Loading branch information
Showing
174 changed files
with
18,034 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Build the manager binary | ||
FROM --platform=$BUILDPLATFORM ghcr.io/kedacore/build-tools:1.18.8 AS builder | ||
|
||
ARG BUILD_VERSION=main | ||
ARG GIT_COMMIT=HEAD | ||
ARG GIT_VERSION=main | ||
|
||
WORKDIR /workspace | ||
|
||
COPY Makefile Makefile | ||
|
||
# Copy the go source | ||
COPY hack/ hack/ | ||
COPY version/ version/ | ||
COPY cmd/ cmd/ | ||
COPY apis/ apis/ | ||
COPY controllers/ controllers/ | ||
COPY pkg/ pkg/ | ||
COPY vendor/ vendor/ | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
|
||
# Build | ||
# https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/ | ||
ARG TARGETOS | ||
ARG TARGETARCH | ||
RUN VERSION=${BUILD_VERSION} GIT_COMMIT=${GIT_COMMIT} GIT_VERSION=${GIT_VERSION} TARGET_OS=$TARGETOS ARCH=$TARGETARCH make webhooks | ||
|
||
# Use distroless as minimal base image to package the manager binary | ||
# Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
FROM gcr.io/distroless/static:nonroot | ||
WORKDIR / | ||
COPY --from=builder /workspace/bin/keda-admission-webhooks . | ||
# 65532 is numeric for nonroot | ||
USER 65532:65532 | ||
|
||
ENTRYPOINT ["/keda-admission-webhooks", "--zap-log-level=info", "--zap-encoder=console"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.