Skip to content

Commit

Permalink
Merge pull request #1 from anyscale/brent/k8s
Browse files Browse the repository at this point in the history
Initial Release for Kubernetes Anyscale Foundation Modules
  • Loading branch information
domcatalano authored Sep 6, 2024
2 parents 462c7d0 + 10f47bb commit 76435da
Show file tree
Hide file tree
Showing 88 changed files with 4,387 additions and 422 deletions.
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

# Use this file to define individuals or teams that are responsible for code in a repository.
# Read more: <https://help.github.com/articles/about-codeowners/>

# Order is important: the last matching pattern has the highest precedence

# These owners will be the default owners for everything
* @anyscale/solutionarchitects
78 changes: 78 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Bug Report
description: Issue/Bug with the Terraform Modules. Please include repro steps!
title: "[bug]: "
labels: ["bug", "P1", "terraform-modules"]
assignees: ["brent-anyscale"]

body:
- type: markdown
attributes:
value: |
Thank you for taking the time to file a bug report.
Please make sure to search for existing issues before filing a new one.
- type: textarea
attributes:
label: Current Behavior
description: A clear description of what the bug is and how it manifests.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Steps to Reproduce
description: Please explain the steps required to duplicate this issue.
validations:
required: true
- type: checkboxes
attributes:
label: Which module(s)?
description: "Please select which module(s) this issue impacts."
options:
- label: Root Anyscale Module
- label: anyscale-k8s-configmap
- label: anyscale-k8s-helm
- label: anyscale-k8s-namespace
- type: dropdown
attributes:
label: Anyscale Terraform Module version
description: What version of the modules are you using?
multiple: false
options:
- v0.1.x
validations:
required: true
- type: dropdown
attributes:
label: Terraform version
description: What version of Terraform are you using?
multiple: false
options:
- 1.6.x (Default)
- 1.5.x
- 1.4.x
- 1.3.x
- 1.2.x
- 1.1.x
- 1.0.x
- Other
validations:
required: true
- type: dropdown
attributes:
label: Is it blocking work?
description: Please choose one?
multiple: false
options:
- "no"
- "yes"
validations:
required: true
- type: textarea
attributes:
label: Additional Information
description: List any other information that is relevant to your issue.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Feature Request
description: Feature request for the Terraform Modules.
title: "[Feature]: "
labels: ["feature", "P1", "terraform-modules"]
assignees: ["brent-anyscale"]

body:
- type: markdown
attributes:
value: |
Thank you for taking the time to request a new feature.
Please make sure to search for existing issues before filing a new one.
- type: textarea
attributes:
label: What are you looking for?
description: Please provide a detailed explanation of the new feature request you are looking for.
placeholder: "Feature request!!"
validations:
required: true
- type: checkboxes
attributes:
label: Which module(s)?
description: "Please select which module(s) this issue impacts."
options:
- label: Root Anyscale Module
- label: anyscale-k8s-configmap
- label: anyscale-k8s-helm
- label: anyscale-k8s-namespace
- type: dropdown
attributes:
label: Is it blocking work?
description: Please choose one?
multiple: false
options:
- "no"
- "yes"
validations:
required: true
- type: dropdown
attributes:
label: Terraform version
description: What version of Terraform are you using?
multiple: false
options:
- 1.6.x (Default)
- 1.5.x
- 1.4.x
- 1.3.x
- 1.2.x
- 1.1.x
- 1.0.x
- Other
validations:
required: false
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/security-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Security Issue
description: General security issue
title: '[Security]: '
labels: ["security", "P0", "terraform-modules"]
assignees: ["brent-anyscale"]

body:
- type: markdown
attributes:
value: |
Thank you for taking the time to report a security issue.
If this is a critical security issue that needs to be addressed immediately, email [email protected]
- type: textarea
attributes:
label: What is the security issue?
description: Please provide a detailed explanation of the security issue.
value: "<<SECURITY ISSUE>>"
validations:
required: true
- type: checkboxes
attributes:
label: Which module(s)?
description: "Please select which module(s) this issue impacts."
options:
- label: Root Anyscale Module
- label: anyscale-k8s-configmap
- label: anyscale-k8s-helm
- label: anyscale-k8s-namespace
26 changes: 26 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Pull request checklist

Please check if your PR fulfills the following requirements:
- [ ] pre-commit has been run
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] All tests passing
- [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features)

## Pull Request Type

- [ ] Bugfix
- [ ] New feature
- [ ] Refactoring (no functional changes)
- [ ] Documentation change
- [ ] Other (please describe):

## Does this introduce a breaking change?
- [ ] Yes
- [ ] No

<!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as screenshots. -->
56 changes: 56 additions & 0 deletions .github/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
version-template: "$MAJOR.$MINOR.$PATCH"
version-resolver:
major:
labels:
- "major"
minor:
labels:
- "minor"
- "enhancement"
patch:
labels:
- "auto-update"
- "patch"
- "fix"
- "bugfix"
- "bug"
- "hotfix"
- "documentation"
- "examples"
- "unittests"
- "github"
default: "minor"

categories:
- title: "🚀 Enhancements"
labels:
- "enhancement"
- "patch"
- title: "🐛 Bug Fixes"
labels:
- "fix"
- "bugfix"
- "bug"
- "hotfix"
- title: "📚 Documentation/Examples"
labels:
- "documentation"
- "examples"
- title: "Github Chores"
labels:
- "github"
# - title: 'Automatic Updates'
# labels:
# - 'auto-update'

change-template: |
<details>
<summary>$TITLE @$AUTHOR (#$NUMBER)</summary>
$BODY
</details>
template: |
$CHANGES
20 changes: 20 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# See https://github.com/actions/labeler for details
# "dependencies" label for any changes in dependency files
# Add 'repo' label to any root file changes
documentation:
- examples/**/*
- README.md

examples:
- examples/**/*

terraform:
- "*.tf"
- modules/**/*

unittests:
- test/**/*
- modules/**/test/*

github:
- .github/**/*
20 changes: 20 additions & 0 deletions .github/workflows/branch-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: branch-cleanup
on:
pull_request:
branches:
- main
permissions:
contents: read

jobs:
cleanup-branch:
name: Auto delete branch on merge
runs-on: ubuntu-latest
permissions:
# write permission is required to create a github release
contents: write
steps:
- uses: cloudposse/actions/github/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
NO_BRANCH_DELETED_EXIT_CODE: 0
44 changes: 44 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: create-release

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [closed]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
create_release:
if: github.event.pull_request.merged == true
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# Get PR from merged commit to main
- uses: actions-ecosystem/action-get-merged-pull-request@v1
id: get-merged-pull-request
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
with:
publish: ${{ !contains(steps.get-merged-pull-request.outputs.labels, 'no-release') }}
# prerelease: false
config-name: create-release.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Pull Request Labeler"
on:
- pull_request_target

permissions: read-all

jobs:
add-label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/labeler.yml"
sync-labels: true
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI/CD Pipeline

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions: read-all

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
unit-tests:
runs-on: ubuntu-latest
name: Terraform Unit Tests
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run unit tests
run: echo "Unit tests (not active)"
Loading

0 comments on commit 76435da

Please sign in to comment.