parent
							
								
									d64197d90b
								
							
						
					
					
						commit
						8dbb07b094
					
				|  | @ -225,10 +225,10 @@ func filterGKVsFromAddToScheme(gvks []schema.GroupVersionKind) []schema.GroupVer | ||||||
| 		{Kind: "Pod", Version: matchAnyValue}, | 		{Kind: "Pod", Version: matchAnyValue}, | ||||||
| 		{Kind: "ConfigMap", Version: matchAnyValue}, | 		{Kind: "ConfigMap", Version: matchAnyValue}, | ||||||
| 		{Kind: "Service", Version: matchAnyValue}, | 		{Kind: "Service", Version: matchAnyValue}, | ||||||
|  | 		{Group: "apps", Kind: "Deployment", Version: matchAnyValue}, | ||||||
| 		// Openshift Resources
 | 		// Openshift Resources
 | ||||||
| 		{Group: "route.openshift.io", Kind: "Route", Version: matchAnyValue}, | 		{Group: "route.openshift.io", Kind: "Route", Version: matchAnyValue}, | ||||||
| 		{Group: "image.openshift.io", Kind: "ImageStream", Version: matchAnyValue}, | 		{Group: "image.openshift.io", Kind: "ImageStream", Version: matchAnyValue}, | ||||||
| 		{Group: "apps.openshift.io", Kind: "DeploymentConfig", Version: matchAnyValue}, |  | ||||||
| 		// Custom Resources
 | 		// Custom Resources
 | ||||||
| 		{Group: "jenkins.io", Kind: "Jenkins", Version: matchAnyValue}, | 		{Group: "jenkins.io", Kind: "Jenkins", Version: matchAnyValue}, | ||||||
| 		{Group: "jenkins.io", Kind: "JenkinsImage", Version: matchAnyValue}, | 		{Group: "jenkins.io", Kind: "JenkinsImage", Version: matchAnyValue}, | ||||||
|  |  | ||||||
|  | @ -88,6 +88,16 @@ rules: | ||||||
|       - get |       - get | ||||||
|       - list |       - list | ||||||
|       - watch |       - watch | ||||||
|  |   - apiGroups: | ||||||
|  |       - "route.openshift.io" | ||||||
|  |     resources: | ||||||
|  |       - routes | ||||||
|  |     verbs: | ||||||
|  |       - get | ||||||
|  |       - list | ||||||
|  |       - watch | ||||||
|  |       - create  | ||||||
|  |       - update | ||||||
|   - apiGroups: |   - apiGroups: | ||||||
|       - "image.openshift.io" |       - "image.openshift.io" | ||||||
|     resources: |     resources: | ||||||
|  |  | ||||||
|  | @ -2,6 +2,8 @@ package apis | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2" | 	"github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2" | ||||||
|  | 	routev1 "github.com/openshift/api/route/v1" | ||||||
|  | 	appsv1 "k8s.io/api/apps/v1" | ||||||
| 
 | 
 | ||||||
| 	"k8s.io/apimachinery/pkg/runtime" | 	"k8s.io/apimachinery/pkg/runtime" | ||||||
| ) | ) | ||||||
|  | @ -17,4 +19,6 @@ func AddToScheme(s *runtime.Scheme) error { | ||||||
| func init() { | func init() { | ||||||
| 	// Register the types with the Scheme so the components can map objects to GroupVersionKinds and back
 | 	// Register the types with the Scheme so the components can map objects to GroupVersionKinds and back
 | ||||||
| 	AddToSchemes = append(AddToSchemes, v1alpha2.SchemeBuilder.AddToScheme) | 	AddToSchemes = append(AddToSchemes, v1alpha2.SchemeBuilder.AddToScheme) | ||||||
|  | 	AddToSchemes = append(AddToSchemes, routev1.Install) | ||||||
|  | 	AddToSchemes = append(AddToSchemes, appsv1.AddToScheme) | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue