-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove generated files * convert to new sidecar plugin format for argocd >= v2.6 * generate client for goreleaser * fix goreleaser docker build * update deps * update deps
- Loading branch information
Showing
440 changed files
with
331 additions
and
182,216 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
local | ||
dist/ | ||
pkg/ | ||
.git* |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
local/ | ||
dist/ | ||
pkg/ | ||
.git* |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
FROM alpine | ||
ENTRYPOINT ["/argocd-cloudtruth-plugin"] | ||
COPY argocd-cloudtruth-plugin / | ||
ARG CMP_ROOT=/home/argocd/cmp-server | ||
|
||
COPY argocd-cloudtruth-plugin /usr/bin/ | ||
COPY plugin.yaml ${CMP_ROOT}/config/ |
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,32 @@ | ||
# Use this for local development to get the image, compiled for the right platform, into a local cluster without having to push to an image repo. | ||
FROM openapitools/openapi-generator-cli:v6.2.0 AS client-builder | ||
|
||
COPY . /build/ | ||
|
||
RUN mkdir -p /build/pkg | ||
RUN curl -s https://api.cloudtruth.io/api/schema/ > /build/pkg/openapi.yml | ||
|
||
RUN /usr/local/bin/docker-entrypoint.sh generate \ | ||
-i /build/pkg/openapi.yml \ | ||
-g go \ | ||
-o /build/pkg/cloudtruth \ | ||
--additional-properties packageName=cloudtruth \ | ||
--additional-properties isGoSubmodule=true \ | ||
--additional-properties packageVersion=1.0.0 \ | ||
--additional-properties enumClassPrefix=true \ | ||
--type-mappings=object=interface{} | ||
|
||
FROM golang:1.20-alpine AS go-builder | ||
|
||
COPY . /build/ | ||
COPY --from=client-builder /build/pkg /build/pkg | ||
|
||
WORKDIR /build | ||
RUN ls -lart /build/ | ||
RUN go build -o dist/argocd-cloudtruth-plugin | ||
|
||
FROM alpine | ||
ARG CMP_ROOT=/home/argocd/cmp-server | ||
|
||
COPY --from=go-builder /build/dist/argocd-cloudtruth-plugin /usr/bin/ | ||
COPY plugin.yaml ${CMP_ROOT}/config/ |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.