Skip to content

Commit

Permalink
bootstrap cluster-stack-provider-openstack (#1)
Browse files Browse the repository at this point in the history
this commit bootstrap cluster-stack-provider-openstack and adds
necessary make targets, tiltfile, github workflows etc.

Signed-off-by: Anurag <anurag.kumar@syself.com>
  • Loading branch information
kranurag7 authored Dec 7, 2023
1 parent ea03ed8 commit a19d111
Show file tree
Hide file tree
Showing 3,995 changed files with 1,438,021 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 14 additions & 0 deletions .boilerplate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"dirs_to_skip": [
"tilt_modules",
"api/v1alpha1/zz_generated.deepcopy.go",
"hack/ci-e2e-get-token.sh",
"hack/tools/",
"vendor",
".cache",
".pkg"
],
"not_generated_files_to_skip": [
"hack/boilerplate/boilerplate.py"
]
}
1 change: 1 addition & 0 deletions .builder-image-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
# Ignore build and test binaries.
bin/
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: 'Bug report'
about: Tell us about a problem you are experiencing.

---

/kind bug

**What steps did you take and what happened:**
[A clear and concise description of what the bug is.]


**What did you expect to happen:**


**Anything else you would like to add:**
[Miscellaneous information that will assist in solving the issue.]


**Environment:**

- cluster-stack-provider-openstack version:
- Kubernetes version: (use `kubectl version`)
- OS (e.g. from `/etc/os-release`):
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: 'Feature request'
about: Suggest an idea for this project.

---

/kind feature

**Describe the solution you'd like**
[A clear and concise description of what you want to happen.]


**Anything else you would like to add:**
[Miscellaneous information that will assist in solving the issue.]


**Environment:**

- cluster-stack-provider-openstack version:
- Kubernetes version: (use `kubectl version`)
- OS (e.g. from `/etc/os-release`):
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/proposal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Enhancement Proposal
about: Propose larger efforts, breaking changes, or new features

---

***Goals***
1. Goal 1
1. Goal 2

***Non-Goals/Future Work***
1. Non-Goal 1
1. Non-Goal 2

**User Story**

As a [developer/user/operator] I would like to [high level description] for [reasons]

**Detailed Description**

[A clear and concise description of what you want to happen.]

**Contract changes [optional]**

[Describe contract changes between SCS Cluster Stack Provider Openstack controllers, if applicable.]

**Data model changes [optional]**

[Describe contract changes between SCS Cluster Stack Provider Openstack controllers, if applicable.]

/kind proposal
29 changes: 29 additions & 0 deletions .github/actions/metadata/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Metadata"
description: "Generate Image Metadata"
inputs:
metadata_flavor:
description: "metadata_flavor"
required: true
metadata_tags:
description: "metadata_tags"
required: true
outputs:
tags:
description: "generated image tags"
value: ${{ steps.meta.outputs.tags }}
labels:
description: "generated image labels"
value: ${{ steps.meta.outputs.labels }}
version:
description: "generated image version"
value: ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
runs:
using: "composite"
steps:
- name: Docker manager metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: ${{ inputs.metadata_flavor }}
tags: ${{ inputs.metadata_tags }}
30 changes: 30 additions & 0 deletions .github/actions/setup-go/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Setup Go"
description: "Setup Go"
runs:
using: "composite"
steps:
- name: Install go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: "go.mod"
cache: true
cache-dependency-path: go.sum
- id: go-cache-paths
shell: bash
run: |
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
- name: Go Mod Cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mod-
- name: Go Build Cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-build-
16 changes: 16 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
area/code:
- "controllers/**/*"
- "pkg/**/*"
area/api:
- "api/**/*"
- "config/crd/**/*"
area/github:
- ".github/**/*"
area/hack:
- "hack/**/*"
- "Makefile"
area/test:
- "test/**/*"
area/templates:
- "templates/**/*"
80 changes: 80 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
# Area
- name: area/code
color: "72ccf3"
description: >-
Changes made in the code directory
- name: area/api
color: "72ccf3"
description: >-
Changes made in the api directory
- name: area/github
color: "72ccf3"
description: >-
Changes made in the github directory
- name: area/hack
color: "72ccf3"
description: >-
Changes made in the hack directory
- name: area/test
color: "72ccf3"
description: >-
Changes made in the test directory
- name: area/templates
color: "72ccf3"
description: >-
Changes made in the templates directory
# Update
- name: update/container
color: "ffc300"
- name: update/github-action
color: "ffc300"
- name: update/helm
color: "ffc300"
- name: update/go
color: "ffc300"
# Semantic Type
- name: type/patch
color: "FFEC19"
- name: type/minor
color: "FF9800"
- name: type/major
color: "F6412D"
# Size
- name: size/XS
color: "009900"
description: >-
Denotes a PR that changes 0-20 lines, ignoring generated files.
- name: size/S
color: "77bb00"
description: >-
Denotes a PR that changes 20-50 lines, ignoring generated files.
- name: size/M
color: "eebb00"
description: >-
Denotes a PR that changes 50-200 lines, ignoring generated files.
- name: size/L
color: "ee9900"
description: >-
Denotes a PR that changes 200-800 lines, ignoring generated files.
- name: size/XL
color: "ee5500"
description: >-
Denotes a PR that changes 800-2000 lines, ignoring generated files.
- name: size/XXL
color: "ee0000"
description: >-
Denotes a PR that changes 2000+ lines, ignoring generated files.
# Uncategorized
- name: bug
color: "ee0701"
- name: do-not-merge
color: "ee0701"
- name: docs
color: "F4D1B7"
- name: enhancement
color: "84b6eb"
- name: link-checker
color: "7B55D7"
- name: question
color: "cc317c"
19 changes: 19 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!-- If this is your first PR, welcome! Please make sure you read the [contributing guidelines](../CONTRIBUTING.md#contributing-a-patch). -->
<!-- please add an icon to the title of this PR and delete this line and similar ones -->
<!-- the icon will be either ⚠️ (:warning:, major or breaking changes), ✨ (:sparkles:, feature additions), 🐛 (:bug:, patches and bugfixes), 📖 (:book:, documentation or proposals), or 🌱 (:seedling:, minor or other) -->

**What this PR does / why we need it**:

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

_Please confirm that if this PR changes any image versions, then that's the sole change this PR makes._

**TODOs**:

- [ ] squash commits
- [ ] include documentation
- [ ] add unit tests

47 changes: 47 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
extends: [
":dependencyDashboard",
":semanticPrefixFixDepsChoreOthers",
":autodetectRangeStrategy",
":disableRateLimiting",
":semanticCommits",
"helpers:pinGitHubActionDigests",
"github>whitesource/merge-confidence:beta",
"github>sovereignCloudStack/cluster-stack-provider-openstack//.github/renovate/commitMessage.json5",
"github>sovereignCloudStack/cluster-stack-provider-openstack//.github/renovate/approval.json5",
"github>sovereignCloudStack/cluster-stack-provider-openstack//.github/renovate/golang.json5",
"github>sovereignCloudStack/cluster-stack-provider-openstack//.github/renovate/groups.json5",
"github>sovereignCloudStack/cluster-stack-provider-openstack//.github/renovate/labels.json5",
"github>sovereignCloudStack/cluster-stack-provider-openstack//.github/renovate/regexManagers.json5"
],
platform: "github",
baseBranches: ["main"],
onboarding: false,
requireConfig: "ignored",
timezone: "Europe/Berlin",
// repo config
repositories: ["sovereignCloudStack/cluster-stack-provider-openstack"],
ignorePaths: [
"**/vendor/**",
"**/test/**",
"**/tests/**"
],
// username: "", #TODO
// gitAuthor: "", #TODO
// PR config
dependencyDashboardTitle: "Dependency Dashboard 🤖",
dependencyDashboardHeader: "",
prFooter: "",
suppressNotifications: ["prIgnoreNotification"],
rebaseWhen: "conflicted",
commitBodyTable: true,
prHourlyLimit: 1,
printConfig: true,
pruneStaleBranches: true,
allowPostUpgradeCommandTemplating: true,
separateMajorMinor: true,
separateMultipleMajor: true,
separateMinorPatch: true,
enabledManagers: ["dockerfile", "gomod", "github-actions", "regex"],
recreateClosed: true,
}
11 changes: 11 additions & 0 deletions .github/renovate/approval.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
packageRules: [
{
matchUpdateTypes: ["major", "minor"],
matchManagers: ["gomod"],
matchDepTypes: ["golang"],
description: "Ask for approval for golang updates",
dependencyDashboardApproval: true,
},
],
}
18 changes: 18 additions & 0 deletions .github/renovate/commitMessage.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"commitMessagePrefix": ":seedling: ",
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "to {{newVersion}}",
"commitMessageSuffix": "",
"group": { commitMessageTopic: "{{{groupName}}} group" },
"packageRules": [
{
"matchDatasources": ["helm"],
"commitMessageTopic": "chart {{depName}}"
},
{
"matchDatasources": ["docker"],
"commitMessageTopic": "image {{depName}}",
"commitMessageExtra": "to {{#if isSingleVersion}}v{{{newVersion}}}{{else}}{{{newValue}}}{{/if}}"
}
]
}
Loading

0 comments on commit a19d111

Please sign in to comment.