Skip to content

Commit 33b4e93

Browse files
authored
Merge pull request kubernetes-sigs#5 from multicluster-runtime/sttts-plumbing
🌱 Add controller-runtime plumbing
2 parents d410f54 + 506aeac commit 33b4e93

Some content is hidden

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

45 files changed

+1302
-55
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!-- please add a :warning: (`:warning:`) to the title of this PR, and delete this line and similar ones -->
2+
3+
<!-- What does this do, and why do we need it? -->
4+
5+
<!-- Why does this have to be a breaking change (what else did you consider)? -->
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!-- please add a :bug: (`:bug:`) to the title of this PR, and delete this line and similar ones -->
2+
3+
<!-- What does this do, and why do we need it? -->
4+
5+
<!-- What issue does this fix (e.g. Fixes #XYZ) -->
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- please add a :sparkles: (`:sparkles:`) to the title of this PR, and delete this line and similar ones -->
2+
3+
<!-- What does this do, and why do we need it? -->

.github/PULL_REQUEST_TEMPLATE/docs.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- please add a :book: (`:book:`) to the title of this PR, and delete this line and similar ones -->
2+
3+
<!-- What docs does this change, and why? -->
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- please add a :seedling: (`:seedling:`) to the title of this PR, and delete this line and similar ones -->
2+
3+
<!-- What does this do, and why do we need it? -->

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
version: 2
4+
updates:
5+
# GitHub Actions
6+
- package-ecosystem: "github-actions"
7+
# Workflow files stored in the
8+
# default location of `.github/workflows`
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
groups:
13+
all-github-actions:
14+
patterns: [ "*" ]
15+
commit-message:
16+
prefix: ":seedling:"
17+
labels:
18+
- "ok-to-test"

.github/pull_request_template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!-- please add an icon to the title of this PR (see VERSIONING.md), and delete this line and similar ones -->
2+
<!-- the icon will be either ⚠ (:warning:, major), ✨ (:sparkles:, minor), 🐛 (:bug:, patch), 📖 (:book:, docs), or 🌱 (:seedling:, other) -->
3+
4+
<!-- What does this do, and why do we need it? -->

.github/workflows/golangci-lint.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: golangci-lint
2+
on:
3+
pull_request:
4+
types: [opened, edited, synchronize, reopened]
5+
branches:
6+
- main
7+
8+
permissions:
9+
# Required: allow read access to the content for analysis.
10+
contents: read
11+
# Optional: allow read access to pull request. Use with `only-new-issues` option.
12+
pull-requests: read
13+
# Optional: Allow write access to checks to allow the action to annotate code in the PR.
14+
checks: write
15+
16+
jobs:
17+
golangci:
18+
name: lint
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
working-directory:
23+
- ""
24+
- examples/kind
25+
- providers/kind
26+
steps:
27+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
28+
- name: Calculate go version
29+
id: vars
30+
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
31+
- name: Set up Go
32+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # tag=v5.3.0
33+
with:
34+
go-version: ${{ steps.vars.outputs.go_version }}
35+
- name: golangci-lint
36+
uses: golangci/golangci-lint-action@051d91933864810ecd5e2ea2cfd98f6a5bca5347 # tag=v6.3.2
37+
with:
38+
version: v1.63.4
39+
args: --out-format=colored-line-number
40+
working-directory: ${{matrix.working-directory}}

.github/workflows/ossf-scorecard.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Scorecard supply-chain security
2+
on:
3+
# For Branch-Protection check. Only the default branch is supported. See
4+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5+
branch_protection_rule:
6+
# To guarantee Maintained check is occasionally updated. See
7+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
8+
schedule:
9+
# Weekly on Saturdays.
10+
- cron: '30 1 * * 6'
11+
push:
12+
branches: [ "main" ]
13+
14+
# Declare default permissions as read only.
15+
permissions: read-all
16+
17+
jobs:
18+
analysis:
19+
name: Scorecard analysis
20+
runs-on: ubuntu-latest
21+
permissions:
22+
# Needed if using Code scanning alerts
23+
security-events: write
24+
# Needed for GitHub OIDC token if publish_results is true
25+
id-token: write
26+
27+
steps:
28+
- name: "Checkout code"
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
30+
with:
31+
persist-credentials: false
32+
33+
- name: "Run analysis"
34+
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # tag=v2.4.0
35+
with:
36+
results_file: results.sarif
37+
results_format: sarif
38+
# Public repositories:
39+
# - Publish results to OpenSSF REST API for easy access by consumers
40+
# - Allows the repository to include the Scorecard badge.
41+
# - See https://github.com/ossf/scorecard-action#publishing-results.
42+
publish_results: true
43+
44+
# Upload the results as artifacts.
45+
- name: "Upload artifact"
46+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # tag=v4.6.0
47+
with:
48+
name: SARIF file
49+
path: results.sarif
50+
retention-days: 5
51+
52+
# required for Code scanning alerts
53+
- name: "Upload to code-scanning"
54+
uses: github/codeql-action/upload-sarif@83a02f7883b12e0e4e1a146174f5e2292a01e601 # tag=v2.16.4
55+
with:
56+
sarif_file: results.sarif

.github/workflows/pr-dependabot.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: PR dependabot go modules fix
2+
3+
# This action runs on PRs opened by dependabot and updates modules.
4+
on:
5+
pull_request:
6+
branches:
7+
- dependabot/**
8+
push:
9+
branches:
10+
- dependabot/**
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: write # Allow to update the PR.
15+
16+
jobs:
17+
build:
18+
name: Build
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check out code
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
23+
- name: Calculate go version
24+
id: vars
25+
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
26+
- name: Set up Go
27+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # tag=v5.3.0
28+
with:
29+
go-version: ${{ steps.vars.outputs.go_version }}
30+
- name: Update all modules
31+
run: make modules
32+
- uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # tag=v9.1.4
33+
name: Commit changes
34+
with:
35+
author_name: dependabot[bot]
36+
author_email: 49699333+dependabot[bot]@users.noreply.github.com
37+
default_author: github_actor
38+
message: 'Update generated code'

0 commit comments

Comments
 (0)