Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre move upgrade #55

Merged
merged 25 commits into from
Jun 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
bbd6991
Update kubebuilder
jastBytes Jun 29, 2022
6421830
Merge pull request #9 from finleap-connect/feature/update-kubebuilder
jastBytes Jun 29, 2022
273bd46
Update readme
jastBytes Jun 29, 2022
12c0826
Merge pull request #10 from finleap-connect/feature/update-kubebuilder
jastBytes Jun 29, 2022
87ede4f
golang: bump go.uber.org/zap from 1.17.0 to 1.21.0
dependabot[bot] Jun 29, 2022
e28eca0
golang: bump github.com/hashicorp/consul/api from 1.12.0 to 1.13.0
dependabot[bot] Jun 29, 2022
759995e
Remove keys
jastBytes Jun 29, 2022
6c4bc17
Fix publisher
jastBytes Jun 29, 2022
5e91f23
Merge pull request #8 from finleap-connect/dependabot/go_modules/go.u…
jastBytes Jun 29, 2022
d2222e1
Merge pull request #7 from finleap-connect/dependabot/go_modules/gith…
jastBytes Jun 29, 2022
04c889d
golang: bump github.com/spf13/cobra from 1.3.0 to 1.5.0
dependabot[bot] Jun 29, 2022
c445522
Adjust README
jastBytes Jun 29, 2022
c2f7147
Merge branch 'main' of github.com:finleap-connect/backup-operator
jastBytes Jun 29, 2022
db8a642
Merge pull request #6 from finleap-connect/dependabot/go_modules/gith…
jastBytes Jun 29, 2022
d4541b4
golang: bump go.mongodb.org/mongo-driver from 1.8.3 to 1.9.1
dependabot[bot] Jun 29, 2022
7949c2e
Merge pull request #11 from finleap-connect/dependabot/go_modules/go.…
jastBytes Jun 29, 2022
9b05922
golang: bump github.com/prometheus/client_golang from 1.11.0 to 1.12.2
dependabot[bot] Jun 29, 2022
e11d88f
Merge pull request #13 from finleap-connect/dependabot/go_modules/git…
jastBytes Jun 29, 2022
dba0d8b
Remove kubism reference
jastBytes Jun 29, 2022
6828908
Remove ci
jastBytes Jun 29, 2022
261128f
Fix chart
jastBytes Jun 29, 2022
f5f6a03
Update helm chart
jastBytes Jun 29, 2022
649d815
Fix rbac
jastBytes Jun 29, 2022
f88a0a9
Adjust chart
jastBytes Jun 29, 2022
e7e4405
Fix versions
jastBytes Jun 29, 2022
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
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
# Ignore build and test binaries.
bin/
testbin/
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug Report
about: Create a report to help us improve
title: "[Bug]: <title>"
labels: ["bug", "triage"]

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature Request
about: Suggest an idea for this project
title: "[Feature]: <title>"
labels: ["enhancement", "triage"]

---

**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.
17 changes: 15 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,36 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
day: "sunday"
commit-message:
# Prefix all commit messages with "ghactions"
prefix: "ghactions"
# Specify labels for pull requests
labels:
- "github-actions"
- "chore"
reviewers:
- "finleap-connect/fcloud"
# Maintain dependencies for golang
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
interval: "weekly"
day: "sunday"
commit-message:
# Prefix all commit messages with "golang"
prefix: "golang"
# Specify labels for npm pull requests
labels:
- "golang"
- "chore"
reviewers:
- "finleap-connect/fcloud"
- package-ecosystem: "docker"
# Look for a `Dockerfile` in the `root` directory
directory: "/"
# Check for updates once a week
schedule:
interval: "weekly"
day: "sunday"
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ autolabeler:
- '/fix/i'
- '/bug/i'
- '/bugfix/i'
- label: 'feature'
- label: 'enhancement'
branch:
- '/feat\/.+/'
- '/feature\/.+/'
Expand Down
10 changes: 2 additions & 8 deletions chartpress.yaml → .github/scripts/chartpress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ charts:
# list of charts by name
# each name should be a directory containing a helm chart
- name: charts/backup-operator
# the prefix to use for built images
imagePrefix: kubismio/
# The git repo whose gh-pages contains the charts. This can be a local
# path such as "." as well but if matching <organization>/<repo> will be
# assumed to be a separate GitHub repository.
repo:
git: kubism/charts
published: https://kubism.github.io/charts

images:
backup-operator:
valuesPath: image
git: finleap-connect/charts
published: https://finleap-connect.github.io/charts
26 changes: 26 additions & 0 deletions .github/scripts/configure_versions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
# Copyright 2022 BackupOperator Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -e

if [[ "$GITHUB_REF" =~ refs/tags ]]; then
VERSION=${GITHUB_REF##*/}
elif [ ! -z "$GITHUB_RUN_ID" ]; then
VERSION="0.0.0-$(echo $GITHUB_SHA | cut -c 1-6)"
else
VERSION="local-$(git rev-parse HEAD)"
fi

echo $VERSION
44 changes: 44 additions & 0 deletions .github/scripts/publish_chart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash
# Copyright 2022 BackupOperator Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
export PWD=$(pwd)

set -eu

# chartpress is used to publish the charts
pip install chartpress==0.6.*

# Get a private SSH key from the Github secrets. It will
# be used to establish an identity with rights to push to the git repository
# hosting our Helm charts: https://github.com/finleap-connect/charts
echo "$CHART_DEPLOY_KEY" >$PWD/deploy_key
chmod 0400 $PWD/deploy_key

# Activate logging of bash commands now that the sensitive stuff is done
set -x

# As chartpress uses git to push to our Helm chart repository, we configure
# git ahead of time to use the identity we decrypted earlier.
git config --global user.email $GIT_EMAIL
git config --global user.name $GIT_USER
export GIT_SSH_COMMAND="ssh -i $PWD/deploy_key"

echo "Publishing chart via chartpress..."
cp .github/scripts/chartpress.yaml . # chartpress doesn't support custom path for config
chartpress --skip-build --publish-chart --tag "$VERSION"

# Let us log the changes chartpress did, it should include replacements for
# fields in values.yaml, such as what tag for various images we are using.
echo "Changes from chartpress:"
git --no-pager diff
66 changes: 0 additions & 66 deletions .github/workflows/backup-operator-docker.yml

This file was deleted.

71 changes: 0 additions & 71 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/dependabot-auto-approve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Dependabot auto-approve
on: pull_request

permissions:
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.3.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
22 changes: 22 additions & 0 deletions .github/workflows/dependabot-auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.3.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Loading