Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: FairwindsOps/rbac-manager
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.0
Choose a base ref
...
head repository: FairwindsOps/rbac-manager
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 7,270 changed files with 20,116 additions and 2,896,687 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
130 changes: 87 additions & 43 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,82 +1,126 @@
version: 2.1

orbs:
rok8s-scripts: fairwinds/rok8s-scripts@9.4.0
rok8s: fairwinds/rok8s-scripts@14
oss-docs: fairwinds/oss-docs@0

references:
docker_build_and_push: &docker_build_and_push
install_vault: &install_vault
run:
name: Docker login, build, and push
name: install hashicorp vault
command: |
docker build --build-arg "VERSION=$DOCKER_BASE_TAG" -f Dockerfile -t quay.io/reactiveops/rbac-manager:$DOCKER_BASE_TAG .
apk --update add curl yq
cd /tmp
curl -LO https://releases.hashicorp.com/vault/1.13.2/vault_1.13.2_linux_amd64.zip
sha256sum vault_1.13.2_linux_amd64.zip | grep f7930279de8381de7c532164b4a4408895d9606c0d24e2e9d2f9acb5dfe99b3c
unzip vault_1.13.2_linux_amd64.zip
mv vault /usr/bin/vault
if [[ -z $CIRCLE_PR_NUMBER ]]; then
bash <(curl -s https://codecov.io/bash)
docker login quay.io -u="reactiveops+circleci" -p="${quay_token}"
docker push quay.io/reactiveops/rbac-manager:$DOCKER_BASE_TAG
else
echo "Skipping push for forked PR"
fi
chainsaw_configuration: &chainsaw_configuration
pre_script: e2e/pre.sh
script: e2e/test.sh
command_runner_image: quay.io/reactiveops/ci-images:v14-bullseye
enable_docker_layer_caching: true
attach-workspace: true
requires:
- test
- snapshot
filters:
branches:
only: /.*/
tags:
ignore: /v.*/

jobs:
test:
docker:
- image: circleci/golang:1.12

working_directory: /go/src/github.com/fairwindsops/rbac-manager

- image: cimg/go:1.22
working_directory: /home/circleci/go/src/github.com/fairwindsops/rbac-manager
steps:
- checkout
- run: go get -u golang.org/x/lint/golint
- run: go list ./... | grep -v vendor | xargs golint -set_exit_status
- run: go list ./... | grep -v vendor | xargs go vet
- run: go test ./... -coverprofile=coverage.txt -covermode=atomic
- run: bash <(curl -s https://codecov.io/bash)

build:
lint:
docker:
- image: circleci/buildpack-deps:jessie
- image: golangci/golangci-lint:v1.59.1
steps:
- checkout
- setup_remote_docker
- run: echo 'export DOCKER_BASE_TAG=dev-$CIRCLE_SHA1' >> $BASH_ENV
- *docker_build_and_push
- run: golangci-lint run --timeout=10m -v

release:
build_and_release:
working_directory: /home/circleci/go/src/github.com/fairwindsops/rbac-manager
resource_class: large
shell: /bin/bash
docker:
- image: circleci/buildpack-deps:jessie
- image: goreleaser/goreleaser:v2.0.1
environment:
GO111MODULE: "on"
steps:
- checkout
- setup_remote_docker
- run: echo 'export DOCKER_BASE_TAG=$CIRCLE_TAG' >> $BASH_ENV
- *docker_build_and_push

- *install_vault
- rok8s/get_vault_env:
vault_path: repo/global/env
- rok8s/docker_login:
registry: "quay.io"
username: $REACTIVEOPS_QUAY_USER
password-variable: REACTIVEOPS_QUAY_TOKEN
- run: goreleaser
snapshot:
working_directory: /home/circleci/go/src/github.com/fairwindsops/rbac-manager
resource_class: large
docker:
- image: goreleaser/goreleaser:v2.0.1
steps:
- checkout
- setup_remote_docker
- run: goreleaser --snapshot --skip sign
- run: mkdir -p /tmp/workspace/docker_save/
- run: docker save quay.io/reactiveops/rbac-manager:${CIRCLE_SHA1}-amd64 > /tmp/workspace/docker_save/rbac-manager_${CIRCLE_SHA1}-amd64.tar
- run: pwd; ls -la *
- persist_to_workspace:
root: /tmp/workspace/
paths:
- docker_save
- store_artifacts:
path: dist
destination: snapshot

workflows:
version: 2
build:
tests:
jobs:
- test
- build:
- lint
- snapshot:
context: org-global
- rok8s-scripts/kubernetes_e2e_tests:
pre_script: e2e/pre.sh
script: e2e/test.sh
requires:
- test
- build
- lint
- rok8s/kubernetes_e2e_tests:
name: "End-To-End Kubernetes 1.28"
kind_node_image: "kindest/node:v1.28.9@sha256:dca54bc6a6079dd34699d53d7d4ffa2e853e46a20cd12d619a09207e35300bd0"
<<: *chainsaw_configuration
- rok8s/kubernetes_e2e_tests:
name: "End-To-End Kubernetes 1.29"
kind_node_image: "kindest/node:v1.29.4@sha256:3abb816a5b1061fb15c6e9e60856ec40d56b7b52bcea5f5f1350bc6e2320b6f8"
<<: *chainsaw_configuration
- rok8s/kubernetes_e2e_tests:
name: "End-To-End Kubernetes 1.30"
kind_node_image: "kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e"
<<: *chainsaw_configuration
release:
jobs:
- build_and_release:
filters:
branches:
only: /.*/
ignore: /.*/
tags:
ignore: /v.*/
release:
jobs:
- release:
context: org-global
only: /v.*/
- oss-docs/publish-docs:
repository: rbac-manager
filters:
branches:
ignore: /.*/
tags:
ignore: /^testing-.*/
only: /^.*/
58 changes: 58 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Bug Report
description: File a bug report
labels: [bug, triage]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! Please fill the form below.
- type: textarea
id: what-happened
attributes:
label: What happened?
description: What happened?
validations:
required: true
- type: textarea
id: expected
attributes:
label: What did you expect to happen?
description: What is the expected or desired behavior?
validations:
required: true
- type: textarea
id: reproducible
attributes:
label: How can we reproduce this?
description: Please share the steps that we can take to reproduce this. Also include any relevant configuration.
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: The version of the tool that you are using. If a helm chart, please share the name of the chart.
validations:
required: true
- type: checkboxes
id: search
attributes:
label: Search
options:
- label: I did search for other open and closed issues before opening this.
required: true
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow the CODE_OF_CONDUCT in this repository.
options:
- label: I agree to follow this project's Code of Conduct
required: true
- type: textarea
id: ctx
attributes:
label: Additional context
description: Anything else you would like to add
validations:
required: false
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: [triage, enhancement]
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

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

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Other
about: For misc. tasks like research or continued conversation
title: ''
labels: [triage]
assignees: ''

---
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## DO NOT EDIT - Managed by Terraform
version: 2
updates:
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/docs"
schedule:
interval: "weekly"
open-pull-requests-limit: 0
ignore:
- dependency-name: "*"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

This PR fixes #

## Checklist
* [ ] I have signed the CLA
* [ ] I have updated/added any relevant documentation

## Description
### What's the goal of this PR?

### What changes did you make?

### What alternative solution should we consider, if any?

18 changes: 18 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '32 1 * * *'

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
exempt-issue-labels: pinned
stale-pr-label: stale
stale-issue-label: stale
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.pre-commit-config.yaml
/rbac-manager
docs/README.md

# Binaries for programs and plugins
*.exe
*.exe~
@@ -28,3 +32,5 @@ tmp

coverage.txt
cover-report.html
node_modules
/dist
Loading