Skip to content

Commit

Permalink
Initial commit for EKS-D release v1.18.9
Browse files Browse the repository at this point in the history
  • Loading branch information
pst committed Nov 27, 2020
0 parents commit 82a6ccf
Show file tree
Hide file tree
Showing 22,089 changed files with 5,647,710 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Image

on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Get kind binary
uses: engineerd/[email protected]
with:
skipClusterCreation: "true"

- name: Build image
if: startsWith(github.ref, 'refs/tags/v') == false
run: make build-image

- name: Pull image
if: startsWith(github.ref, 'refs/tags/v')
run: make pull-image

- name: Test image
run: make test-image

- name: Docker login
run: |
echo ${{ secrets.DOCKER_AUTH }} | docker login --username kbstci --password-stdin ghcr.io
- name: Push image
if: startsWith(github.ref, 'refs/tags/v') == false
run: |
make push-image
- name: Promote image
if: startsWith(github.ref, 'refs/tags/v')
run: |
make promote-image GITHUB_REF=$GITHUB_REF
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
42 changes: 42 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
VERSION = v1.18.9
GIT_SHA := $(shell echo `git rev-parse --verify HEAD^{commit}`)
IMAGE_NAME = ghcr.io/kbst/kind-eks-d
TEST_IMAGE = ${IMAGE_NAME}:${GIT_SHA}

default: update-src build-image test-image

update-src:
wget https://beta.cdn.model-rocket.aws.dev/kubernetes-1-18/releases/1/artifacts/kubernetes/${VERSION}/kubernetes-src.tar.gz
rm -rf kubernetes-src
mkdir kubernetes-src
tar -xzf kubernetes-src.tar.gz -C kubernetes-src/
rm -f kubernetes-src.tar.gz
for name in `ls kubernetes-src/`; \
do mv "kubernetes-src/$$name" "kubernetes-src/$${name//kubernetes/}"; \
done

build-image:
cd kubernetes-src; \
KUBE_GIT_VERSION=${VERSION} kind build node-image --image ${TEST_IMAGE} --kube-root .

test-image:
kind create cluster --name eks-d-test --image ${TEST_IMAGE}
kubectl cluster-info
kind delete cluster --name eks-d-test

push-image:
docker push ${TEST_IMAGE}

pull-image:
while true; do \
docker pull ${TEST_IMAGE} || continue; \
break; \
done

promote-image:
ifndef GITHUB_REF
$(error GITHUB_REF is not set)
endif
RELEASE_IMAGE = ${IMAGE_NAME}:$(GITHUB_REF:refs/tags/%=%)
docker tag ${TEST_IMAGE} ${RELEASE_IMAGE}
docker push ${RELEASE_IMAGE}
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# KinD Images for Amazon EKS-D

This repository builds KinD (Kubernetes in Docker) images based on the patched Kubernetes source made available by AWS as EKS-D.

## Usage

You need `make` and `kind` installed.

1. Bump the `VERSION` in the Makefile
1. Run `make`
1. Send a PR
1 change: 1 addition & 0 deletions kubernetes-src/.bazelrc
1 change: 1 addition & 0 deletions kubernetes-src/.bazelversion
27 changes: 27 additions & 0 deletions kubernetes-src/.generated_files
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Files that should be ignored by tools which do not want to consider generated
# code.
#
# https://github.com/kubernetes/test-infra/blob/master/prow/plugins/size/size.go
#
# This file is a series of lines, each of the form:
# <type> <name>
#
# Type can be:
# path - an exact path to a single file
# file-name - an exact leaf filename, regardless of path
# path-prefix - a prefix match on the file path
# file-prefix - a prefix match of the leaf filename (no path)
# paths-from-repo - read a file from the repo and load file paths
#

file-prefix zz_generated.

file-name BUILD
file-name types.generated.go
file-name generated.pb.go
file-name generated.proto
file-name types_swagger_doc_generated.go

path-prefix Godeps/
path-prefix vendor/
path-prefix pkg/generated/
10 changes: 10 additions & 0 deletions kubernetes-src/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
hack/verify-flags/known-flags.txt merge=union
test/test_owners.csv merge=union

**/zz_generated.*.go linguist-generated=true
**/types.generated.go linguist-generated=true
**/generated.pb.go linguist-generated=true
**/generated.proto
**/types_swagger_doc_generated.go linguist-generated=true
api/openapi-spec/*.json linguist-generated=true
staging/**/go.sum linguist-generated=true
29 changes: 29 additions & 0 deletions kubernetes-src/.github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug Report
about: Report a bug encountered while operating Kubernetes
labels: kind/bug

---

<!-- 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!
If the matter is security related, please disclose it privately via https://kubernetes.io/security/
-->


**What happened**:

**What you expected to happen**:

**How to reproduce it (as minimally and precisely as possible)**:

**Anything else we need to know?**:

**Environment**:
- Kubernetes version (use `kubectl version`):
- Cloud provider or hardware configuration:
- OS (e.g: `cat /etc/os-release`):
- Kernel (e.g. `uname -a`):
- Install tools:
- Network plugin and version (if this is a network-related bug):
- Others:
11 changes: 11 additions & 0 deletions kubernetes-src/.github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Enhancement Request
about: Suggest an enhancement to the Kubernetes project
labels: kind/feature

---
<!-- Please only use this template for submitting enhancement requests -->

**What would you like to be added**:

**Why is this needed**:
20 changes: 20 additions & 0 deletions kubernetes-src/.github/ISSUE_TEMPLATE/failing-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Failing Test
about: Report continuously failing tests or jobs in Kubernetes CI
labels: kind/failing-test

---

<!-- Please only use this template for submitting reports about continuously failing tests or jobs in Kubernetes CI -->

**Which jobs are failing**:

**Which test(s) are failing**:

**Since when has it been failing**:

**Testgrid link**:

**Reason for failure**:

**Anything else we need to know**:
20 changes: 20 additions & 0 deletions kubernetes-src/.github/ISSUE_TEMPLATE/flaking-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Flaking Test
about: Report flaky tests or jobs in Kubernetes CI
labels: kind/flake

---

<!-- Please only use this template for submitting reports about flaky tests or jobs (pass or fail with no underlying change in code) in Kubernetes CI -->

**Which jobs are flaking**:

**Which test(s) are flaking**:

**Testgrid link**:

**Reason for failure**:

**Anything else we need to know**:
- links to go.k8s.io/triage appreciated
- links to specific failures in spyglass appreciated
18 changes: 18 additions & 0 deletions kubernetes-src/.github/ISSUE_TEMPLATE/support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Support Request
about: Support request or question relating to Kubernetes
labels: triage/support

---

<!--
STOP -- PLEASE READ!
GitHub is not the right place for support requests.
If you're looking for help, check [Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes) and the [troubleshooting guide](https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/).
You can also post your question on the [Kubernetes Slack](http://slack.k8s.io/) or the [Discuss Kubernetes](https://discuss.kubernetes.io/) forum.
If the matter is security related, please disclose it privately via https://kubernetes.io/security/.
-->
18 changes: 18 additions & 0 deletions kubernetes-src/.github/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See the OWNERS docs at https://go.k8s.io/owners

reviewers:
- castrojo
- cblecker
- guineveresaenger
- mrbobbytables
- nikhita
- parispittman
- Phillels
approvers:
- castrojo
- cblecker
- nikhita
- parispittman
- Phillels
labels:
- sig/contributor-experience
67 changes: 67 additions & 0 deletions kubernetes-src/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://git.k8s.io/community/contributors/guide#your-first-contribution and developer guide https://git.k8s.io/community/contributors/devel/development.md#development-guide
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request. For reference on required PR/issue labels, read here:
https://git.k8s.io/community/contributors/devel/sig-release/release.md#issuepr-kind-label
3. Ensure you have added or ran the appropriate tests for your PR: https://git.k8s.io/community/contributors/devel/sig-testing/testing.md
4. If you want *faster* PR reviews, read how: https://git.k8s.io/community/contributors/guide/pull-requests.md#best-practices-for-faster-reviews
5. If the PR is unfinished, see how to mark it: https://git.k8s.io/community/contributors/guide/pull-requests.md#marking-unfinished-pull-requests
-->

**What type of PR is this?**
> Uncomment only one ` /kind <>` line, hit enter to put that in a new line, and remove leading whitespace from that line:
>
> /kind api-change
> /kind bug
> /kind cleanup
> /kind deprecation
> /kind design
> /kind documentation
> /kind failing-test
> /kind feature
> /kind flake
**What this PR does / why we need it**:

**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related issues/tests in a comment and do not use `Fixes`_*
-->
Fixes #

**Special notes for your reviewer**:

**Does this PR introduce a user-facing change?**:
<!--
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
For more information on release notes see: https://git.k8s.io/community/contributors/guide/release-notes.md
-->
```release-note
```

**Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.**:

<!--
This section can be blank if this pull request does not require a release note.
When adding links which point to resources within git repositories, like
KEPs or supporting documentation, please reference a specific commit and avoid
linking directly to the master branch. This ensures that links reference a
specific point in time, rather than a document that may change over time.
See here for guidance on getting permanent links to files: https://help.github.com/en/articles/getting-permanent-links-to-files
Please use the following format for linking documentation:
- [KEP]: <link>
- [Usage]: <link>
- [Other doc]: <link>
-->
```docs
```
14 changes: 14 additions & 0 deletions kubernetes-src/.github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Security Policy

## Supported Versions

Information about supported Kubernetes versions can be found on the
[Kubernetes version and version skew support policy] page on the Kubernetes website.

## Reporting a Vulnerability

Instructions for reporting a vulnerability can be found on the
[Kubernetes Security and Disclosure Information] page.

[Kubernetes version and version skew support policy]: https://kubernetes.io/docs/setup/release/version-skew-policy/#supported-versions
[Kubernetes Security and Disclosure Information]: https://kubernetes.io/docs/reference/issues-security/security/#report-a-vulnerability
Loading

0 comments on commit 82a6ccf

Please sign in to comment.