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

chore: Update charm libraries #346

Closed
wants to merge 88 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
02f6c89
chore: Bumping project version to 1.5 (#134)
Gmerold Apr 25, 2024
e45f542
fix: Fixing promotion workflow (#135)
Gmerold Apr 25, 2024
2b952a5
chore: bump peter-evans/create-pull-request from 6.0.4 to 6.0.5 (#137)
dependabot[bot] Apr 26, 2024
c59a5d8
chore: bump ruff from 0.4.1 to 0.4.2 (#138)
dependabot[bot] Apr 26, 2024
0b6f799
chore: Building charm in independent step (#139)
Gmerold Apr 26, 2024
177901b
chore: bump pytest-operator from 0.34.0 to 0.35.0 (#141)
dependabot[bot] Apr 30, 2024
02a3408
chore: bump pytest-asyncio from 0.21.1 to 0.21.2 (#142)
dependabot[bot] Apr 30, 2024
1c630a8
chore: Updating CI (#143)
Gmerold Apr 30, 2024
c9c43cb
chore: Adding scheduled runs for release 1.4 (#144)
Gmerold Apr 30, 2024
44a979a
chore: Adding v1.4 label to PRs from depenadabot (#152)
Gmerold Apr 30, 2024
594c557
chore: update juju/juju requirement from ~> 0.11.0 to ~> 0.12.0 in /t…
dependabot[bot] May 1, 2024
1f3ffb3
chore: bump jsonschema from 4.21.1 to 4.22.0 (#154)
dependabot[bot] May 1, 2024
e7df2bc
chore: bump ops from 2.12.0 to 2.13.0 (#155)
dependabot[bot] May 2, 2024
fd66b9c
chore: centralise metadata in charmcraft.yaml (#156)
gruyaume May 2, 2024
2c0f3a9
chore: bump ruff from 0.4.2 to 0.4.3 (#162)
dependabot[bot] May 6, 2024
f801399
chore: bump coverage[toml] from 7.5.0 to 7.5.1 (#165)
dependabot[bot] May 6, 2024
454af19
chore: bump jinja2 from 3.1.3 to 3.1.4 (#164)
dependabot[bot] May 6, 2024
fc978ea
chore: bump cryptography from 42.0.5 to 42.0.6 (#163)
dependabot[bot] May 6, 2024
d4cc44b
chore: bump cryptography from 42.0.6 to 42.0.7 (#168)
dependabot[bot] May 7, 2024
1ea38c0
fix: Replacing release with branch name for v0.0 workflows (#170)
Gmerold May 8, 2024
1d484c9
chore: Update charm libraries (#171)
telcobot May 8, 2024
6a13f53
chore: bump ruff from 0.4.3 to 0.4.4 (#172)
dependabot[bot] May 10, 2024
0976dee
chore: bump pytest from 8.1.1 to 8.2.1 (#176)
dependabot[bot] May 20, 2024
ed7270c
chore: bump requests from 2.31.0 to 2.32.0 (#178)
dependabot[bot] May 21, 2024
c1c376d
chore: bump ruff from 0.4.4 to 0.4.5 (#179)
dependabot[bot] May 23, 2024
0f3d018
chore: bump codespell from 2.2.6 to 2.3.0 (#180)
dependabot[bot] May 24, 2024
d6f0b44
chore: bump coverage[toml] from 7.5.1 to 7.5.2 (#181)
dependabot[bot] May 27, 2024
621edf4
chore: Update charm libraries (#187)
telcobot May 28, 2024
d470ab4
chore: use pytest for UT (#186)
patriciareinoso May 28, 2024
75edb46
chore: bump coverage[toml] from 7.5.2 to 7.5.3 (#189)
dependabot[bot] May 29, 2024
040e895
chore: bump ruff from 0.4.5 to 0.4.6 (#192)
dependabot[bot] May 29, 2024
1293eec
chore: bump ops from 2.13.0 to 2.14.0 (#190)
dependabot[bot] May 29, 2024
4f0bf81
chore: Update charm libraries (#188)
telcobot May 29, 2024
f5383eb
feat: remove database dependency (#185)
patriciareinoso May 29, 2024
b86fefe
chore: bump ruff from 0.4.6 to 0.4.7 (#201)
dependabot[bot] Jun 3, 2024
948d25e
chore: bump juju from 3.4.0.0 to 3.5.0.0 (#200)
dependabot[bot] Jun 3, 2024
d7adf84
chore: Update charm libraries (#202)
telcobot Jun 3, 2024
6018deb
chore: bump pytest from 8.2.1 to 8.2.2 (#204)
dependabot[bot] Jun 5, 2024
024fd12
chore: bump cryptography from 42.0.7 to 42.0.8 (#205)
dependabot[bot] Jun 5, 2024
d6644ed
chore: Adds NRF-Webui relation in itests (#209)
Gmerold Jun 6, 2024
4fdeb88
chore: Bump PCF to 1.4.2 (#206)
ghislainbourgeois Jun 6, 2024
3b2720c
chore: bump ruff from 0.4.7 to 0.4.8 (#208)
dependabot[bot] Jun 6, 2024
287c86b
chore: bump cosl from 0.0.11 to 0.0.12 (#207)
dependabot[bot] Jun 6, 2024
c5c06ec
feat: Implement the requirer side of sdcore_config interface (#210)
gatici Jun 6, 2024
37bdccb
chore: Update charm libraries (#211)
telcobot Jun 7, 2024
4d870c7
chore: combine dependabot updates in weekly updates (#218)
dariofaccin Jun 11, 2024
4506d47
feat: add prometheus integration (#219)
dariofaccin Jun 12, 2024
5d25fd3
chore: bump ruff from 0.4.8 to 0.4.9 in the pip_dependencies group ac…
dependabot[bot] Jun 17, 2024
6eda35b
chore: bump urllib3 from 2.2.1 to 2.2.2 (#225)
dependabot[bot] Jun 17, 2024
f18c715
feat: adding workload version (#226)
Jun 19, 2024
352ae5a
chore: bump the pip_dependencies group with 2 updates (#228)
dependabot[bot] Jun 24, 2024
a530782
chore: Update charm libraries (#231)
telcobot Jun 27, 2024
ef12ca7
chore: Update charm libraries (#232)
telcobot Jun 27, 2024
dc987c3
chore: bump the pip_dependencies group with 3 updates (#233)
dependabot[bot] Jul 1, 2024
684d791
chore: bump certifi from 2024.2.2 to 2024.7.4 (#237)
dependabot[bot] Jul 6, 2024
ca3128c
chore: bump the pip_dependencies group with 2 updates (#240)
dependabot[bot] Jul 8, 2024
2b0122e
chore: bump the pip_dependencies group with 4 updates (#242)
dependabot[bot] Jul 15, 2024
3c1e713
chore: bump ops from 2.14.1 to 2.15.0 (#254)
dependabot[bot] Jul 22, 2024
514b71f
chore: bump the pip_dependencies group across 1 directory with 5 upda…
dependabot[bot] Jul 22, 2024
9f4bb06
chore: Update charm libraries (#256)
telcobot Jul 27, 2024
4ad0f6c
fix: Uses Juju Terraform provider >= 0.11.0 (#262)
gatici Jul 29, 2024
1742679
chore: bump the pip_dependencies group across 1 directory with 4 upda…
dependabot[bot] Jul 29, 2024
5d89de0
chore: bump the pip_dependencies group with 5 updates (#267)
dependabot[bot] Aug 5, 2024
8768a79
chore: replace mypy with pyright (#273)
gruyaume Aug 7, 2024
f479b37
chore: Update charm libraries (#274)
telcobot Aug 8, 2024
eb4a1a3
chore: bump the pip_dependencies group with 3 updates (#276)
dependabot[bot] Aug 12, 2024
33747bd
feat: use NMS charm instead of webui (#265)
patriciareinoso Aug 13, 2024
1a4ccc1
chore: bump the pip_dependencies group across 1 directory with 2 upda…
dependabot[bot] Aug 19, 2024
f3bdddb
chore: bump the pip_dependencies group with 2 updates (#288)
dependabot[bot] Aug 26, 2024
0f15821
chore: replace harness with scenario (#293)
gruyaume Aug 27, 2024
921ee5c
chore: bump TLS library to v4 (#294)
gruyaume Aug 28, 2024
ba85d8c
chore: bump the pip_dependencies group with 4 updates (#296)
dependabot[bot] Sep 2, 2024
304a851
feat: enable NRF response caching by default (#291)
gatici Sep 2, 2024
386c72b
chore: bump the pip_dependencies group with 5 updates (#305)
dependabot[bot] Sep 9, 2024
ad6e40f
chore: Update charm libraries (#306)
telcobot Sep 13, 2024
d8e21b0
chore: bump the pip_dependencies group across 1 directory with 5 upda…
dependabot[bot] Sep 16, 2024
b0b9e10
chore: bump the pip_dependencies group across 1 directory with 3 upda…
dependabot[bot] Sep 23, 2024
b7fbb4e
chore: bump the pip_dependencies group across 1 directory with 3 upda…
dependabot[bot] Sep 30, 2024
fed41a8
chore: bump scenario to 7.x (#328)
gruyaume Oct 1, 2024
58a46ad
chore: add security policy (#329)
gruyaume Oct 1, 2024
2d8383c
chore: bump the pip_dependencies group across 1 directory with 3 upda…
dependabot[bot] Oct 7, 2024
12c4ecd
chore: Refactor the Terraform module to follow spec CC006 (#330)
ghislainbourgeois Oct 9, 2024
2a62dd3
chore: replace ops.main.main() with ops.main (#338)
gruyaume Oct 11, 2024
8257c53
chore: use built-in testing from ops (#337)
gruyaume Oct 11, 2024
88ec2ad
chore: Use tls lib V4.0 (#339)
saltiyazan Oct 11, 2024
6de0adb
chore: bump the pip_dependencies group with 2 updates (#343)
dependabot[bot] Oct 14, 2024
a309041
feat: add alert rule for PCF availability (#344)
dariofaccin Oct 16, 2024
8cd58f7
chore: Update charm libraries (#345)
telcobot Oct 18, 2024
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
48 changes: 45 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,62 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
commit-message:
prefix: "chore: "
groups:
github_actions:
patterns:
- "*"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
commit-message:
prefix: "chore: "
groups:
pip_dependencies:
patterns:
- "*"

- package-ecosystem: "terraform"
directory: "/terraform/"
schedule:
interval: "daily"
interval: "weekly"
commit-message:
prefix: "chore: "
groups:
terraform_modules:
patterns:
- "*"

- package-ecosystem: "github-actions"
target-branch: v1.4
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore: "
labels:
- v1.4

- package-ecosystem: "pip"
target-branch: v1.4
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore: "
labels:
- v1.4

- package-ecosystem: "terraform"
target-branch: v1.4
directory: "/terraform/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore: "
labels:
- v1.4
45 changes: 45 additions & 0 deletions .github/workflows/1_4_scheduled_runs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release 1.4

on:
schedule:
- cron: '0 3 * * 0'

jobs:
codeql:
name: CodeQL Analysis
uses: canonical/sdcore-github-workflows/.github/workflows/codeql-analysis.yml@v0.0
with:
branch-name: "v1.4"

lint-report:
uses: canonical/sdcore-github-workflows/.github/workflows/lint-report.yaml@v0.0
with:
branch-name: "v1.4"

terraform-check:
uses: canonical/sdcore-github-workflows/.github/workflows/terraform.yaml@v0.0
with:
branch-name: "v1.4"

static-analysis:
uses: canonical/sdcore-github-workflows/.github/workflows/static-analysis.yaml@v0.0
with:
branch-name: "v1.4"

unit-tests-with-coverage:
uses: canonical/sdcore-github-workflows/.github/workflows/unit-test.yaml@v0.0
with:
branch-name: "v1.4"

integration-test:
uses: canonical/sdcore-github-workflows/.github/workflows/integration-test.yaml@v0.0
with:
branch-name: "v1.4"
charm-file-name: "sdcore-pcf-k8s_ubuntu-22.04-amd64.charm"

update-libs:
name: Update libs
uses: canonical/sdcore-github-workflows/.github/workflows/update-libs.yaml@v0.0
with:
branch-name: "v1.4"
secrets: inherit
11 changes: 0 additions & 11 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/dependabot_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ name: "Dependabot Auto Approve and Merge"

on:
pull_request:
branches:
- main
- v1.4

permissions:
pull-requests: write
contents: write

jobs:
auto-merge:
uses: canonical/sdcore-github-workflows/.github/workflows/dependabot_pr.yaml@v0.0.1
uses: canonical/sdcore-github-workflows/.github/workflows/dependabot_pr.yaml@v1.0.0
2 changes: 1 addition & 1 deletion .github/workflows/issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ on:
jobs:
update:
name: Update Issue
uses: canonical/sdcore-github-workflows/.github/workflows/issues.yaml@v0.0.1
uses: canonical/sdcore-github-workflows/.github/workflows/issues.yaml@v1.0.0
secrets:
JIRA_URL: ${{ secrets.JIRA_URL }}
38 changes: 24 additions & 14 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,39 @@ on:
- cron: "0 7 * * 0"

jobs:
codeql:
name: CodeQL Analysis
uses: canonical/sdcore-github-workflows/.github/workflows/codeql-analysis.yml@v1.0.0

check-libraries:
uses: canonical/sdcore-github-workflows/.github/workflows/check-libraries.yaml@v0.0.1
uses: canonical/sdcore-github-workflows/.github/workflows/check-libraries.yaml@v1.0.0
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}

lint-report:
uses: canonical/sdcore-github-workflows/.github/workflows/lint-report.yaml@v0.0.1
uses: canonical/sdcore-github-workflows/.github/workflows/lint-report.yaml@v1.0.0

terraform-check:
uses: canonical/sdcore-github-workflows/.github/workflows/terraform.yaml@v0.0.1
uses: canonical/sdcore-github-workflows/.github/workflows/terraform.yaml@v1.0.0

static-analysis:
uses: canonical/sdcore-github-workflows/.github/workflows/static-analysis.yaml@v0.0.1
uses: canonical/sdcore-github-workflows/.github/workflows/static-analysis.yaml@v1.0.0

unit-tests-with-coverage:
uses: canonical/sdcore-github-workflows/.github/workflows/unit-test.yaml@v0.0.1
uses: canonical/sdcore-github-workflows/.github/workflows/unit-test.yaml@v1.0.0

build:
needs:
- lint-report
- static-analysis
- unit-tests-with-coverage
uses: canonical/sdcore-github-workflows/.github/workflows/build.yaml@v1.0.0
secrets: inherit

integration-test:
uses: canonical/sdcore-github-workflows/.github/workflows/integration-test.yaml@v0.0.1
with:
charm-file-name: "sdcore-pcf-k8s_ubuntu-22.04-amd64.charm"
needs:
- build
uses: canonical/sdcore-github-workflows/.github/workflows/integration-test.yaml@v1.0.0

publish-charm:
name: Publish Charm
Expand All @@ -39,10 +51,9 @@ jobs:
- unit-tests-with-coverage
- integration-test
if: ${{ github.ref_name == 'main' }}
uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@v0.0.1
uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@v1.0.0
with:
charm-file-name: "sdcore-pcf-k8s_ubuntu-22.04-amd64.charm"
track-name: 1.4
track-name: 1.5
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}

Expand All @@ -54,10 +65,9 @@ jobs:
- unit-tests-with-coverage
- integration-test
if: ${{ (github.ref_name != 'main') && (github.event_name == 'push') }}
uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@v0.0.1
uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@v1.0.0
with:
branch-name: ${{ github.ref_name }}
charm-file-name: "sdcore-pcf-k8s_ubuntu-22.04-amd64.charm"
track-name: 1.4
track-name: 1.5
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
8 changes: 3 additions & 5 deletions .github/workflows/promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ on:
description: Name of the charmhub track to publish
options:
- '1.4'
- '1.5'
- latest


jobs:
promote:
name: Promote Charm
uses: canonical/sdcore-github-workflows/.github/workflows/promote.yaml@v0.0.1
uses: canonical/sdcore-github-workflows/.github/workflows/promote.yaml@v1.0.0
with:
promotion: ${{ github.event.inputs.promotion }}
track-name: ${{ github.event.inputs.track-name }}

secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
secrets: inherit
43 changes: 2 additions & 41 deletions .github/workflows/update-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,5 @@ permissions:
jobs:
update-lib:
name: Check libraries
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up SSH Key for Signing Commits
run: |
mkdir -p ~/.ssh
echo "${{ secrets.BOT_PRIVATE_SIGNING_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "${{ secrets.BOT_PUBLIC_SIGNING_KEY }}" > ~/.ssh/id_rsa.pub
chmod 644 ~/.ssh/id_rsa.pub
git config --global user.email "telco-engineers@lists.canonical.com"
git config --global user.name "telcobot"
git config --global user.signingkey ~/.ssh/id_rsa.pub
git config --global commit.gpgsign true
git config --global gpg.format ssh

- name: Fetch charm libraries
run: |
sudo snap install charmcraft --classic --channel latest/stable
charmcraft fetch-lib
env:
CHARMCRAFT_AUTH: "${{ secrets.CHARMCRAFT_AUTH }}"

- name: Create a PR for local changes
uses: peter-evans/create-pull-request@v6.0.4
with:
token: ${{ secrets.TELCO_GITHUB_BOT_TOKEN }}
commit-message: "chore: update charm libraries"
committer: "Telcobot <telco-engineers@lists.canonical.com>"
author: "Telcobot <telco-engineers@lists.canonical.com>"
title: "chore: Update charm libraries"
body: |
Automated action to fetch latest version of charm libraries. The branch of this PR
will be wiped during the next check. Unless you really know what you're doing, you
most likely don't want to push any commits to this branch.
branch: "chore/auto-libs"
delete-branch: true
uses: canonical/sdcore-github-workflows/.github/workflows/update-libs.yaml@v1.0.0
secrets: inherit
12 changes: 8 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ There are some pre-configured environments
that can be used for linting and formatting code when you're preparing contributions to the charm:

```shell
tox -e lint # code style
tox -e static # static analysis
tox -e unit # unit tests
tox -e integration # integration tests
tox -e lint # code style
tox -e static # static analysis
tox -e unit # unit tests
tox -e integration -- --charm_path=PATH_TO_BUILD_CHARM # integration tests
```

```note
Integration tests require the charm to be built with `charmcraft pack` first.
```

## Build
Expand Down
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
# SD-Core PCF Operator (k8s)
# Aether SD-Core PCF Operator (k8s)
[![CharmHub Badge](https://charmhub.io/sdcore-pcf-k8s/badge.svg)](https://charmhub.io/sdcore-pcf-k8s)

A Charmed Operator for SD-Core's Policy Control Function (PCF) component for K8s.
A Charmed Operator for Aether SD-Core's Policy Control Function (PCF) component for K8s.

## Usage

```bash
juju deploy mongodb-k8s --channel=6/beta --trust
juju deploy sdcore-nrf-k8s --channel=1.4/edge
juju deploy sdcore-pcf-k8s --channel=1.4/edge

juju deploy self-signed-certificates

juju integrate sdcore-pcf-k8s mongodb-k8s
juju integrate sdcore-nrf-k8s self-signed-certificates
juju deploy sdcore-nrf-k8s --channel=1.5/edge
juju deploy sdcore-pcf-k8s --channel=1.5/edge
juju deploy sdcore-nms-k8s --channel=1.5/edge
juju deploy self-signed-certificates --channel=stable

juju integrate sdcore-nms-k8s:common_database mongodb-k8s:database
juju integrate sdcore-nms-k8s:auth_database mongodb-k8s:database
juju integrate sdcore-nrf-k8s self-signed-certificates:certificates
juju integrate sdcore-nrf-k8s:database mongodb-k8s
juju integrate sdcore-pcf-k8s:fiveg_nrf sdcore-nrf-k8s:fiveg_nrf
juju integrate sdcore-pcf-k8s:certificates self-signed-certificates:certificates
juju integrate sdcore-pcf-k8s:sdcore_config sdcore-nms-k8s:sdcore_config
```

## Image

**pcf**: `ghcr.io/canonical/sdcore-pcf:1.4.0`
**pcf**: `ghcr.io/canonical/sdcore-pcf:1.4.2`

7 changes: 7 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Security policy

To report a security issue, file a [Private Security Report](https://github.com/canonical/sdcore-pcf-k8s-operator/security/advisories/new)
with a description of the issue, the steps you took to create the issue, affected versions, and, if known, mitigations for the issue.

The [Ubuntu Security disclosure and embargo policy](https://ubuntu.com/security/disclosure-policy) contains more information about
what you can expect when you contact us and what we expect from you.
Loading
Loading