Compare commits

..
13 Commits
Author SHA1 Message Date
dependabot[bot]andThomas Pantelis 78ddb277f5 Bump the github-actions group with 2 updates
Bumps the github-actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [azure/setup-helm](https://github.com/azure/setup-helm).


Updates `actions/checkout` from 4.2.2 to 5.0.0
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/11bd71901bbe5b1630ceea73d27597364c9af683...08c6903cd8c0fde910a37f88322edcfb5dd907a8)

Updates `azure/setup-helm` from 4.3.0 to 4.3.1
- [Release notes](https://github.com/azure/setup-helm/releases)
- [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md)
- [Commits](https://github.com/azure/setup-helm/compare/b9e51907a09c216f16ebe8536097933489208112...1a275c3b69536ee54be43f2070a358922e12c8d4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: azure/setup-helm
  dependency-version: 4.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-02 03:54:03 -04:00
dependabot[bot]andThomas Pantelis 4e907f6818 Bump actions/stale in the github-actions group
Bumps the github-actions group with 1 update: [actions/stale](https://github.com/actions/stale).


Updates `actions/stale` from 128b2c81d01bedfe5b59d56fc08176aecd3fe6b9 to 8f717f0dfca33b78d3c933452e42558e4456c8e7
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/128b2c81d01bedfe5b59d56fc08176aecd3fe6b9...8f717f0dfca33b78d3c933452e42558e4456c8e7)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 8f717f0dfca33b78d3c933452e42558e4456c8e7
  dependency-type: direct:production
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-06 07:46:27 -04:00
Stephen KittandThomas Pantelis 1f80debc69 Use named Kubernetes versions in GHAs
This ensures consistent job names that don't change when Kubernetes
versions change.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-07-16 10:24:53 -04:00
dependabot[bot]andThomas Pantelis 089dbcbe87 Bump actions/stale in the github-actions group
Bumps the github-actions group with 1 update: [actions/stale](https://github.com/actions/stale).


Updates `actions/stale` from f78de9780efb7a789cf4745957fa3374cbb94fd5 to 128b2c81d01bedfe5b59d56fc08176aecd3fe6b9
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/f78de9780efb7a789cf4745957fa3374cbb94fd5...128b2c81d01bedfe5b59d56fc08176aecd3fe6b9)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 128b2c81d01bedfe5b59d56fc08176aecd3fe6b9
  dependency-type: direct:production
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 12:40:16 -04:00
dependabot[bot]andStephen Kitt abc9c882e2 Bump actions/stale in the github-actions group
Bumps the github-actions group with 1 update: [actions/stale](https://github.com/actions/stale).


Updates `actions/stale` from 816d9db1aba399a7f70277f1a2b01a4d21497fdd to f78de9780efb7a789cf4745957fa3374cbb94fd5
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/816d9db1aba399a7f70277f1a2b01a4d21497fdd...f78de9780efb7a789cf4745957fa3374cbb94fd5)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: f78de9780efb7a789cf4745957fa3374cbb94fd5
  dependency-type: direct:production
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 10:52:27 +02:00
Automated ReleaseandSubmariner Bot 76eb902bbe Update Submariner dependencies to v0.20.1
Signed-off-by: Automated Release <release@submariner.io>
2025-05-14 12:52:32 +03:00
dependabot[bot]andThomas Pantelis ece4a558eb Bump the github-actions group with 2 updates
Bumps the github-actions group with 2 updates: [actions/setup-python](https://github.com/actions/setup-python) and [actions/stale](https://github.com/actions/stale).


Updates `actions/setup-python` from 5.5.0 to 5.6.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/8d9ed9ac5c53483de85588cdf95a591a75ab9f55...a26af69be951a213d495a4c3e4e4022e16d87065)

Updates `actions/stale` from ba23c1cb02e5cb8f885b0994d870e6032be00186 to 816d9db1aba399a7f70277f1a2b01a4d21497fdd
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/ba23c1cb02e5cb8f885b0994d870e6032be00186...816d9db1aba399a7f70277f1a2b01a4d21497fdd)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 5.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: actions/stale
  dependency-version: 816d9db1aba399a7f70277f1a2b01a4d21497fdd
  dependency-type: direct:production
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-01 07:21:47 -04:00
dependabot[bot]andThomas Pantelis f9b976f6b5 Bump the github-actions group with 3 updates
Bumps the github-actions group with 3 updates: [actions/setup-python](https://github.com/actions/setup-python), [gaurav-nelson/github-action-markdown-link-check](https://github.com/gaurav-nelson/github-action-markdown-link-check) and [actions/stale](https://github.com/actions/stale).


Updates `actions/setup-python` from 5.4.0 to 5.5.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/42375524e23c412d93fb67b49958b491fce71c38...8d9ed9ac5c53483de85588cdf95a591a75ab9f55)

Updates `gaurav-nelson/github-action-markdown-link-check` from 1.0.16 to 1.0.17
- [Release notes](https://github.com/gaurav-nelson/github-action-markdown-link-check/releases)
- [Commits](https://github.com/gaurav-nelson/github-action-markdown-link-check/compare/1b916f2cf6c36510a6059943104e3c42ce6c16bc...3c3b66f1f7d0900e37b71eca45b63ea9eedfce31)

Updates `actions/stale` from ee7ef89499a3de6e4fe1fc1acb994e67c64e0a2a to ba23c1cb02e5cb8f885b0994d870e6032be00186
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/ee7ef89499a3de6e4fe1fc1acb994e67c64e0a2a...ba23c1cb02e5cb8f885b0994d870e6032be00186)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 5.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: gaurav-nelson/github-action-markdown-link-check
  dependency-version: 1.0.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/stale
  dependency-version: ba23c1cb02e5cb8f885b0994d870e6032be00186
  dependency-type: direct:production
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 09:32:10 -04:00
dependabot[bot]andThomas Pantelis 7577e5eb3a Bump azure/setup-helm from 4.2.0 to 4.3.0 in the github-actions group
Bumps the github-actions group with 1 update: [azure/setup-helm](https://github.com/azure/setup-helm).


Updates `azure/setup-helm` from 4.2.0 to 4.3.0
- [Release notes](https://github.com/azure/setup-helm/releases)
- [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md)
- [Commits](https://github.com/azure/setup-helm/compare/fe7b79cd5ee1e45176fcad797de68ecaf3ca4814...b9e51907a09c216f16ebe8536097933489208112)

---
updated-dependencies:
- dependency-name: azure/setup-helm
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-04 12:43:40 -05:00
Automated ReleaseandSubmariner Bot acb530ccb0 Update Submariner dependencies to v0.20.0
Signed-off-by: Automated Release <release@submariner.io>
2025-03-04 01:48:36 +02:00
Automated ReleaseandSubmariner Bot 46569e9706 Update Submariner dependencies to v0.20.0-rc1
Signed-off-by: Automated Release <release@submariner.io>
2025-02-07 19:47:42 +02:00
Automated ReleaseandSubmariner Bot f775d86825 Update Submariner dependencies to v0.20.0-rc0
Signed-off-by: Automated Release <release@submariner.io>
2025-02-06 12:44:51 +02:00
Automated Release b6f0db2292 Update base image to use stable branch 'release-0.20'
Signed-off-by: Automated Release <release@submariner.io>
2025-02-05 16:37:12 +00:00
11 changed files with 97 additions and 138 deletions
+18 -27
View File
@@ -9,6 +9,24 @@ updates:
github-actions: github-actions:
patterns: patterns:
- "*" - "*"
- package-ecosystem: github-actions
directory: '/'
target-branch: "release-0.15"
schedule:
interval: monthly
groups:
github-actions:
patterns:
- "*"
- package-ecosystem: github-actions
directory: '/'
target-branch: "release-0.16"
schedule:
interval: monthly
groups:
github-actions:
patterns:
- "*"
- package-ecosystem: github-actions - package-ecosystem: github-actions
directory: '/' directory: '/'
target-branch: "release-0.17" target-branch: "release-0.17"
@@ -27,30 +45,3 @@ updates:
github-actions: github-actions:
patterns: patterns:
- "*" - "*"
- package-ecosystem: github-actions
directory: '/'
target-branch: "release-0.19"
schedule:
interval: monthly
groups:
github-actions:
patterns:
- "*"
- package-ecosystem: github-actions
directory: '/'
target-branch: "release-0.20"
schedule:
interval: monthly
groups:
github-actions:
patterns:
- "*"
- package-ecosystem: github-actions
directory: '/'
target-branch: "release-0.21"
schedule:
interval: monthly
groups:
github-actions:
patterns:
- "*"
+2 -2
View File
@@ -11,6 +11,6 @@ jobs:
name: PR targets branch name: PR targets branch
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check that the PR targets devel - name: Check that the PR targets release-0.20
if: ${{ github.base_ref != 'devel' }} if: ${{ github.base_ref != 'release-0.20' }}
run: exit 1 run: exit 1
+2 -2
View File
@@ -29,11 +29,11 @@ jobs:
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Run E2E deployment and tests - name: Run E2E deployment and tests
uses: submariner-io/shipyard/gh-actions/e2e@devel uses: submariner-io/shipyard/gh-actions/e2e@release-0.20
with: with:
k8s_version: ${{ matrix.k8s_version }} k8s_version: ${{ matrix.k8s_version }}
using: ${{ matrix.cable_driver }} ${{ matrix.globalnet }} ${{ matrix.lighthouse }} using: ${{ matrix.cable_driver }} ${{ matrix.globalnet }} ${{ matrix.lighthouse }}
- name: Post mortem - name: Post mortem
if: failure() if: failure()
uses: submariner-io/shipyard/gh-actions/post-mortem@devel uses: submariner-io/shipyard/gh-actions/post-mortem@release-0.20
+2 -2
View File
@@ -16,8 +16,8 @@ jobs:
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Run E2E deployment and tests - name: Run E2E deployment and tests
uses: submariner-io/shipyard/gh-actions/e2e@devel uses: submariner-io/shipyard/gh-actions/e2e@release-0.20
- name: Post mortem - name: Post mortem
if: failure() if: failure()
uses: submariner-io/shipyard/gh-actions/post-mortem@devel uses: submariner-io/shipyard/gh-actions/post-mortem@release-0.20
+2 -2
View File
@@ -24,10 +24,10 @@ jobs:
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Run E2E deployment and tests - name: Run E2E deployment and tests
uses: submariner-io/shipyard/gh-actions/e2e@devel uses: submariner-io/shipyard/gh-actions/e2e@release-0.20
with: with:
using: ${{ matrix.cable_driver }} ${{ matrix.globalnet }} ${{ matrix.lighthouse }} using: ${{ matrix.cable_driver }} ${{ matrix.globalnet }} ${{ matrix.lighthouse }}
- name: Post mortem - name: Post mortem
if: failure() if: failure()
uses: submariner-io/shipyard/gh-actions/post-mortem@devel uses: submariner-io/shipyard/gh-actions/post-mortem@release-0.20
+1 -1
View File
@@ -4,7 +4,7 @@ name: Release Charts
on: on:
push: push:
branches: branches:
- devel - release-0.20
permissions: permissions:
contents: write contents: write
+1 -3
View File
@@ -6,9 +6,7 @@ Makefile.dapper
Makefile.shipyard Makefile.shipyard
Dockerfile.* Dockerfile.*
helm_repo helm_repo
yamls/go.mod yamls
yamls/go.sum
yamls/vendor
submariner-k8s-broker/crds/crd.yaml submariner-k8s-broker/crds/crd.yaml
submariner-k8s-broker/templates/_role.tpl submariner-k8s-broker/templates/_role.tpl
submariner-operator/crds/crd.yaml submariner-operator/crds/crd.yaml
+2 -2
View File
@@ -1,4 +1,4 @@
BASE_BRANCH ?= devel BASE_BRANCH ?= release-0.20
export BASE_BRANCH export BASE_BRANCH
export HELM_REPO_LOCATION=./helm_repo export HELM_REPO_LOCATION=./helm_repo
@@ -17,7 +17,7 @@ endif
export DEPLOYTOOL = helm export DEPLOYTOOL = helm
GH_URL=https://submariner-io.github.io/submariner-charts/charts GH_URL=https://submariner-io.github.io/submariner-charts/charts
CHARTS_DIR=charts CHARTS_DIR=charts
CHARTS_VERSION=0.22.0-m2 CHARTS_VERSION=0.20.1
HELM_DOCS_VERSION=0.15.0 HELM_DOCS_VERSION=0.15.0
REPO_URL=$(shell git config remote.origin.url) REPO_URL=$(shell git config remote.origin.url)
Executable
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/awk -f
# Start of a file entry
/= `/ {
outfile = gensub("_yaml$", ".yaml", "1", $1)
print "Writing " outfile
firstline = substr($0, index($0, "`") + 1)
if (firstline !~ "^---")
firstline = "---\n"firstline
print firstline > outfile
next
}
/^`$/ {
outfile = ""
next
}
outfile != "" {
print >> outfile
}
+46 -59
View File
@@ -10,94 +10,81 @@ GLOBALNET_RBAC_YAML=submariner-operator/templates/globalnet-rbac.yaml
SERVICE_DISC_RBAC_YAML=submariner-operator/templates/service-discovery-rbac.yaml SERVICE_DISC_RBAC_YAML=submariner-operator/templates/service-discovery-rbac.yaml
OPENSHIFT_MONITORING_YAML=submariner-operator/templates/openshift-monitoring-rbac.yaml OPENSHIFT_MONITORING_YAML=submariner-operator/templates/openshift-monitoring-rbac.yaml
YAMLS_BASE=yamls/vendor
SUBM_CRDS=${YAMLS_BASE}/github.com/submariner-io/submariner/deploy/crds
OPERATOR_CRDS=${YAMLS_BASE}/github.com/submariner-io/submariner-operator/deploy/crds
MCS_CRDS=${YAMLS_BASE}/sigs.k8s.io/mcs-api/config/crd
BROKER=${YAMLS_BASE}/github.com/submariner-io/submariner-operator/config/broker/broker-client
RBAC_BASE=${YAMLS_BASE}/github.com/submariner-io/submariner-operator/config/rbac
OPENSHIFT=${YAMLS_BASE}/github.com/submariner-io/submariner-operator/config/openshift
function add_service_acct_ns() { function add_service_acct_ns() {
sed -i '/- kind: ServiceAccount/a \ \ \ \ namespace: {{ .Release.Namespace }}' $1 sed -i '/- kind: ServiceAccount/a \ \ \ \ namespace: {{ .Release.Namespace }}' $1
} }
mkdir -p yamls
cd yamls cd yamls
rm go.mod || true curl -L https://raw.githubusercontent.com/submariner-io/submariner-operator/refs/heads/$1/pkg/embeddedyamls/yamls.go | ../extract-yamls
go mod init cd -
go get github.com/submariner-io/submariner-operator@$1
go mod tidy
go mod vendor
cd ..
# Generate the CRDs for the broker chart # Generate the CRDs for the broker chart
mkdir -p submariner-k8s-broker/crds mkdir -p submariner-k8s-broker/crds
cat ${SUBM_CRDS}/submariner.io_endpoints.yaml \ cat yamls/Deploy_submariner_crds_submariner_io_endpoints.yaml \
${SUBM_CRDS}/submariner.io_clusters.yaml \ yamls/Deploy_submariner_crds_submariner_io_clusters.yaml \
${SUBM_CRDS}/submariner.io_gateways.yaml > submariner-k8s-broker/crds/crd.yaml yamls/Deploy_submariner_crds_submariner_io_gateways.yaml \
echo '---' >> submariner-k8s-broker/crds/crd.yaml yamls/Deploy_mcsapi_crds_multicluster_x_k8s_io_serviceexports.yaml \
cat ${MCS_CRDS}/multicluster.x-k8s.io_serviceexports.yaml >> submariner-k8s-broker/crds/crd.yaml yamls/Deploy_mcsapi_crds_multicluster_x_k8s_io_serviceimports.yaml > submariner-k8s-broker/crds/crd.yaml
echo '---' >> submariner-k8s-broker/crds/crd.yaml
cat ${MCS_CRDS}/multicluster.x-k8s.io_serviceimports.yaml >> submariner-k8s-broker/crds/crd.yaml
# Generate the client role yaml for the broker chart # Generate the client role yaml for the broker chart
echo '{{- define "broker-role" -}}' > ${BROKER_ROLE_TPL} echo '{{- define "broker-role" -}}' > ${BROKER_ROLE_TPL}
cat ${BROKER}/role.yaml >> ${BROKER_ROLE_TPL} cat yamls/Config_broker_broker_client_role.yaml >> ${BROKER_ROLE_TPL}
echo '{{- end -}}' >> ${BROKER_ROLE_TPL} echo '{{- end -}}' >> ${BROKER_ROLE_TPL}
sed -i -e 's/name:.*/name: {{ template "submariner-k8s-broker.fullname" \. }}-cluster/' ${BROKER_ROLE_TPL} sed -i -e 's/name:.*/name: {{ template "submariner-k8s-broker.fullname" \. }}-cluster/' ${BROKER_ROLE_TPL}
# Generate the CRDs for the operator chart # Generate the CRDs for the operator chart
mkdir -p submariner-operator/crds mkdir -p submariner-operator/crds
cat ${OPERATOR_CRDS}/submariner.io_submariners.yaml \ cat yamls/Deploy_crds_submariner_io_submariners.yaml \
${OPERATOR_CRDS}/submariner.io_servicediscoveries.yaml \ yamls/Deploy_crds_submariner_io_servicediscoveries.yaml \
${OPERATOR_CRDS}/submariner.io_brokers.yaml > submariner-operator/crds/crd.yaml yamls/Deploy_crds_submariner_io_brokers.yaml > submariner-operator/crds/crd.yaml
# Generate the operator RBAC yaml for the operator chart # Generate the operator RBAC yaml for the operator chart
add_service_acct_ns ${RBAC_BASE}/submariner-operator/cluster_role_binding.yaml add_service_acct_ns yamls/Config_rbac_submariner_operator_cluster_role_binding.yaml
cat ${RBAC_BASE}/submariner-operator/service_account.yaml \ cat yamls/Config_rbac_submariner_operator_service_account.yaml \
${RBAC_BASE}/submariner-operator/role.yaml \ yamls/Config_rbac_submariner_operator_role.yaml \
${RBAC_BASE}/submariner-operator/role_binding.yaml \ yamls/Config_rbac_submariner_operator_role_binding.yaml \
${RBAC_BASE}/submariner-operator/cluster_role.yaml \ yamls/Config_rbac_submariner_operator_cluster_role.yaml \
${RBAC_BASE}/submariner-operator/cluster_role_binding.yaml > ${OPERATOR_RBAC_YAML} yamls/Config_rbac_submariner_operator_cluster_role_binding.yaml > ${OPERATOR_RBAC_YAML}
# Generate the gateway RBAC yaml for the operator chart # Generate the gateway RBAC yaml for the operator chart
add_service_acct_ns ${RBAC_BASE}/submariner-gateway/cluster_role_binding.yaml add_service_acct_ns yamls/Config_rbac_submariner_gateway_cluster_role_binding.yaml
cat ${RBAC_BASE}/submariner-gateway/service_account.yaml \ cat yamls/Config_rbac_submariner_gateway_service_account.yaml \
${RBAC_BASE}/submariner-gateway/role.yaml \ yamls/Config_rbac_submariner_gateway_role.yaml \
${RBAC_BASE}/submariner-gateway/role_binding.yaml \ yamls/Config_rbac_submariner_gateway_role_binding.yaml \
${RBAC_BASE}/submariner-gateway/cluster_role.yaml \ yamls/Config_rbac_submariner_gateway_cluster_role.yaml \
${RBAC_BASE}/submariner-gateway/cluster_role_binding.yaml > ${GATEWAY_RBAC_YAML} yamls/Config_rbac_submariner_gateway_cluster_role_binding.yaml > ${GATEWAY_RBAC_YAML}
# Generate the routeagent RBAC yaml for the operator chart # Generate the routeagent RBAC yaml for the operator chart
add_service_acct_ns ${RBAC_BASE}/submariner-route-agent/cluster_role_binding.yaml add_service_acct_ns yamls/Config_rbac_submariner_route_agent_cluster_role_binding.yaml
cat ${RBAC_BASE}/submariner-route-agent/service_account.yaml \ cat yamls/Config_rbac_submariner_route_agent_service_account.yaml \
${RBAC_BASE}/submariner-route-agent/role.yaml \ yamls/Config_rbac_submariner_route_agent_role.yaml \
${RBAC_BASE}/submariner-route-agent/role_binding.yaml \ yamls/Config_rbac_submariner_route_agent_role_binding.yaml \
${RBAC_BASE}/submariner-route-agent/cluster_role.yaml \ yamls/Config_rbac_submariner_route_agent_cluster_role.yaml \
${RBAC_BASE}/submariner-route-agent/cluster_role_binding.yaml > ${ROUTE_AGENT_RBAC_YAML} yamls/Config_rbac_submariner_route_agent_cluster_role_binding.yaml > ${ROUTE_AGENT_RBAC_YAML}
# Generate the globalnet RBAC yaml for the operator chart # Generate the globalnet RBAC yaml for the operator chart
echo '{{- if .Values.broker.globalnet }}' > ${GLOBALNET_RBAC_YAML} echo '{{- if .Values.broker.globalnet }}' > ${GLOBALNET_RBAC_YAML}
add_service_acct_ns ${RBAC_BASE}/submariner-globalnet/cluster_role_binding.yaml add_service_acct_ns yamls/Config_rbac_submariner_globalnet_cluster_role_binding.yaml
cat ${RBAC_BASE}/submariner-globalnet/service_account.yaml \ cat yamls/Config_rbac_submariner_globalnet_service_account.yaml \
${RBAC_BASE}/submariner-globalnet/role.yaml \ yamls/Config_rbac_submariner_globalnet_role.yaml \
${RBAC_BASE}/submariner-globalnet/role_binding.yaml \ yamls/Config_rbac_submariner_globalnet_role_binding.yaml \
${RBAC_BASE}/submariner-globalnet/cluster_role.yaml \ yamls/Config_rbac_submariner_globalnet_cluster_role.yaml \
${RBAC_BASE}/submariner-globalnet/cluster_role_binding.yaml >> ${GLOBALNET_RBAC_YAML} yamls/Config_rbac_submariner_globalnet_cluster_role_binding.yaml >> ${GLOBALNET_RBAC_YAML}
echo '{{- end -}}' >> ${GLOBALNET_RBAC_YAML} echo '{{- end -}}' >> ${GLOBALNET_RBAC_YAML}
# Generate the service discovery RBAC yaml for the operator chart # Generate the service discovery RBAC yaml for the operator chart
echo '{{- if .Values.submariner.serviceDiscovery }}' > ${SERVICE_DISC_RBAC_YAML} echo '{{- if .Values.submariner.serviceDiscovery }}' > ${SERVICE_DISC_RBAC_YAML}
add_service_acct_ns ${RBAC_BASE}/lighthouse-agent/cluster_role_binding.yaml add_service_acct_ns yamls/Config_rbac_lighthouse_agent_cluster_role_binding.yaml
add_service_acct_ns ${RBAC_BASE}/lighthouse-coredns/cluster_role_binding.yaml add_service_acct_ns yamls/Config_rbac_lighthouse_coredns_cluster_role_binding.yaml
cat ${RBAC_BASE}/lighthouse-agent/service_account.yaml \ cat yamls/Config_rbac_lighthouse_agent_service_account.yaml \
${RBAC_BASE}/lighthouse-agent/cluster_role.yaml \ yamls/Config_rbac_lighthouse_agent_cluster_role.yaml \
${RBAC_BASE}/lighthouse-agent/cluster_role_binding.yaml \ yamls/Config_rbac_lighthouse_agent_cluster_role_binding.yaml \
${RBAC_BASE}/lighthouse-coredns/service_account.yaml \ yamls/Config_rbac_lighthouse_coredns_service_account.yaml \
${RBAC_BASE}/lighthouse-coredns/cluster_role.yaml \ yamls/Config_rbac_lighthouse_coredns_cluster_role.yaml \
${RBAC_BASE}/lighthouse-coredns/cluster_role_binding.yaml >> ${SERVICE_DISC_RBAC_YAML} yamls/Config_rbac_lighthouse_coredns_cluster_role_binding.yaml >> ${SERVICE_DISC_RBAC_YAML}
echo '{{- end -}}' >> ${SERVICE_DISC_RBAC_YAML} echo '{{- end -}}' >> ${SERVICE_DISC_RBAC_YAML}
# Generate the openshift monitoring rbac yaml for the operator chart # Generate the openshift monitoring rbac yaml for the operator chart
cat ${OPENSHIFT}/rbac/submariner-metrics-reader/role.yaml \ cat yamls/Config_openshift_rbac_submariner_metrics_reader_role.yaml \
${OPENSHIFT}/rbac/submariner-metrics-reader/role_binding.yaml > ${OPENSHIFT_MONITORING_YAML} yamls/Config_openshift_rbac_submariner_metrics_reader_role_binding.yaml > ${OPENSHIFT_MONITORING_YAML}
-38
View File
@@ -1,38 +0,0 @@
//go:build yamls
/*
SPDX-License-Identifier: Apache-2.0
Copyright Contributors to the Submariner project.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Place any runtime dependencies as imports in this file.
// Go modules will be forced to download and install them.
package yamls
import (
_ "github.com/submariner-io/submariner-operator/config/broker/broker-client"
_ "github.com/submariner-io/submariner-operator/config/openshift/rbac/submariner-metrics-reader"
_ "github.com/submariner-io/submariner-operator/config/rbac/submariner-gateway"
_ "github.com/submariner-io/submariner-operator/config/rbac/submariner-globalnet"
_ "github.com/submariner-io/submariner-operator/config/rbac/submariner-operator"
_ "github.com/submariner-io/submariner-operator/config/rbac/submariner-route-agent"
_ "github.com/submariner-io/submariner-operator/config/rbac/lighthouse-agent"
_ "github.com/submariner-io/submariner-operator/config/rbac/lighthouse-coredns"
_ "github.com/submariner-io/submariner-operator/deploy/crds"
_ "github.com/submariner-io/submariner/deploy/crds"
_ "sigs.k8s.io/mcs-api/config/crd"
)