Skip to content

Commit

Permalink
red hat chnages to support disconncted builds
Browse files Browse the repository at this point in the history
Signed-off-by: Kartikey-star <[email protected]>
  • Loading branch information
Kartikey-star committed Feb 15, 2024
1 parent 2a2fb3b commit fa6e939
Show file tree
Hide file tree
Showing 5,989 changed files with 1,763,417 additions and 32 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
.vscode/
_dist/
bin/
vendor/
# Ignores charts pulled for dependency build tests
cmd/helm/testdata/testcharts/issue-7233/charts/*
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,14 @@ $(GOIMPORTS):

.PHONY: build-cross
build-cross: LDFLAGS += -extldflags "-static"
build-cross: $(GOX)
GOFLAGS="-trimpath" GO111MODULE=on CGO_ENABLED=0 $(GOX) -parallel=3 -output="_dist/{{.OS}}-{{.Arch}}/$(BINNAME)" -osarch='$(TARGETS)' $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm
build-cross:
GO111MODULE=on CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o "_dist/linux-amd64/$(BINNAME)" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm
GO111MODULE=on CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -o "_dist/darwin-amd64/$(BINNAME)" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm
GO111MODULE=on CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -o "_dist/darwin-arm64/$(BINNAME)" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm
GO111MODULE=on CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -o "_dist/windows-amd64/$(BINNAME).exe" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm
GO111MODULE=on CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -o "_dist/linux-arm64/$(BINNAME)" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm
GO111MODULE=on CGO_ENABLED=0 GOARCH=ppc64le GOOS=linux go build -o "_dist/linux-ppc64le/$(BINNAME)" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm
GO111MODULE=on CGO_ENABLED=0 GOARCH=s390x GOOS=linux go build -o "_dist/linux-s390x/$(BINNAME)" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm

.PHONY: dist
dist:
Expand Down
44 changes: 15 additions & 29 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
maintainers:
- hickeyma
- joejulian
- jdolitsky
- marckhouzam
- mattfarina
- sabre1041
- scottrigby
- technosophos
triage:
- yxxhero
- zonggen
- gjenkins8
- z4ce
emeritus:
- adamreese
- bacongobbler
- fibonacci1729
- jascott1
- michelleN
- migmartri
- nebril
- prydonius
- rimusz
- seh
- SlickNik
- thomastaylor312
- vaikas-google
- viglesiasce
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- dperaza4dustbit
- pmacik
- Kartikey-star

reviewers:
- sbose78
- baijum
- pmacik
- dperaza4dustbit
- mmulholla
- tisutisu
- SecKatie
18 changes: 18 additions & 0 deletions openshift-ci/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This Makefile contains downstream fixes/updates to avoid conflicts while merging upstream changes to the original `Makefile` file.

include ./Makefile

export GOCACHE := $(PWD)/openshift-ci/.gocache
export XDG_CACHE_HOME := $(PWD)/openshift-ci/.xdg-cache

export ACCEPTANCE_DIR := $(CURDIR)/acceptance-testing
export ACCEPTANCE_RUN_TESTS := repos.robot
export ROBOT_HELM_V3 := 1
export ROBOT_DEBUG_LEVEL := 3
export ROBOT_RUN_TESTS=.
export ROBOT_HELM_PATH=/usr/bin
export ROBOT_OPTS=--xunit=results.xml


.PHONY: test-completion
test-completion: test-acceptance-completion
51 changes: 51 additions & 0 deletions openshift-ci/dockerfile.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FROM registry.access.redhat.com/ubi9/ubi:latest

ARG GO_PACKAGE_PATH=github.com/redhat-developer/helm
ARG GO_VERSION=1.19

ENV GIT_COMMITTER_NAME devtools
ENV GIT_COMMITTER_EMAIL [email protected]

ENV LANG C.UTF-8

ENV GOPATH /go
ENV GOCACHE /tmp/.gocache

ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
ENV ACCEPTANCE_DIR /tmp/helm-acceptance-testing
ENV ARTIFACTS_DIR /tmp/artifacts
ENV ROBOT_HELM_V3 1
ENV ROBOT_DEBUG_LEVEL 3
ENV ROBOT_RUN_TESTS .
ENV ROBOT_HELM_PATH /usr/bin
ENV ROBOT_OPTS --xunit=results.xml

RUN yum install -y \
git \
make \
gcc \
python3 \
python3-pip \
&& yum clean all

RUN pip3 install -q virtualenv

WORKDIR /tmp

RUN mkdir -p $GOPATH/bin $GOCACHE

RUN curl -Lo go.tar.gz https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz && tar -xf go.tar.gz -C /usr/local && rm -vf go.tar.gz

RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl $GOPATH/bin/

RUN curl -Lo /usr/local/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-$(uname)-amd64 && chmod +x /usr/local/bin/kind

RUN mkdir -p ${GOPATH}/src/${GO_PACKAGE_PATH}/

WORKDIR ${GOPATH}/src/${GO_PACKAGE_PATH}

COPY . .

RUN if [ ! -d 'acceptance-testing' ]; then git clone -b helm-3.13-openshift --depth=1 https://github.com/redhat-developer/helm-acceptance-testing.git acceptance-testing; else cd acceptance-testing; git pull; fi

RUN chmod -R go+wr $GOPATH $GOCACHE /etc/passwd /etc/group
201 changes: 201 additions & 0 deletions vendor/github.com/AdaLogics/go-fuzz-headers/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fa6e939

Please sign in to comment.