mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 19:10:34 +00:00
Adjust generate-yamls.sh due to pkg/embeddedyamls/yamls.go removal
...from submariner-operator in lieu of using Go embed functionality. The charts project needs to obtain the RBAC and CRD yaml files from the submariner, submariner-operator and mcs-api projects. To achieve this, define a simple Go file that statically references the packages containing the desired embed.go and yaml files. The generate-yamls.sh script uses 'go mod' commands to create the go.mod file and vendor directory, which also downloads the yaml files. Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
This commit is contained in:
committed by
Thomas Pantelis
parent
2d26f4a2e4
commit
75074350ef
@@ -0,0 +1,38 @@
|
||||
//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"
|
||||
)
|
||||
Reference in New Issue
Block a user