Skip to content

Commit

Permalink
Red Hat changes to support disconnected builds and owners file, and o…
Browse files Browse the repository at this point in the history
…penshift-ci changes

Signed-off-by: Kartikey Mamgain <[email protected]>
  • Loading branch information
Kartikey-star committed Sep 6, 2023
1 parent f32a527 commit 8cc4ba6
Show file tree
Hide file tree
Showing 5,905 changed files with 1,726,412 additions and 31 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/*
12 changes: 9 additions & 3 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 Expand Up @@ -232,4 +238,4 @@ info:
@echo "Version: ${VERSION}"
@echo "Git Tag: ${GIT_TAG}"
@echo "Git Commit: ${GIT_COMMIT}"
@echo "Git Tree State: ${GIT_DIRTY}"
@echo "Git Tree State: ${GIT_DIRTY}"
41 changes: 14 additions & 27 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
maintainers:
- adamreese
- bacongobbler
- hickeyma
- jdolitsky
- marckhouzam
- mattfarina
- sabre1041
- scottrigby
- SlickNik
- technosophos
triage:
- joejulian
- yxxhero
- zonggen
emeritus:
- fibonacci1729
- jascott1
- michelleN
- migmartri
- nebril
- prydonius
- rimusz
- seh
- 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
2 changes: 2 additions & 0 deletions openshift-ci/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.gocache
.xdg-cache
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.12-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
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
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 8cc4ba6

Please sign in to comment.