Skip to content

Commit 3c49691

Browse files
authored
Merge branch 'agntcy:main' into main
2 parents 495257b + 90aa91c commit 3c49691

46 files changed

Lines changed: 735 additions & 793 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/buf-ci.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright AGNTCY Contributors (https://github.com/agntcy)
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Buf CI
5+
on:
6+
push:
7+
pull_request:
8+
types: [opened, synchronize, reopened, labeled, unlabeled]
9+
delete:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
jobs:
14+
buf:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: bufbuild/buf-action@v1
19+
with:
20+
token: ${{ secrets.BUF_TOKEN }}
21+
input: proto

.github/workflows/reusable-release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- name: Checkout code
37-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
37+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
3838
with:
3939
fetch-depth: 0
4040

@@ -43,7 +43,7 @@ jobs:
4343
run: sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin
4444

4545
- name: Download artifacts
46-
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
46+
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
4747
with:
4848
name: ${{ inputs.artifact_path }}
4949
path: artifacts
@@ -78,7 +78,7 @@ jobs:
7878
runs-on: ubuntu-latest
7979
steps:
8080
- name: Checkout code
81-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
81+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
8282
with:
8383
fetch-depth: 0
8484

@@ -90,7 +90,7 @@ jobs:
9090
password: ${{ secrets.GITHUB_TOKEN }}
9191

9292
- name: Setup Helm
93-
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
93+
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
9494
with:
9595
version: ${{ inputs.helm-version }}
9696

@@ -131,7 +131,7 @@ jobs:
131131
id: create_release
132132
uses: actions/create-release@v1
133133
env:
134-
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
134+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135135
with:
136136
tag_name: ${{ inputs.release_tag }}
137137
release_name: Release ${{ inputs.release_tag }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ bin/
66

77
# Env config
88
.env
9+
10+
# IDEs
11+
.idea/
12+
.DS_Store

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,19 @@ including ephemeral Kind clusters and Docker containers.
116116
task down
117117
```
118118

119-
## Artifacts distribution
119+
## Distribution
120+
121+
### Artifacts
120122

121123
See https://github.com/orgs/agntcy/packages?repo_name=oasf
122124

123-
## Copyright Notice
125+
### Protocol buffer definitions
126+
127+
The `proto` directory contains the Protocol Buffer (`.proto`) files defining our data objects and APIs. The full proto
128+
module, generated language stubs and it's versions are hosted at the Buf Schema Registry:
129+
[https://buf.build/agntcy/oasf](https://buf.build/agntcy/oasf)
130+
131+
## Copyright notice
124132

125133
[Copyright Notice and License](./LICENSE.md)
126134

install/charts/oasf/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type: application
1818
# This is the chart version. This version number should be incremented each time you make changes
1919
# to the chart and its templates, including the app version.
2020
# Versions are expected to follow Semantic Versioning (https://semver.org/).
21-
version: 0.1.0
21+
version: 0.1.1
2222

2323
# This is the version number of the application being deployed. This version number should be
2424
# incremented each time you make changes to the application. Versions are not expected to

install/charts/oasf/templates/ingress/ingress-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ metadata:
2222
labels:
2323
{{- include "chart.labels" . | nindent 4 }}
2424
annotations:
25-
{{- if eq .Values.ingress.className "nginx" }}
25+
{{- if or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "nginx-internal") }}
2626
nginx.ingress.kubernetes.io/rewrite-target: /api/$2
2727
nginx.ingress.kubernetes.io/use-regex: "true"
2828
{{- end }}

install/charts/oasf/templates/ingress/ingress-configmap.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ apiVersion: v1
66
kind: ConfigMap
77
metadata:
88
name: nginx-configuration
9-
namespace: default
109
data:
1110
proxy-body-size: "64m"
1211
{{- end }}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Copyright AGNTCY Contributors (https://github.com/agntcy)
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
{{- if .Values.ingress.enabled -}}
5+
{{- $fullName := include "chart.fullname" . -}}
6+
{{- $svcPort := .Values.service.port -}}
7+
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
8+
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
9+
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className }}
10+
{{- end }}
11+
{{- end }}
12+
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
13+
apiVersion: networking.k8s.io/v1
14+
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
15+
apiVersion: networking.k8s.io/v1beta1
16+
{{- else }}
17+
apiVersion: extensions/v1beta1
18+
{{- end }}
19+
kind: Ingress
20+
metadata:
21+
name: {{ $fullName }}-default
22+
labels:
23+
{{- include "chart.labels" . | nindent 4 }}
24+
annotations:
25+
{{- if or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "nginx-internal") }}
26+
nginx.ingress.kubernetes.io/rewrite-target: /$1
27+
nginx.ingress.kubernetes.io/use-regex: "true"
28+
{{- end }}
29+
{{- with .Values.ingress.annotations }}
30+
{{- toYaml . | nindent 4 }}
31+
{{- end }}
32+
spec:
33+
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
34+
ingressClassName: {{ .Values.ingress.className }}
35+
{{- end }}
36+
{{- if .Values.ingress.tls }}
37+
tls:
38+
{{- range .Values.ingress.tls }}
39+
- hosts:
40+
{{- range .hosts }}
41+
- {{ . | quote }}
42+
{{- end }}
43+
secretName: {{ .secretName }}
44+
{{- end }}
45+
{{- end }}
46+
rules:
47+
{{- range .Values.ingress.hosts }}
48+
- host: {{ .host | quote }}
49+
http:
50+
paths:
51+
{{- range $index, $version := $.Values.image.versions }}
52+
{{- if $version.default }}
53+
- path: /(.*)
54+
pathType: ImplementationSpecific
55+
backend:
56+
service:
57+
name: {{ $fullName }}-{{ $version.schema | replace "." "-" }}
58+
port:
59+
number: {{ $svcPort }}
60+
{{- end }}
61+
{{- end }}
62+
{{- end }}
63+
{{- end }}

install/charts/oasf/templates/ingress/ingress-doc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ metadata:
2222
labels:
2323
{{- include "chart.labels" . | nindent 4 }}
2424
annotations:
25-
{{- if eq .Values.ingress.className "nginx" }}
25+
{{- if or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "nginx-internal") }}
2626
nginx.ingress.kubernetes.io/use-regex: "false"
2727
{{- end }}
2828
{{- with .Values.ingress.annotations }}
@@ -49,15 +49,15 @@ spec:
4949
paths:
5050
{{- range $index, $version := $.Values.image.versions }}
5151
- path: /{{ $version.schema }}/doc
52-
pathType: Prefix
52+
pathType: ImplementationSpecific
5353
backend:
5454
service:
5555
name: {{ $fullName }}-{{ $version.schema | replace "." "-" }}
5656
port:
5757
number: {{ $svcPort }}
5858
{{- if $version.default }}
5959
- path: /doc
60-
pathType: Prefix
60+
pathType: ImplementationSpecific
6161
backend:
6262
service:
6363
name: {{ $fullName }}-{{ $version.schema | replace "." "-" }}

install/charts/oasf/templates/ingress/ingress-export.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ metadata:
2222
labels:
2323
{{- include "chart.labels" . | nindent 4 }}
2424
annotations:
25-
{{- if eq .Values.ingress.className "nginx" }}
25+
{{- if or (eq .Values.ingress.className "nginx") (eq .Values.ingress.className "nginx-internal") }}
2626
nginx.ingress.kubernetes.io/rewrite-target: /export/$2
2727
nginx.ingress.kubernetes.io/use-regex: "true"
2828
{{- end }}

0 commit comments

Comments
 (0)