chore(gitea)!: ugrade Helm chart to v10

This is a breaking change, see https://gitea.com/gitea/helm-chart#upgrading
before upgrading to avoid losing data. Personally I have my repos saved
in many Git hosting providers so I just nuke it and reinstall.

Fixes changed files detection in pull_request event in Woodpecker.
This commit is contained in:
Khue Doan 2024-01-08 10:56:44 +07:00
parent ab06f7be56
commit 172c7c7c2b
2 changed files with 5 additions and 3 deletions

View File

@ -3,5 +3,5 @@ name: gitea
version: 0.0.0
dependencies:
- name: gitea
version: 5.0.3
version: 10.0.2
repository: https://dl.gitea.io/charts/

View File

@ -75,6 +75,7 @@ def setup_gitea_access_token(name: str) -> None:
sys.exit(1)
def setup_gitea_oauth_app(name: str, redirect_uri: str) -> None:
# TODO use the new global application, while it's there in the UI, there's no API yet.
current_apps = requests.get(
url=f"{gitea_url}/api/v1/user/applications/oauth2",
).json()
@ -87,7 +88,8 @@ def setup_gitea_oauth_app(name: str, redirect_uri: str) -> None:
},
data=json.dumps({
'name': name,
'redirect_uris': [redirect_uri]
'redirect_uris': [redirect_uri],
'confidential_client': True
})
)
@ -181,7 +183,7 @@ def main() -> None:
]
gitea_oauth_apps = [
{'name': 'woodpecker', 'redirect_uri': f"https://{client.NetworkingV1Api().read_namespaced_ingress('woodpecker-server', 'woodpecker').spec.rules[0].host}/authorize"}
{'name': 'woodpecker', 'redirect_uri': f"https://{client.NetworkingV1Api().read_namespaced_ingress('woodpecker-server', 'woodpecker').spec.rules[0].host}/authorize"},
]
kanidm_groups = [