-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
6,833 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM registry.suse.com/bci/golang:1.19 | ||
|
||
ARG DAPPER_HOST_ARCH | ||
ENV ARCH=${DAPPER_HOST_ARCH} | ||
|
||
ARG HTTP_PROXY | ||
ARG HTTPS_PROXY | ||
ENV HTTP_PROXY=${HTTP_PROXY} HTTPS_PROXY=${HTTPS_PROXY} | ||
RUN zypper ref && \ | ||
zypper -n up && \ | ||
zypper -n in vim wget git tar gzip && \ | ||
zypper clean | ||
|
||
RUN curl -sL https://get.helm.sh/helm-v3.3.0-linux-${ARCH}.tar.gz | \ | ||
tar xvzf - -C /usr/local/bin --strip-components=1 | ||
# RUN go env -w GOPROXY=https://goproxy.cn,direct | ||
# pre-copy/cache go.mod for pre-downloading dependencies | ||
COPY go.mod go.sum ./ | ||
RUN go mod download && go mod verify | ||
|
||
ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS | ||
ENV DAPPER_SOURCE /go/src/github.com/STARRY-S/cce-operator/ | ||
ENV DAPPER_OUTPUT ./bin ./dist | ||
ENV DAPPER_DOCKER_SOCKET true | ||
WORKDIR ${DAPPER_SOURCE} | ||
|
||
ENTRYPOINT ["./scripts/entry.sh"] | ||
CMD ["ci"] |
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,24 @@ | ||
SCRIPTS := build test ci validate | ||
.PHONY: $(SCRIPTS) clean generate help | ||
|
||
.dapper: | ||
@echo Downloading dapper | ||
@curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m` > .dapper.tmp | ||
@chmod +x .dapper.tmp | ||
@./.dapper.tmp -v | ||
@mv .dapper.tmp .dapper | ||
|
||
$(SCRIPTS): .dapper | ||
@./.dapper $@ | ||
|
||
clean: | ||
@./scripts/clean.sh | ||
|
||
generate: | ||
@go generate ./main.go | ||
|
||
help: | ||
@echo "Usage:" | ||
@echo " make build - Build executable files in 'bin' folder" | ||
@echo " make test - Run unit test" | ||
@echo " make generate - Generate codes & CRDs" |
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,30 @@ | ||
# cce-operator- | ||
## cce-operator | ||
|
||
> WIP | ||
Usage: | ||
|
||
```sh | ||
make generate | ||
go build . | ||
|
||
kubectl apply -f ./charts/cce-operator-crd/templates/crds.yaml | ||
kubectl apply -f ./examples/create-example.yaml | ||
./cce-operator --debug | ||
``` | ||
|
||
## License | ||
|
||
Copyright 2023 [Rancher Labs, Inc](https://rancher.com). | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
Oops, something went wrong.