-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(litmus-agent): adding litmus-helm-agent (#309)
* chore(litmus-agent): adding litmus-helm-agent Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
- Loading branch information
1 parent
f617aac
commit ca6f0f2
Showing
11 changed files
with
3,275 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Build Image | ||
FROM golang:1.18.3 AS build | ||
|
||
ARG TARGETOS=linux | ||
ARG TARGETARCH | ||
|
||
|
||
RUN export GOOS=${TARGETOS} && \ | ||
export GOARCH=${TARGETARCH} | ||
|
||
ADD . /litmus | ||
WORKDIR /litmus | ||
|
||
RUN CGO_ENABLED=0 go build -o /output/litmus-agent ./main.go | ||
|
||
FROM litmuschaos/infra-alpine:latest | ||
|
||
COPY --from=build /output/ /litmus | ||
|
||
CMD ["./litmus-agent"] |
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,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ ! -z "${DNAME}" ] && [ ! -z "${DPASS}" ]; | ||
then | ||
docker login -u "${DNAME}" -p "${DPASS}"; | ||
#Push to docker hub repository with latest tag | ||
docker buildx build . -f Dockerfile --progress plane --push --no-cache --platform linux/amd64,linux/arm64 --tag litmuschaos/litmus-helm-agent:latest | ||
else | ||
echo "No docker credentials provided. Skip uploading litmuschaos/litmus-helm-agent:latest to docker hub"; | ||
fi; |
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,39 @@ | ||
module litmus-helm-agent | ||
|
||
go 1.16 | ||
|
||
require ( | ||
github.com/buger/jsonparser v1.1.1 | ||
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 | ||
github.com/golang-jwt/jwt v3.2.2+incompatible | ||
github.com/litmuschaos/litmusctl v0.12.1-0.20221121121306-e59872117d16 | ||
k8s.io/api v0.23.3 | ||
k8s.io/apimachinery v0.23.3 | ||
k8s.io/client-go v12.0.0+incompatible | ||
) | ||
|
||
replace ( | ||
k8s.io/api => k8s.io/api v0.21.2 | ||
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.21.2 | ||
k8s.io/apimachinery => k8s.io/apimachinery v0.21.2 | ||
k8s.io/apiserver => k8s.io/apiserver v0.21.2 | ||
k8s.io/cli-runtime => k8s.io/cli-runtime v0.21.2 | ||
k8s.io/client-go => k8s.io/client-go v0.21.2 | ||
k8s.io/cloud-provider => k8s.io/cloud-provider v0.21.2 | ||
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.21.2 | ||
k8s.io/code-generator => k8s.io/code-generator v0.21.2 | ||
k8s.io/component-base => k8s.io/component-base v0.21.2 | ||
k8s.io/cri-api => k8s.io/cri-api v0.21.2 | ||
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.21.2 | ||
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.21.2 | ||
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.21.2 | ||
k8s.io/kube-proxy => k8s.io/kube-proxy v0.21.2 | ||
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.21.2 | ||
k8s.io/kubectl => k8s.io/kubectl v0.21.2 | ||
k8s.io/kubelet => k8s.io/kubelet v0.21.2 | ||
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.21.2 | ||
k8s.io/metrics => k8s.io/metrics v0.21.2 | ||
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.21.2 | ||
) | ||
|
||
replace github.com/docker/docker => github.com/moby/moby v0.7.3-0.20190826074503-38ab9da00309 // Required by Helm |
Oops, something went wrong.