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

ci: fix trunk, set fetch-depth to zero for all workflows #594

Merged
merged 5 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .github/workflows/force-sync-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.AIVEN_CI_PAT__VALID_WHILE_ALEKS_IS_EMPLOYED }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
Serpentiel marked this conversation as resolved.
Show resolved Hide resolved
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ jobs:
- uses: wagoid/commitlint-github-action@v5
trunk:
runs-on: ubuntu-latest
permissions:
checks: write # For trunk to post annotations
Serpentiel marked this conversation as resolved.
Show resolved Hide resolved
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
Expand All @@ -32,6 +36,8 @@ jobs:
security-events: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: github/codeql-action/init@v3
with:
languages: go
Expand All @@ -41,6 +47,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: karancode/kustomize-github-action@master
with:
kustomize_version: 4.3.0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate docs
uses: addnab/docker-run-action@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: action_vars
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- shell: bash
Expand Down Expand Up @@ -61,6 +63,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.AIVEN_CI_PAT__VALID_WHILE_ALEKS_IS_EMPLOYED }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
- 1.24.10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/trunk-upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# https://github.com/trunk-io/trunk-action/tree/34242ec4eb8cf594887600f1f9b889e7c630ec18?tab=readme-ov-file#automatic-upgrades
name: trunk upgrade

on:
schedule:
- cron: 0 8 * * 1-5
workflow_dispatch: {}

permissions: read-all

jobs:
trunk_upgrade:
runs-on: ubuntu-latest
permissions:
contents: write # For trunk to create PRs
pull-requests: write # For trunk to create PRs
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: trunk-io/trunk-action/upgrade@v1
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
alerts about upcoming maintenance updates or warnings about service instability
- Add `Redis` field `technicalEmails`, type `array`: Defines the email addresses that will receive alerts
about upcoming maintenance updates or warnings about service instability
- Change `Clickhouse` field `userConfig.additional_backup_regions`: deprecated
- Add `Grafana` field `userConfig.auth_github.auto_login`, type `boolean`: Allow users to bypass the
login screen and automatically log in
- Add `Grafana` field `userConfig.auth_github.skip_org_role_sync`, type `boolean`: Stop automatically
syncing user roles
- Change `Grafana` field `userConfig.additional_backup_regions`: deprecated
- Change `KafkaConnect` field `userConfig.additional_backup_regions`: deprecated
- Change `Kafka` field `userConfig.additional_backup_regions`: deprecated
- Change `OpenSearch` field `userConfig.additional_backup_regions`: deprecated
- Change `PostgreSQL` field `userConfig.pg_version`: enum ~~`[11, 12, 13, 14, 15]`~~ → `[11, 12, 13,
14, 15, 16]`
- Change `Redis` field `userConfig.additional_backup_regions`: deprecated

## v0.16.1 - 2023-12-15

Expand Down
3 changes: 2 additions & 1 deletion api/v1alpha1/userconfig/service/clickhouse/clickhouse.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion api/v1alpha1/userconfig/service/grafana/grafana.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion api/v1alpha1/userconfig/service/kafka/kafka.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion api/v1alpha1/userconfig/service/opensearch/opensearch.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/v1alpha1/userconfig/service/pg/pg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion api/v1alpha1/userconfig/service/redis/redis.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ spec:
description: OpenSearch specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down
10 changes: 9 additions & 1 deletion charts/aiven-operator-crds/templates/aiven.io_grafanas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ spec:
description: Cassandra specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down Expand Up @@ -376,6 +376,11 @@ spec:
type: string
maxItems: 50
type: array
auto_login:
description:
Allow users to bypass the login screen and automatically
log in
type: boolean
client_id:
description: Client ID from provider
maxLength: 1024
Expand All @@ -386,6 +391,9 @@ spec:
maxLength: 1024
pattern: ^[\040-\176]+$
type: string
skip_org_role_sync:
description: Stop automatically syncing user roles
type: boolean
team_ids:
description:
Require users to belong to one of given team
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ spec:
description: KafkaConnect specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ spec:
description: Kafka specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ spec:
description: OpenSearch specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ spec:
- "13"
- "14"
- "15"
- "16"
type: string
pgbouncer:
description: PGBouncer connection pooling settings
Expand Down
2 changes: 1 addition & 1 deletion charts/aiven-operator-crds/templates/aiven.io_redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ spec:
description: Redis specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/aiven.io_clickhouses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ spec:
description: OpenSearch specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down
10 changes: 9 additions & 1 deletion config/crd/bases/aiven.io_grafanas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ spec:
description: Cassandra specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down Expand Up @@ -376,6 +376,11 @@ spec:
type: string
maxItems: 50
type: array
auto_login:
description:
Allow users to bypass the login screen and automatically
log in
type: boolean
client_id:
description: Client ID from provider
maxLength: 1024
Expand All @@ -386,6 +391,9 @@ spec:
maxLength: 1024
pattern: ^[\040-\176]+$
type: string
skip_org_role_sync:
description: Stop automatically syncing user roles
type: boolean
team_ids:
description:
Require users to belong to one of given team
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/aiven.io_kafkaconnects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ spec:
description: KafkaConnect specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/aiven.io_kafkas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ spec:
description: Kafka specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/aiven.io_opensearches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ spec:
description: OpenSearch specific user configuration options
properties:
additional_backup_regions:
description: Additional Cloud Regions for Backup Replication
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/aiven.io_postgresqls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ spec:
- "13"
- "14"
- "15"
- "16"
type: string
pgbouncer:
description: PGBouncer connection pooling settings
Expand Down
Loading