Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
f764f50
Consolidate bundle and BD controller code
joelanford Sep 22, 2022
a9f3909
add resources to watch list
akihikokuroda Aug 22, 2022
df9aae6
local git repository for e2e test
akihikokuroda Oct 6, 2022
5075f0c
relocate test tools
akihikokuroda Oct 12, 2022
22d1c46
set bundle deployment controller name correctly
joelanford Nov 4, 2022
42e7382
style: introduce gosec linter
Kavinjsir Nov 19, 2022
bcae4aa
Fix e2e: Force localhost for some containers
tmshort Feb 21, 2023
04ffa9b
Bump helm to v3.11.1 to address CVE-2023-25165
tmshort Feb 20, 2023
5f2c6d5
squash! Bump helm to v3.11.1 to address CVE-2023-25165
tmshort Feb 22, 2023
4d878be
Move to the new Kubernetes image repository
awgreene Feb 22, 2023
3d528fe
Remote debug make target
dtfranz Feb 28, 2023
39b6786
use multi-arch alpine image for git test server
joelanford Apr 7, 2023
d7e4fbc
improve/rename local source to support multiple configmaps
joelanford Mar 29, 2023
9293130
moved more configmaps source validation to webhooks, fixed bug in dup…
joelanford Apr 7, 2023
83e7c17
Rukpak Actions Updates
dtfranz Apr 19, 2023
91d7612
bump to controller-gen v0.11.4 to remove creation timestamp from gene…
joelanford Apr 21, 2023
b87a2a6
version: use go1.18+ embedded build info
joelanford Apr 20, 2023
e519417
use map to map modified boolean to dirty/clean, fix license header
joelanford Apr 21, 2023
abf668c
Fix a link to plain bundle spec.
doriath Apr 22, 2023
dbabbbc
UPSTREAM: <carry>: update vendor dir, resolve other differences betwe…
dtfranz Jun 6, 2023
65fd605
bump goreleaser to 1.17.2 (and simplify CI in the process)
joelanford Apr 27, 2023
8bf4a1d
Don't swallow the not-found error
ncdc May 16, 2023
4bd4103
Fix a couple of broken links in CONTRIBUTING.md
fgiloux May 17, 2023
b194b04
Rename defaults_upstream.go to defaults.go
ncdc May 23, 2023
e04009c
Remove upstream build tag
ncdc May 23, 2023
25a45e5
[fix] Fix tag of default unpack image
varshaprasad96 May 25, 2023
a2ac2d4
Move bundle underneath controllers
ncdc May 31, 2023
553de6d
Rename bundleProvisioner to controller
ncdc May 31, 2023
0489740
Move bundledeployment underneath controllers
ncdc Jun 1, 2023
8c3d57d
Rename bundledeploymentProvisioner to controller
ncdc Jun 1, 2023
b19be0c
Switch tools to bingo
dtfranz Jun 7, 2023
892465c
UPSTREAM: <carry>: Fix test mismatched with upstream
dtfranz Jun 8, 2023
49e5b24
Improving linter reporting in github actions
Jun 13, 2023
a616826
Fixes make lint when run without args
Jun 14, 2023
6a163b9
Replaces super-linter with markdown linter
Jun 13, 2023
3952f32
Updates golangci-lint
Jun 14, 2023
453ea91
Fixes linting issues
Jun 14, 2023
5a86574
Adds importas rules
Jun 15, 2023
89fa703
Removes deprecated `--progress` flag from Ginkgo
Jun 15, 2023
2a69b86
Adds ginkgolinter
Jun 14, 2023
9ffde03
Bingo Kustomize
dtfranz Jun 12, 2023
888103e
Fix most deprecation warnings from kustomize
dtfranz Jun 13, 2023
f20ef1d
Fix some placement for kustomization so value replacements work properly
dtfranz Jun 14, 2023
5efac04
UPSTREAM: <carry>: Adding manifests
dtfranz Jun 16, 2023
5d0771e
bump to go 1.20
joelanford Jun 21, 2023
5255c70
Shuffle manifests around to apply different cert management overlays.
dtfranz Jun 22, 2023
9d657f7
Moved core and webhook cert-manager files to overlay
dtfranz Jun 22, 2023
98ab75c
Finish moving cert-manager resources to overlay folder.
dtfranz Jun 22, 2023
8fc03d1
Split webhooks kustomizeconfig to keep cert-manager resources separate
dtfranz Jun 22, 2023
d8f860d
Patch webhooks cert name with supplied cert
dtfranz Jun 22, 2023
8ef39df
More re-org, remove some namePrefixing, move ca-injection for validat…
dtfranz Jun 22, 2023
b092f3b
Fix e2e
dtfranz Jun 22, 2023
0b84074
Fix debug target, simplify base resources import.
dtfranz Jun 23, 2023
c68486b
Move cert args for cert-manager to patch
dtfranz Jun 23, 2023
5bd5f98
Moved cert-manager specific cert args and secret names for webhook an…
dtfranz Jun 23, 2023
c4ef29c
Re-org manifests structure, add README, preserve bundle-cache and upl…
dtfranz Jun 27, 2023
b4b926f
Adding manifests verification step for PRs
dtfranz Jun 15, 2023
b2c40ff
UPSTREAM: <carry>: Generate openshift manifests using kustomize overlay
dtfranz Jun 27, 2023
743df43
Adds codecov integration
Jun 27, 2023
1038c3e
bump controller-gen to v0.12.0
joelanford Jun 27, 2023
45fdfda
Bingo version updates
dtfranz Jun 28, 2023
ccdff71
UPSTREAM: <carry>: Bump go version to 1.20 in openshift/, update mani…
dtfranz Jun 29, 2023
8e3fca6
Update openshift/Dockerfile
dtfranz Jun 29, 2023
a16de78
UPSTREAM: <carry>: use go1.20 to build
ncdc Jul 3, 2023
4b1a5d6
UPSTREAM: 650: detect in-cluster namespace by default, --system-names…
joelanford Jul 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: e2e

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
e2e-kind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: Run e2e tests
run: |
make e2e
25 changes: 25 additions & 0 deletions .github/workflows/go-apidiff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: go-apidiff

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
go-apidiff:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
id: go
- name: Run go-apidiff
uses: joelanford/go-apidiff@main
39 changes: 39 additions & 0 deletions .github/workflows/release-e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: release-e2e

on:
release:
types:
- published
- edited

jobs:
release-e2e-kind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"

- name: Download kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(go list -m k8s.io/kubectl | cut -d" " -f2 | sed 's/^v0/v1/')/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

- name: Start a kind cluster
run: make kind-cluster

- name: Install the cert-manager dependency
run: make cert-mgr

- name: Install the rukpak release manifests
run: |
kubectl apply -f https://github.com/operator-framework/rukpak/releases/download/${{ github.event.release.tag_name }}/rukpak.yaml
make wait

- name: Load testdata bundle container images into kind
run: make kind-load-bundles KIND=hack/tools/bin/kind

- name: Run e2e tests
run: make test-e2e KIND=hack/tools/bin/kind
64 changes: 64 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: release

on:
workflow_dispatch:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- main

jobs:
goreleaser:
name: goreleaser
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"

- name: Docker Login
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Set the release related variables
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
# Release tags.
echo IMAGE_TAG="${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo GORELEASER_ARGS="--rm-dist" >> $GITHUB_ENV
echo DISABLE_RELEASE_PIPELINE=false >> $GITHUB_ENV
elif [[ $GITHUB_REF == refs/heads/* ]]; then
# Branch build.
echo IMAGE_TAG="$(echo "${GITHUB_REF#refs/heads/}" | sed -r 's|/+|-|g')" >> $GITHUB_ENV
echo GORELEASER_ARGS="--rm-dist --skip-validate" >> $GITHUB_ENV
elif [[ $GITHUB_REF == refs/pull/* ]]; then
# PR build.
echo IMAGE_TAG="pr-$(echo "${GITHUB_REF}" | sed -E 's|refs/pull/([^/]+)/?.*|\1|')" >> $GITHUB_ENV
else
echo IMAGE_TAG="$(git describe --tags --always)" >> $GITHUB_ENV
fi

- name: Generate the rukpak release manifests
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
echo VERSION="${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
make quickstart

- name: Run goreleaser
run: make release
env:
GITHUB_TOKEN: ${{ github.token }}
44 changes: 44 additions & 0 deletions .github/workflows/sanity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: sanity

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: Run verification checks
run: make verify
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"

- name: Run golangci linting checks
run: make lint
markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Lint markdown files
uses: github/super-linter/slim@v4
env:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: main
# only runs the markdown linter
VALIDATE_MARKDOWN: true
32 changes: 32 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: stale
on:
workflow_dispatch:
schedule:
# The start of everyday and at hour 12
- cron: '00 00 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8.0.0
id: stale
with:
# Overall configuration
operations-per-run: 100

# PR configuration
days-before-pr-stale: 30
stale-pr-message: 'This PR has become stale because it has been open for 30 days with no activity. Please update this PR or remove the `lifecycle/stale` label before it is automatically closed in 30 days. Adding the `lifecycle/frozen` label will cause this PR to ignore lifecycle events.'
days-before-pr-close: 30
close-pr-message: 'This PR has been closed as no updates were detected after 30 days of being stale. Please feel free to reopen this PR if necessary.'
stale-pr-label: lifecycle/stale
exempt-pr-labels: lifecycle/frozen
close-pr-label: lifecycle/rotten

# Issue configuration
days-before-issue-stale: 60
stale-issue-message: 'This issue has become stale because it has been open 60 days with no activity. The maintainers of this repo will remove this label during issue triage or it will be removed automatically after an update. Adding the `lifecycle/frozen` label will cause this issue to ignore lifecycle events.'
days-before-issue-close: -1
stale-issue-label: lifecycle/stale
exempt-issue-labels: lifecycle/frozen
12 changes: 12 additions & 0 deletions .github/workflows/todo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: todo
on:
push:
branches:
- main
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- name: "Create issues from TODO comments"
uses: "alstr/todo-to-issue-action@v4.6.2"
18 changes: 18 additions & 0 deletions .github/workflows/unit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: unit

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- run: make test-unit
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@
*.out

# Dependency directories (remove the comment below to include it)
bin
.github
#vendor/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you undo this so it's unmodified from upstream? You can git add -f to add vendor files.

bin/
dist/

# Release artifacts
.goreleaser.yml
rukpak.yaml
15 changes: 3 additions & 12 deletions .goreleaser.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ builds:
- arm64
- ppc64le
- s390x
ldflags:
- -X {{ .Env.PKG }}.GitCommit={{ .ShortCommit }}
- id: helm
main: ./cmd/helm
binary: helm
Expand All @@ -32,8 +30,6 @@ builds:
- arm64
- ppc64le
- s390x
ldflags:
- -X {{ .Env.PKG }}.GitCommit={{ .ShortCommit }}
- id: core
main: ./cmd/core
binary: core
Expand All @@ -45,8 +41,6 @@ builds:
- arm64
- ppc64le
- s390x
ldflags:
- -X {{ .Env.PKG }}.GitCommit={{ .ShortCommit }}
- id: webhooks
main: ./cmd/webhooks
binary: webhooks
Expand All @@ -58,8 +52,6 @@ builds:
- arm64
- ppc64le
- s390x
ldflags:
- -X {{ .Env.PKG }}.GitCommit={{ .ShortCommit }}
- id: crdvalidator
main: ./cmd/crdvalidator
binary: crdvalidator
Expand All @@ -71,8 +63,6 @@ builds:
- arm64
- ppc64le
- s390x
ldflags:
- -X {{ .Env.PKG }}.GitCommit={{ .ShortCommit }}
- id: rukpakctl
main: ./cmd/rukpakctl
binary: rukpakctl
Expand All @@ -84,8 +74,6 @@ builds:
- arm64
- ppc64le
- s390x
ldflags:
- -X {{ .Env.PKG }}.GitCommit={{ .ShortCommit }}
dockers:
- image_templates:
- "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-amd64"
Expand Down Expand Up @@ -145,4 +133,7 @@ release:
kubectl wait --for=condition=Available --namespace=cert-manager deployment/cert-manager-webhook --timeout=60s
kubectl apply -f https://github.com/operator-framework/rukpak/releases/download/{{ .Tag }}/rukpak.yaml
kubectl wait --for=condition=Available --namespace=rukpak-system deployment/core --timeout=60s
kubectl wait --for=condition=Available --namespace=rukpak-system deployment/helm-provisioner --timeout=60s
kubectl wait --for=condition=Available --namespace=rukpak-system deployment/rukpak-webhooks --timeout=60s
kubectl wait --for=condition=Available --namespace=crdvalidator-system deployment/crd-validation-webhook --timeout=60s
```
Loading