mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 10:53:34 +00:00
build: add yamlgen to build deployment files
This initial version of yamlgen generates deploy/scc.yaml based on the deployment artifact that is provided by the new api/deploy/ocp package. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
36e099d939
commit
5ea99fdd5b
25
vendor/github.com/openshift/api/security/v1/legacy.go
generated
vendored
Normal file
25
vendor/github.com/openshift/api/security/v1/legacy.go
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
var (
|
||||
legacyGroupVersion = schema.GroupVersion{Group: "", Version: "v1"}
|
||||
legacySchemeBuilder = runtime.NewSchemeBuilder(addLegacyKnownTypes, corev1.AddToScheme)
|
||||
DeprecatedInstallWithoutGroup = legacySchemeBuilder.AddToScheme
|
||||
)
|
||||
|
||||
func addLegacyKnownTypes(scheme *runtime.Scheme) error {
|
||||
types := []runtime.Object{
|
||||
&SecurityContextConstraints{},
|
||||
&SecurityContextConstraintsList{},
|
||||
&PodSecurityPolicySubjectReview{},
|
||||
&PodSecurityPolicySelfSubjectReview{},
|
||||
&PodSecurityPolicyReview{},
|
||||
}
|
||||
scheme.AddKnownTypes(legacyGroupVersion, types...)
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user