51
config/crds/devops.kubesphere.io_devopsprojects.yaml
generated
Normal file
51
config/crds/devops.kubesphere.io_devopsprojects.yaml
generated
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
controller-gen.kubebuilder.io/version: (unknown)
|
||||||
|
creationTimestamp: null
|
||||||
|
name: devopsprojects.devops.kubesphere.io
|
||||||
|
spec:
|
||||||
|
group: devops.kubesphere.io
|
||||||
|
names:
|
||||||
|
kind: DevOpsProject
|
||||||
|
listKind: DevOpsProjectList
|
||||||
|
plural: devopsprojects
|
||||||
|
singular: devopsproject
|
||||||
|
scope: Namespaced
|
||||||
|
validation:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description: DevOpsProject is the Schema for the devopsprojects API
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
description: 'APIVersion defines the versioned schema of this representation
|
||||||
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
description: 'Kind is a string value representing the REST resource this
|
||||||
|
object represents. Servers may infer this from the endpoint the client
|
||||||
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
description: DevOpsProjectSpec defines the desired state of DevOpsProject
|
||||||
|
type: object
|
||||||
|
status:
|
||||||
|
description: DevOpsProjectStatus defines the observed state of DevOpsProject
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
version: v1alpha3
|
||||||
|
versions:
|
||||||
|
- name: v1alpha3
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
|
|
||||||
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
controller-gen.kubebuilder.io/version: (unknown)
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
labels:
|
|
||||||
controller-tools.k8s.io: "1.0"
|
|
||||||
name: s2ibinaries.devops.kubesphere.io
|
name: s2ibinaries.devops.kubesphere.io
|
||||||
spec:
|
spec:
|
||||||
additionalPrinterColumns:
|
additionalPrinterColumns:
|
||||||
@@ -22,24 +24,29 @@ spec:
|
|||||||
group: devops.kubesphere.io
|
group: devops.kubesphere.io
|
||||||
names:
|
names:
|
||||||
kind: S2iBinary
|
kind: S2iBinary
|
||||||
|
listKind: S2iBinaryList
|
||||||
plural: s2ibinaries
|
plural: s2ibinaries
|
||||||
|
singular: s2ibinary
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
|
subresources: {}
|
||||||
validation:
|
validation:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
description: S2iBinary is the Schema for the s2ibinaries API
|
||||||
properties:
|
properties:
|
||||||
apiVersion:
|
apiVersion:
|
||||||
description: 'APIVersion defines the versioned schema of this representation
|
description: 'APIVersion defines the versioned schema of this representation
|
||||||
of an object. Servers should convert recognized schemas to the latest
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||||
type: string
|
type: string
|
||||||
kind:
|
kind:
|
||||||
description: 'Kind is a string value representing the REST resource this
|
description: 'Kind is a string value representing the REST resource this
|
||||||
object represents. Servers may infer this from the endpoint the client
|
object represents. Servers may infer this from the endpoint the client
|
||||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||||
type: string
|
type: string
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
spec:
|
spec:
|
||||||
|
description: S2iBinarySpec defines the desired state of S2iBinary
|
||||||
properties:
|
properties:
|
||||||
downloadURL:
|
downloadURL:
|
||||||
description: DownloadURL in KubeSphere
|
description: DownloadURL in KubeSphere
|
||||||
@@ -59,12 +66,18 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
status:
|
status:
|
||||||
|
description: S2iBinaryStatus defines the observed state of S2iBinary
|
||||||
properties:
|
properties:
|
||||||
phase:
|
phase:
|
||||||
description: Phase is status of S2iBinary . Possible value is "Ready","UnableToDownload"
|
description: Phase is status of S2iBinary . Possible value is "Ready","UnableToDownload"
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
type: object
|
||||||
version: v1alpha1
|
version: v1alpha1
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
status:
|
status:
|
||||||
acceptedNames:
|
acceptedNames:
|
||||||
kind: ""
|
kind: ""
|
||||||
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1beta1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: (devel)
|
controller-gen.kubebuilder.io/version: (unknown)
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: s2ibuilders.devops.kubesphere.io
|
name: s2ibuilders.devops.kubesphere.io
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1beta1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: (devel)
|
controller-gen.kubebuilder.io/version: (unknown)
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: s2ibuildertemplates.devops.kubesphere.io
|
name: s2ibuildertemplates.devops.kubesphere.io
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
2
config/crds/devops.kubesphere.io_s2iruns.yaml
generated
2
config/crds/devops.kubesphere.io_s2iruns.yaml
generated
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1beta1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: (devel)
|
controller-gen.kubebuilder.io/version: (unknown)
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: s2iruns.devops.kubesphere.io
|
name: s2iruns.devops.kubesphere.io
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
54
config/rbac/role.yaml
generated
Normal file
54
config/rbac/role.yaml
generated
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: manager-role
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- crd.projectcalico.org
|
||||||
|
resources:
|
||||||
|
- clusterinformations
|
||||||
|
- felixconfigurations
|
||||||
|
- globalfelixconfigs
|
||||||
|
- globalnetworkpolicies
|
||||||
|
- globalnetworksets
|
||||||
|
- hostendpoints
|
||||||
|
- ipamblocks
|
||||||
|
- ippools
|
||||||
|
- networkpolicies
|
||||||
|
- networksets
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- delete
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- patch
|
||||||
|
- update
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- network.kubesphere.io
|
||||||
|
resources:
|
||||||
|
- namespacenetworkpolicies
|
||||||
|
- workspacenetworkpolicies
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- delete
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- patch
|
||||||
|
- update
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- tenant.kubesphere.io
|
||||||
|
resources:
|
||||||
|
- workspaces
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- delete
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- patch
|
||||||
|
- update
|
||||||
|
- watch
|
||||||
@@ -27,13 +27,11 @@ import (
|
|||||||
|
|
||||||
func TestStorageDevOpsProject(t *testing.T) {
|
func TestStorageDevOpsProject(t *testing.T) {
|
||||||
key := types.NamespacedName{
|
key := types.NamespacedName{
|
||||||
Name: "foo",
|
Name: "foo",
|
||||||
Namespace: "default",
|
|
||||||
}
|
}
|
||||||
created := &DevOpsProject{
|
created := &DevOpsProject{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: "foo",
|
Name: "foo",
|
||||||
Namespace: "default",
|
|
||||||
}}
|
}}
|
||||||
g := gomega.NewGomegaWithT(t)
|
g := gomega.NewGomegaWithT(t)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user