image and resources for manual testing
This commit is contained in:
		@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					apiVersion: apiextensions.k8s.io/v1alpha1
 | 
				
			||||||
 | 
					kind: CustomResource
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: noxus.mygroup.example.com
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  group: mygroup.example.com
 | 
				
			||||||
 | 
					  version: v1alpha1
 | 
				
			||||||
 | 
					  names:
 | 
				
			||||||
 | 
					    name: noxus
 | 
				
			||||||
 | 
					    singular: noxu
 | 
				
			||||||
 | 
					    kind: Noxu
 | 
				
			||||||
 | 
					    listKind: NoxuList
 | 
				
			||||||
@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					apiVersion: apiregistration.k8s.io/v1alpha1
 | 
				
			||||||
 | 
					kind: APIService
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: v1alpha1.apiextensions.k8s.io
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  insecureSkipTLSVerify: true
 | 
				
			||||||
 | 
					  group: apiextensions.k8s.io
 | 
				
			||||||
 | 
					  priority: 100
 | 
				
			||||||
 | 
					  service:
 | 
				
			||||||
 | 
					    name: api
 | 
				
			||||||
 | 
					    namespace: kube-apiextensions
 | 
				
			||||||
 | 
					  version: v1alpha1
 | 
				
			||||||
@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					apiVersion: rbac.authorization.k8s.io/v1alpha1
 | 
				
			||||||
 | 
					kind: ClusterRoleBinding
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: apiextensions:system:auth-delegator
 | 
				
			||||||
 | 
					roleRef:
 | 
				
			||||||
 | 
					  apiGroup: rbac.authorization.k8s.io
 | 
				
			||||||
 | 
					  kind: ClusterRole
 | 
				
			||||||
 | 
					  name: system:auth-delegator
 | 
				
			||||||
 | 
					subjects:
 | 
				
			||||||
 | 
					- apiVersion: v1
 | 
				
			||||||
 | 
					  kind: ServiceAccount
 | 
				
			||||||
 | 
					  name: apiserver
 | 
				
			||||||
 | 
					  namespace: kube-apiextensions
 | 
				
			||||||
@@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					apiVersion: rbac.authorization.k8s.io/v1alpha1
 | 
				
			||||||
 | 
					kind: RoleBinding
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: apiextensions-auth-reader
 | 
				
			||||||
 | 
					  namespace: kube-system
 | 
				
			||||||
 | 
					roleRef:
 | 
				
			||||||
 | 
					  apiGroup: rbac.authorization.k8s.io
 | 
				
			||||||
 | 
					  kind: Role
 | 
				
			||||||
 | 
					  name: extension-apiserver-authentication-reader
 | 
				
			||||||
 | 
					subjects:
 | 
				
			||||||
 | 
					- apiVersion: v1
 | 
				
			||||||
 | 
					  kind: ServiceAccount
 | 
				
			||||||
 | 
					  name: apiserver
 | 
				
			||||||
 | 
					  namespace: kube-apiextensions
 | 
				
			||||||
@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: ReplicationController
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: apiextensions-server
 | 
				
			||||||
 | 
					  namespace: kube-apiextensions
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    apiserver: "true"
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  replicas: 1
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    apiserver: "true"
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        apiserver: "true"
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      serviceAccountName: apiserver
 | 
				
			||||||
 | 
					      containers:
 | 
				
			||||||
 | 
					      - name: apiextensions-server
 | 
				
			||||||
 | 
					        image: kube-apiextensions-server:latest
 | 
				
			||||||
 | 
					        imagePullPolicy: Never
 | 
				
			||||||
 | 
					        args:
 | 
				
			||||||
 | 
					        - "--etcd-servers=http://localhost:2379"
 | 
				
			||||||
 | 
					        - "--audit-log-path=-"
 | 
				
			||||||
 | 
					      - name: etcd
 | 
				
			||||||
 | 
					        image: quay.io/coreos/etcd:v3.0.17
 | 
				
			||||||
@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					kind: ServiceAccount
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: apiserver
 | 
				
			||||||
 | 
					  namespace: kube-apiextensions
 | 
				
			||||||
@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: api
 | 
				
			||||||
 | 
					  namespace: kube-apiextensions
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					  - port: 443
 | 
				
			||||||
 | 
					    protocol: TCP
 | 
				
			||||||
 | 
					    targetPort: 443
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    apiserver: "true"
 | 
				
			||||||
@@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					# Copyright 2017 The Kubernetes Authors.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# 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.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					FROM fedora
 | 
				
			||||||
 | 
					ADD kube-apiextensions-server /
 | 
				
			||||||
 | 
					ENTRYPOINT ["/kube-apiextensions-server"]
 | 
				
			||||||
							
								
								
									
										30
									
								
								staging/src/k8s.io/kube-apiextensions-server/hack/build-image.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										30
									
								
								staging/src/k8s.io/kube-apiextensions-server/hack/build-image.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,30 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Copyright 2017 The Kubernetes Authors.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# 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.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../../../../..
 | 
				
			||||||
 | 
					source "${KUBE_ROOT}/hack/lib/util.sh"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Register function to be called on EXIT to remove generated binary.
 | 
				
			||||||
 | 
					function cleanup {
 | 
				
			||||||
 | 
					  rm "${KUBE_ROOT}/vendor/k8s.io/kube-apiextensions-server/artifacts/simple-image/kube-apiextensions-server"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					trap cleanup EXIT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pushd "${KUBE_ROOT}/vendor/k8s.io/kube-apiextensions-server"
 | 
				
			||||||
 | 
					cp -v ../../../../_output/local/bin/linux/amd64/kube-apiextensions-server ./artifacts/simple-image/kube-apiextensions-server
 | 
				
			||||||
 | 
					docker build -t kube-apiextensions-server:latest ./artifacts/simple-image
 | 
				
			||||||
 | 
					popd
 | 
				
			||||||
		Reference in New Issue
	
	Block a user