Skip to content

Commit c925e4a

Browse files
Merge pull request #4008 from pacevedom/USHIFT-4534
USHIFT-4534: Add rebase capabilities for gateway api
2 parents 85494ad + 6f3ac95 commit c925e4a

File tree

8 files changed

+548
-1
lines changed

8 files changed

+548
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: openshift-gateway-api
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: gateway.networking.k8s.io/v1beta1
2+
kind: GatewayClass
3+
metadata:
4+
name: openshift-gateway-api
5+
spec:
6+
controllerName: openshift.io/gateway-controller
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: sailoperator.io/v1alpha1
2+
kind: Istio
3+
metadata:
4+
name: openshift-gateway-api
5+
spec:
6+
version: latest
7+
namespace: openshift-gateway-api
8+
values:
9+
pilot:
10+
resources:
11+
requests:
12+
cpu: 50m
13+
memory: 100Mi
14+
env:
15+
PILOT_ENABLE_GATEWAY_CONTROLLER_MODE: "true"
16+
PILOT_GATEWAY_API_CONTROLLER_NAME: "openshift.io/gateway-controller"
17+
PILOT_GATEWAY_API_DEFAULT_GATEWAYCLASS: "openshift-default"
18+
PILOT_ENABLE_GATEWAY_API_GATEWAYCLASS_CONTROLLER: "true"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- 00-extensions.istio.io_wasmplugins.yaml
5+
- 00-gateway.networking.k8s.io_crds.yaml
6+
- 00-networking.istio.io_destinationrules.yaml
7+
- 00-networking.istio.io_envoyfilters.yaml
8+
- 00-networking.istio.io_gateways.yaml
9+
- 00-networking.istio.io_proxyconfigs.yaml
10+
- 00-networking.istio.io_serviceentries.yaml
11+
- 00-networking.istio.io_sidecars.yaml
12+
- 00-networking.istio.io_virtualservices.yaml
13+
- 00-networking.istio.io_workloadentries.yaml
14+
- 00-networking.istio.io_workloadgroups.yaml
15+
- 00-sailoperator.io_istiocnis.yaml
16+
- 00-sailoperator.io_istiorevisions.yaml
17+
- 00-sailoperator.io_istios.yaml
18+
- 00-sailoperator.io_remoteistios.yaml
19+
- 00-security.istio.io_authorizationpolicies.yaml
20+
- 00-security.istio.io_peerauthentications.yaml
21+
- 00-security.istio.io_requestauthentications.yaml
22+
- 00-telemetry.istio.io_telemetries.yaml
23+
- 00-openshift_gateway_api_namespace.yaml
24+
- 01-servicemesh-operator3_apps_v1_deployment.yaml
25+
- 01-servicemesh-operator3-metrics-service_v1_service.yaml
26+
- 01-servicemesh-operator3_rbac.authorization.k8s.io_v1_clusterrolebinding.yaml
27+
- 01-servicemesh-operator3_rbac.authorization.k8s.io_v1_clusterrole.yaml
28+
- 01-servicemesh-operator3_rbac.authorization.k8s.io_v1_rolebinding.yaml
29+
- 01-servicemesh-operator3_rbac.authorization.k8s.io_v1_role.yaml
30+
- 01-servicemesh-operator3_v1_serviceaccount.yaml
31+
- 02-gatewayclass.yaml
32+
- 02-istio.yaml

scripts/auto-rebase/assets.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,4 +300,3 @@ assets:
300300
- file: 05-daemonset.yaml
301301
- file: release-kube-proxy-aarch64.json
302302
- file: release-kube-proxy-x86_64.json
303-

scripts/auto-rebase/ossm_assets.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
assets:
2+
3+
- dir: optional/gateway-api/
4+
src: ossm/amd64/
5+
no_clean: True
6+
files:
7+
# Manual Namespace instead of OLM one
8+
- file: 00-openshift_gateway_api_namespace.yaml
9+
ignore: "Provided by MicroShift"
10+
# Gateway class and istio definitions
11+
- file: 02-gatewayclass.yaml
12+
ignore: "Provided by MicroShift"
13+
- file: 02-istio.yaml
14+
ignore: "Provided by MicroShift"
15+
#TODO
16+
- file: kustomization.yaml
17+
ignore: "Provided by MicroShift"

scripts/auto-rebase/presubmit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
RECIPE_FILEPATHS = [
2626
"./scripts/auto-rebase/assets.yaml",
2727
"./scripts/auto-rebase/lvms_assets.yaml",
28+
"./scripts/auto-rebase/ossm_assets.yaml",
2829
]
2930

3031

0 commit comments

Comments
 (0)