Skip to content

Commit 566c4c6

Browse files
committed
chore: initial commit
Signed-off-by: Avi Miller <[email protected]>
0 parents  commit 566c4c6

File tree

6,510 files changed

+1713872
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,510 files changed

+1713872
-0
lines changed

.dockerignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
2+
# Ignore all files which are not go type
3+
!**/*.go
4+
!**/*.mod
5+
!**/*.sum

.github/ISSUE_TEMPLATE/bug-report.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug encountered using CAPOCI
4+
labels: bug
5+
6+
---
7+
8+
<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!-->
9+
10+
11+
**What happened**:
12+
13+
**What you expected to happen**:
14+
15+
**How to reproduce it (as minimally and precisely as possible)**:
16+
17+
**Anything else we need to know?**:
18+
19+
**Environment:**
20+
21+
- CAPOCI version:
22+
- Cluster-API version (use `clusterctl version`):
23+
- Kubernetes version (use `kubectl version`):
24+
- Docker version (use `docker info`):
25+
- OS (e.g. from `/etc/os-release`):
26+
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Documentation Request
3+
about: Suggest what should be documented in CAPOCI
4+
labels: documentation
5+
6+
---
7+
<!-- Please only use this template for submitting documentation requests -->
8+
9+
**What would you like to be documented**:
10+
11+
**Why is this needed**:

.github/ISSUE_TEMPLATE/enhancement.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Enhancement Request
3+
about: Suggest an enhancement to CAPOCI
4+
labels: feature
5+
6+
---
7+
<!-- Please only use this template for submitting enhancement requests -->
8+
9+
**What would you like to be added**:
10+
11+
**Why is this needed**:

.github/pull_request_template.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
**What this PR does / why we need it**:
3+
4+
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
5+
Fixes #

.github/workflows/release.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
# Build and publish artifacts for a release
6+
tags:
7+
- "v*.*.*"
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Log into GitHub Container Registry
18+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${GITHUB_ACTOR,,} --password-stdin
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v2
22+
with:
23+
go-version: 1.17
24+
25+
- name: Build Release Artifacts
26+
run: RELEASE_TAG="${{ github.ref_name }}" make release
27+
28+
- uses: actions/upload-artifact@v2
29+
with:
30+
name: CAPOCI Artifacts
31+
path: out/

.gitignore

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
# Binaries for programs and plugins
3+
*.exe
4+
*.exe~
5+
*.dll
6+
*.so
7+
*.dylib
8+
bin
9+
10+
# Test binary, build with `go test -c`
11+
*.test
12+
13+
# Output of the go coverage tool, specifically when used with LiteIDE
14+
*.out
15+
testbin/
16+
out/
17+
18+
# Kubernetes Generated files - skip generated files, except for vendored files
19+
20+
!vendor/**/zz_generated.*
21+
22+
# editor and IDE paraphernalia
23+
.idea
24+
*.swp
25+
*.swo
26+
*~
27+
28+
# e2e tests generated files
29+
.sshkey
30+
.sshkey.pub
31+
_artifacts/
32+
config/default/manager_image_patch.yaml-e
33+
config/default/manager_pull_policy.yaml-e
34+
test/e2e/config/e2e_conf-envsubst.yaml
35+
test/e2e/data/infrastructure-oci/v1beta1/cluster-template-antrea.yaml
36+
test/e2e/data/infrastructure-oci/v1beta1/cluster-template-ccm-testing.yaml
37+
test/e2e/data/infrastructure-oci/v1beta1/cluster-template-kcp-remediation.yaml
38+
test/e2e/data/infrastructure-oci/v1beta1/cluster-template-md-remediation.yaml
39+
test/e2e/data/infrastructure-oci/v1beta1/cluster-template-node-drain.yaml
40+
test/e2e/data/infrastructure-oci/v1beta1/cluster-template-oracle-linux.yaml
41+
test/e2e/data/infrastructure-oci/v1beta1/cluster-template.yaml
42+
test/e2e/data/infrastructure-oci/v1beta1/cluster-template-custom-networking-seclist.yaml
43+
test/e2e/data/infrastructure-oci/v1beta1/cluster-template-custom-networking-nsg.yaml
44+
test/e2e/data/infrastructure-oci/v1beta1/cluster-template-multiple-node-nsg.yaml

CONTRIBUTING.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Contributing to this repository
2+
3+
We welcome your contributions! There are multiple ways to contribute.
4+
5+
## Opening issues
6+
7+
For bugs or enhancement requests, please file a GitHub issue unless it's
8+
security related. When filing a bug remember that the better written the bug is,
9+
the more likely it is to be fixed. If you think you've found a security
10+
vulnerability, do not raise a GitHub issue and follow the instructions in our
11+
[security policy](./SECURITY.md).
12+
13+
## Contributing code
14+
15+
We welcome your code contributions. Before submitting code via a pull request,
16+
you will need to have signed the [Oracle Contributor Agreement][OCA] (OCA) and
17+
your commits need to include the following line using the name and e-mail
18+
address you used to sign the OCA:
19+
20+
```text
21+
Signed-off-by: Your Name <[email protected]>
22+
```
23+
24+
This can be automatically added to pull requests by committing with `--sign-off`
25+
or `-s`, e.g.
26+
27+
```text
28+
git commit --signoff
29+
```
30+
31+
Only pull requests from committers that can be verified as having signed the OCA
32+
can be accepted.
33+
34+
## Pull request process
35+
36+
1. Ensure there is an issue created to track and discuss the fix or enhancement
37+
you intend to submit.
38+
1. Fork this repository
39+
1. Create a branch in your fork to implement the changes. We recommend using
40+
the issue number as part of your branch name, e.g. `1234-fixes`
41+
1. Ensure that any documentation is updated with the changes that are required
42+
by your change.
43+
1. Ensure that any samples are updated if the base image has been changed.
44+
1. Submit the pull request. *Do not leave the pull request blank*. Explain exactly
45+
what your changes are meant to do and provide simple steps on how to validate
46+
your changes. Ensure that you reference the issue you created as well.
47+
1. We will assign the pull request to 2-3 people for review before it is merged.
48+
49+
## Code of conduct
50+
51+
Follow the [Golden Rule](https://en.wikipedia.org/wiki/Golden_Rule). If you'd
52+
like more specific guidelines, see the [Contributor Covenant Code of Conduct][COC].
53+
54+
[OCA]: https://oca.opensource.oracle.com
55+
[COC]: https://www.contributor-covenant.org/version/1/4/code-of-conduct/

Dockerfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Build the manager binary
2+
FROM golang:1.17.3 as builder
3+
4+
WORKDIR /workspace
5+
# Copy the Go Modules manifests
6+
COPY go.mod go.mod
7+
COPY go.sum go.sum
8+
9+
ARG package=.
10+
ARG ARCH
11+
ARG LDFLAGS
12+
13+
# Copy the go source
14+
COPY main.go main.go
15+
COPY api/ api/
16+
COPY controllers/ controllers/
17+
COPY cloud/ cloud/
18+
COPY vendor/ vendor/
19+
20+
# Build
21+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -ldflags "${LDFLAGS} -extldflags '-static'" -o manager ${package}
22+
23+
FROM ghcr.io/oracle/oraclelinux:8-slim
24+
WORKDIR /
25+
COPY --from=builder /workspace/manager .
26+
USER 65532:65532
27+
28+
ENTRYPOINT ["/manager"]

0 commit comments

Comments
 (0)