diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml deleted file mode 100644 index 3c32ae6e1..000000000 --- a/config/default/kustomization.yaml +++ /dev/null @@ -1,49 +0,0 @@ -# Add namespace to all resources. -namespace: t-system - -# Value of this field is prepended to the -# names of all resources, e.g. a deployment named -# "wordpress" becomes "alices-wordpress". -# Note that it should also match with the prefix (text before '-') of the namespace -# field above. -namePrefix: t- - -# Labels to add to all resources and selectors. -#commonLabels: -# someName: someValue - -# Each entry in this list must resolve to an existing -# resource definition in YAML. These are the resource -# files that kustomize reads, modifies and emits as a -# YAML string, with resources separated by document -# markers ("---"). -resources: -- ../rbac/rbac_role.yaml -- ../rbac/rbac_role_binding.yaml -- ../manager/manager.yaml - # Comment the following 3 lines if you want to disable - # the auth proxy (https://github.com/brancz/kube-rbac-proxy) - # which protects your /metrics endpoint. -#- ../rbac/auth_proxy_service.yaml -#- ../rbac/auth_proxy_role.yaml -#- ../rbac/auth_proxy_role_binding.yaml - -patches: -- manager_image_patch.yaml - # Protect the /metrics endpoint by putting it behind auth. - # Only one of manager_auth_proxy_patch.yaml and - # manager_prometheus_metrics_patch.yaml should be enabled. -- manager_auth_proxy_patch.yaml - # If you want your controller-manager to expose the /metrics - # endpoint w/o any authn/z, uncomment the following line and - # comment manager_auth_proxy_patch.yaml. - # Only one of manager_auth_proxy_patch.yaml and - # manager_prometheus_metrics_patch.yaml should be enabled. -#- manager_prometheus_metrics_patch.yaml - -vars: -- name: WEBHOOK_SECRET_NAME - objref: - kind: Secret - name: webhook-server-secret - apiVersion: v1 diff --git a/config/default/manager_auth_proxy_patch.yaml b/config/default/manager_auth_proxy_patch.yaml deleted file mode 100644 index f0c5ca903..000000000 --- a/config/default/manager_auth_proxy_patch.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# This patch injects a sidecar container which is an HTTP proxy for the controller manager. -# It performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: controller-manager - namespace: system -spec: - template: - spec: - containers: - - name: kube-rbac-proxy - image: quay.io/coreos/kube-rbac-proxy:v0.4.0 - args: - - "--secure-listen-address=0.0.0.0:8443" - - "--upstream=http://127.0.0.1:8080/" - - "--logtostderr=true" - - "--v=10" - ports: - - containerPort: 8443 - name: https - - name: manager - args: - - "--metrics-addr=127.0.0.1:8080" diff --git a/config/default/manager_image_patch.yaml b/config/default/manager_image_patch.yaml deleted file mode 100644 index a81e2d323..000000000 --- a/config/default/manager_image_patch.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: controller-manager - namespace: system -spec: - template: - spec: - containers: - # Change the value of image field below to your controller image URL - - image: kubespheredev/controller-manager:latest - name: manager diff --git a/config/default/manager_prometheus_metrics_patch.yaml b/config/default/manager_prometheus_metrics_patch.yaml deleted file mode 100644 index 96fdcdac9..000000000 --- a/config/default/manager_prometheus_metrics_patch.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# This patch enables Prometheus scraping for the manager pod. -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: controller-manager - namespace: system -spec: - template: - metadata: - annotations: - prometheus.io/scrape: 'true' - spec: - containers: - # Expose the prometheus metrics on default port - - name: manager - ports: - - containerPort: 8080 - name: metrics - protocol: TCP diff --git a/config/default/provisonercapability/aws-ebs.yaml b/config/default/provisonercapability/aws-ebs.yaml deleted file mode 100644 index 96f014ebe..000000000 --- a/config/default/provisonercapability/aws-ebs.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: kubernetes-io-aws-ebs -spec: - pluginInfo: - name: kubernetes.io/aws-ebs - version: "" - features: - topology: false - volume: - create: true - attach: true - clone: false - list: false - stats: false - expandMode: ONLINE - snapshot: - create: false - list: false \ No newline at end of file diff --git a/config/default/provisonercapability/azure-disk.yaml b/config/default/provisonercapability/azure-disk.yaml deleted file mode 100644 index c483602d6..000000000 --- a/config/default/provisonercapability/azure-disk.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: kubernetes-io-azure-disk -spec: - pluginInfo: - name: kubernetes.io/azure-disk - version: "" - features: - topology: false - volume: - create: true - attach: true - clone: false - list: false - stats: false - expandMode: OFFLINE - snapshot: - create: false - list: false \ No newline at end of file diff --git a/config/default/provisonercapability/azure-file.yaml b/config/default/provisonercapability/azure-file.yaml deleted file mode 100644 index b294a3a9c..000000000 --- a/config/default/provisonercapability/azure-file.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: kubernetes-io-azure-file -spec: - pluginInfo: - name: kubernetes.io/azure-file - version: "" - features: - topology: false - volume: - create: true - attach: true - clone: false - list: false - stats: false - expandMode: OFFLINE - snapshot: - create: false - list: false \ No newline at end of file diff --git a/config/default/provisonercapability/cinder.yaml b/config/default/provisonercapability/cinder.yaml deleted file mode 100644 index 8b740bd40..000000000 --- a/config/default/provisonercapability/cinder.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: kubernetes-io-cinder -spec: - pluginInfo: - name: kubernetes.io/cinder - version: "" - features: - topology: false - volume: - create: true - attach: true - clone: false - list: false - stats: false - expandMode: ONLINE - snapshot: - create: false - list: false \ No newline at end of file diff --git a/config/default/provisonercapability/disk-csi-qingcloud-com.yaml b/config/default/provisonercapability/disk-csi-qingcloud-com.yaml deleted file mode 100644 index b9d3130a6..000000000 --- a/config/default/provisonercapability/disk-csi-qingcloud-com.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: disk-csi-qingcloud-com -spec: - pluginInfo: - name: disk.csi.qingcloud.com - version: "" - features: - topology: true - snapshot: - create: true - list: false - volume: - attach: true - clone: true - create: true - expandMode: OFFLINE - list: false - stats: true diff --git a/config/default/provisonercapability/gce-pd.yaml b/config/default/provisonercapability/gce-pd.yaml deleted file mode 100644 index 56f95d941..000000000 --- a/config/default/provisonercapability/gce-pd.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: kubernetes-io-gce-pd -spec: - pluginInfo: - name: kubernetes.io/gce-pd - version: "" - features: - topology: false - volume: - create: true - attach: true - clone: false - list: false - stats: false - expandMode: ONLINE - snapshot: - create: false - list: false \ No newline at end of file diff --git a/config/default/provisonercapability/glusterfs.yaml b/config/default/provisonercapability/glusterfs.yaml deleted file mode 100644 index 588b0fc61..000000000 --- a/config/default/provisonercapability/glusterfs.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: kubernetes-io-glusterfs -spec: - pluginInfo: - name: kubernetes.io/glusterfs - version: "" - features: - topology: false - volume: - create: true - attach: true - clone: false - list: false - stats: false - expandMode: OFFLINE - snapshot: - create: false - list: false \ No newline at end of file diff --git a/config/default/provisonercapability/neonsan-csi-qingstor-com.yaml b/config/default/provisonercapability/neonsan-csi-qingstor-com.yaml deleted file mode 100644 index 75c429364..000000000 --- a/config/default/provisonercapability/neonsan-csi-qingstor-com.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: neonsan-csi-qingstor-com -spec: - pluginInfo: - name: neonsan.csi.qingstor.com - version: "" - features: - topology: false - snapshot: - create: true - list: false - volume: - attach: true - clone: true - create: true - expandMode: OFFLINE - list: false - stats: true diff --git a/config/default/provisonercapability/portworx-volume.yaml b/config/default/provisonercapability/portworx-volume.yaml deleted file mode 100644 index a8341925e..000000000 --- a/config/default/provisonercapability/portworx-volume.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: kubernetes-io-portworx-volume -spec: - pluginInfo: - name: kubernetes.io/portworx-volume - version: "" - features: - topology: false - volume: - create: true - attach: true - clone: false - list: false - stats: false - expandMode: OFFLINE - snapshot: - create: false - list: false \ No newline at end of file diff --git a/config/default/provisonercapability/rbd.yaml b/config/default/provisonercapability/rbd.yaml deleted file mode 100644 index 09550ce5e..000000000 --- a/config/default/provisonercapability/rbd.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: kubernetes-io-rbd -spec: - pluginInfo: - name: kubernetes.io/rbd - version: "" - features: - topology: false - volume: - create: true - attach: true - clone: false - list: false - stats: false - expandMode: ONLINE - snapshot: - create: false - list: false \ No newline at end of file diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml deleted file mode 100644 index e27902b1f..000000000 --- a/config/manager/manager.yaml +++ /dev/null @@ -1,83 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - labels: - control-plane: controller-manager - controller-tools.k8s.io: "1.0" - name: system ---- -apiVersion: v1 -kind: Service -metadata: - name: controller-manager-service - namespace: system - labels: - control-plane: controller-manager - controller-tools.k8s.io: "1.0" -spec: - selector: - control-plane: controller-manager - controller-tools.k8s.io: "1.0" - ports: - - port: 443 ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: controller-manager - namespace: system - labels: - control-plane: controller-manager - controller-tools.k8s.io: "1.0" -spec: - selector: - matchLabels: - control-plane: controller-manager - controller-tools.k8s.io: "1.0" - serviceName: controller-manager-service - template: - metadata: - labels: - control-plane: controller-manager - controller-tools.k8s.io: "1.0" - spec: - containers: - - command: - - ./controller-manager - image: kubespheredev/controller-manager:latest - imagePullPolicy: Always - name: manager - env: - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: SECRET_NAME - value: $(WEBHOOK_SECRET_NAME) - resources: - limits: - cpu: 100m - memory: 30Mi - requests: - cpu: 100m - memory: 20Mi - ports: - - containerPort: 9876 - name: webhook-server - protocol: TCP - volumeMounts: - - mountPath: /tmp/cert - name: cert - readOnly: true - terminationGracePeriodSeconds: 10 - volumes: - - name: cert - secret: - defaultMode: 420 - secretName: webhook-server-secret ---- -apiVersion: v1 -kind: Secret -metadata: - name: webhook-server-secret - namespace: system diff --git a/config/rbac/auth_proxy_role.yaml b/config/rbac/auth_proxy_role.yaml deleted file mode 100644 index 618f5e417..000000000 --- a/config/rbac/auth_proxy_role.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: proxy-role -rules: -- apiGroups: ["authentication.k8s.io"] - resources: - - tokenreviews - verbs: ["create"] -- apiGroups: ["authorization.k8s.io"] - resources: - - subjectaccessreviews - verbs: ["create"] diff --git a/config/rbac/auth_proxy_role_binding.yaml b/config/rbac/auth_proxy_role_binding.yaml deleted file mode 100644 index 48ed1e4b8..000000000 --- a/config/rbac/auth_proxy_role_binding.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: proxy-rolebinding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: proxy-role -subjects: -- kind: ServiceAccount - name: default - namespace: system diff --git a/config/rbac/auth_proxy_service.yaml b/config/rbac/auth_proxy_service.yaml deleted file mode 100644 index 027073f95..000000000 --- a/config/rbac/auth_proxy_service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - annotations: - prometheus.io/port: "8443" - prometheus.io/scheme: https - prometheus.io/scrape: "true" - labels: - control-plane: controller-manager - controller-tools.k8s.io: "1.0" - name: controller-manager-metrics-service - namespace: system -spec: - ports: - - name: https - port: 8443 - targetPort: https - selector: - control-plane: controller-manager - controller-tools.k8s.io: "1.0" diff --git a/config/rbac/rbac_role.yaml b/config/rbac/rbac_role.yaml deleted file mode 100644 index 468ad067d..000000000 --- a/config/rbac/rbac_role.yaml +++ /dev/null @@ -1,171 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: manager-role -rules: -- apiGroups: - - core.kubesphere.io - resources: - - namespaces - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - core.kubesphere.io - resources: - - namespaces/status - verbs: - - get - - update - - patch -- apiGroups: - - core.kubesphere.io - resources: - - namespaces - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - core.kubesphere.io - resources: - - namespaces/status - verbs: - - get - - update - - patch -- apiGroups: - - apps - resources: - - deployments - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - apps - resources: - - deployments/status - verbs: - - get - - update - - patch -- apiGroups: - - devops.kubesphere.io - resources: - - s2ibinaries - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - devops.kubesphere.io - resources: - - s2ibinaries/status - verbs: - - get - - update - - patch -- apiGroups: - - tenant.kubesphere.io - resources: - - workspaces - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - tenant.kubesphere.io - resources: - - workspaces/status - verbs: - - get - - update - - patch -- apiGroups: - - admissionregistration.k8s.io - resources: - - mutatingwebhookconfigurations - - validatingwebhookconfigurations - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - "" - resources: - - secrets - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - "" - resources: - - services - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - "storage.k8s.io" - resources: - - storageclasses - verbs: - - get - - list - - watch -- apiGroups: - - "snapshot.storage.k8s.io" - resources: - - volumesnapshotclasses - verbs: - - get - - list - - watch -- apiGroups: - - "storage.kubesphere.io" - resources: - - storageclasscapabilities - verbs: - - create - - get - - list - - watch - - update - - patch - - delete \ No newline at end of file diff --git a/config/rbac/rbac_role_binding.yaml b/config/rbac/rbac_role_binding.yaml deleted file mode 100644 index c1033e23f..000000000 --- a/config/rbac/rbac_role_binding.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - creationTimestamp: null - name: manager-rolebinding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: manager-role -subjects: -- kind: ServiceAccount - name: default - namespace: system diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml deleted file mode 100644 index f3d4ba63a..000000000 --- a/config/rbac/role.yaml +++ /dev/null @@ -1,54 +0,0 @@ - ---- -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 diff --git a/config/samples/devops_v1alpha1_s2ibinary.yaml b/config/samples/devops_v1alpha1_s2ibinary.yaml deleted file mode 100644 index 773413d1c..000000000 --- a/config/samples/devops_v1alpha1_s2ibinary.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: devops.kubesphere.io/v1alpha1 -kind: S2iBinary -metadata: - labels: - controller-tools.k8s.io: "1.0" - name: s2ibinary-sample diff --git a/config/samples/devops_v1alpha3_devopsproject.yaml b/config/samples/devops_v1alpha3_devopsproject.yaml deleted file mode 100644 index b443b6d2c..000000000 --- a/config/samples/devops_v1alpha3_devopsproject.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: devops.kubesphere.io/v1alpha3 -kind: DevOpsProject -metadata: - labels: - controller-tools.k8s.io: "1.0" - name: devopsproject-sample -spec: - # Add fields here - foo: bar diff --git a/config/samples/devops_v1alpha3_pipeline.yaml b/config/samples/devops_v1alpha3_pipeline.yaml deleted file mode 100644 index b9c9fbba3..000000000 --- a/config/samples/devops_v1alpha3_pipeline.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: devops.kubesphere.io/v1alpha3 -kind: Pipeline -metadata: - labels: - controller-tools.k8s.io: "1.0" - name: pipeline-sample -spec: - # Add fields here - foo: bar diff --git a/config/samples/iam_v1alpha2_globalrole.yaml b/config/samples/iam_v1alpha2_globalrole.yaml deleted file mode 100644 index 268374d06..000000000 --- a/config/samples/iam_v1alpha2_globalrole.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: iam.kubesphere.io/v1alpha2 -kind: GlobalRole -metadata: - labels: - controller-tools.k8s.io: "1.0" - name: global-admin -rules: - - apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' - diff --git a/config/samples/iam_v1alpha2_globalrolebinding.yaml b/config/samples/iam_v1alpha2_globalrolebinding.yaml deleted file mode 100644 index 11550dcdc..000000000 --- a/config/samples/iam_v1alpha2_globalrolebinding.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: iam.kubesphere.io/v1alpha2 -kind: GlobalRoleBinding -metadata: - labels: - controller-tools.k8s.io: "1.0" - name: admin -roleRef: - apiGroup: iam.kubesphere.io/v1alpha2 - kind: GlobalRole - name: global-admin -subjects: - - apiGroup: iam.kubesphere.io/v1alpha2 - kind: User - name: admin diff --git a/config/samples/iam_v1alpha2_group.yaml b/config/samples/iam_v1alpha2_group.yaml deleted file mode 100644 index 3f204665c..000000000 --- a/config/samples/iam_v1alpha2_group.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: iam.kubesphere.io/v1alpha2 -kind: Group -metadata: - name: group2 diff --git a/config/samples/iam_v1alpha2_groupbinding.yaml b/config/samples/iam_v1alpha2_groupbinding.yaml deleted file mode 100644 index 29847a4c3..000000000 --- a/config/samples/iam_v1alpha2_groupbinding.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: iam.kubesphere.io/v1alpha2 -kind: GroupBinding -metadata: - name: groupbinding-sample1 -groupRef: - apiGroup: rbac.authorization.k8s.io - kind: Group - name: groupdemo -users: -- user1 -- user2 - diff --git a/config/samples/iam_v1alpha2_rolebindings.yaml b/config/samples/iam_v1alpha2_rolebindings.yaml deleted file mode 100644 index dc42f835a..000000000 --- a/config/samples/iam_v1alpha2_rolebindings.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - iam.kubesphere.io/group-ref: admin - name: group-group1-admin - namespace: proj2 - -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: admin -subjects: -- apiGroup: rbac.authorization.k8s.io - kind: Group - name: group1 diff --git a/config/samples/iam_v1alpha2_user.yaml b/config/samples/iam_v1alpha2_user.yaml deleted file mode 100644 index 88b72cb55..000000000 --- a/config/samples/iam_v1alpha2_user.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: iam.kubesphere.io/v1alpha2 -kind: User -metadata: - labels: - controller-tools.k8s.io: "1.0" - name: admin -spec: - email: admin@kubesphere.io - password: P@88w0rd diff --git a/config/samples/network_v1alpha1_namespacenetworkpolicy.yaml b/config/samples/network_v1alpha1_namespacenetworkpolicy.yaml deleted file mode 100644 index a09872eab..000000000 --- a/config/samples/network_v1alpha1_namespacenetworkpolicy.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: network.kubesphere.io/v1alpha1 -kind: NamespaceNetworkPolicy -metadata: - labels: - controller-tools.k8s.io: "1.0" - name: namespacenetworkpolicy-sample -spec: - # Add fields here - foo: bar diff --git a/config/samples/servicemesh_v1alpha2_servicepolicy.yaml b/config/samples/servicemesh_v1alpha2_servicepolicy.yaml deleted file mode 100644 index 5cd6267f8..000000000 --- a/config/samples/servicemesh_v1alpha2_servicepolicy.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: servicemesh.kubesphere.io/v1alpha2 -kind: ServicePolicy -metadata: - labels: - controller-tools.k8s.io: "1.0" - name: servicepolicy-sample -spec: - # Add fields here - foo: bar diff --git a/config/samples/servicemesh_v1alpha2_strategy.yaml b/config/samples/servicemesh_v1alpha2_strategy.yaml deleted file mode 100644 index 2ca5280c5..000000000 --- a/config/samples/servicemesh_v1alpha2_strategy.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: servicemesh.kubesphere.io/v1alpha2 -kind: Strategy -metadata: - labels: - controller-tools.k8s.io: "1.0" - name: strategy-sample -spec: - # Add fields here - type: Canary - selector: - matchLabels: - "servicemesh.kubesphere.io/type": "canary" - template: - spec: - service: "details" - principal: "v1" - hosts: - - details - http: - - route: - - destination: - host: "details" - subset: v1 - weight: 60 - - destination: - host: "details" - subset: v2 - weight: 40 diff --git a/config/samples/storage_v1alpha1_provisionercapability.yaml b/config/samples/storage_v1alpha1_provisionercapability.yaml deleted file mode 100644 index f2301967f..000000000 --- a/config/samples/storage_v1alpha1_provisionercapability.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: ProvisionerCapability -metadata: - name: kubernetes-io-no-provisioner -spec: - pluginInfo: - name: kubernetes.io/no-provisioner - version: "" - features: - topology: false - volume: - create: true - attach: true - clone: false - list: false - stats: fasle - expandMode: OFFLINE - snapshot: - create: fasle - list: false diff --git a/config/samples/storage_v1alpha1_storageclasscapability.yaml b/config/samples/storage_v1alpha1_storageclasscapability.yaml deleted file mode 100644 index a41351f06..000000000 --- a/config/samples/storage_v1alpha1_storageclasscapability.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: storage.kubesphere.io/v1alpha1 -kind: StorageClassCapability -metadata: - name: example-sc -spec: - provisioner: "csi.example.sc" - features: - topology: true - volume: - create: true - attach: true - clone: true - list: false - stats: true - expandMode: UNKNOWN - snapshot: - create: true - list: false \ No newline at end of file diff --git a/config/samples/tenant_v1alpha1_workspace.yaml b/config/samples/tenant_v1alpha1_workspace.yaml deleted file mode 100644 index cb67d3bb5..000000000 --- a/config/samples/tenant_v1alpha1_workspace.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: tenant.kubesphere.io/v1alpha1 -kind: Workspace -metadata: - labels: - controller-tools.k8s.io: "1.0" - name: workspace-sample - spec: - manager: admin diff --git a/config/webhook/iam.yaml b/config/webhook/iam.yaml deleted file mode 100644 index 3f72946ec..000000000 --- a/config/webhook/iam.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: ValidatingWebhookConfiguration -metadata: - name: kubesphere-iam-validator -webhooks: - - admissionReviewVersions: - - v1beta1 - clientConfig: - caBundle: - service: - name: ks-controller-manager - namespace: kubesphere-system - path: /validate-email-iam-kubesphere-io-v1alpha2 - failurePolicy: Fail - name: vemail.iam.kubesphere.io - rules: - - apiGroups: - - iam.kubesphere.io - apiVersions: - - v1alpha2 - operations: - - CREATE - - UPDATE - resources: - - users \ No newline at end of file diff --git a/config/webhook/ks-controller-manager.yaml b/config/webhook/ks-controller-manager.yaml deleted file mode 100644 index 5cc157e62..000000000 --- a/config/webhook/ks-controller-manager.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: ks-controller-manager - namespace: kubesphere-system -spec: - ports: - - port: 443 - protocol: TCP - targetPort: 8443 - selector: - app: ks-controller-manager - tier: backend \ No newline at end of file diff --git a/config/webhook/manifests.yaml b/config/webhook/manifests.yaml deleted file mode 100644 index e69de29bb..000000000 diff --git a/config/webhook/network.yaml b/config/webhook/network.yaml deleted file mode 100644 index aeb562f4c..000000000 --- a/config/webhook/network.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: ValidatingWebhookConfiguration -metadata: - creationTimestamp: null - name: kubesphere-nsnp-validate -webhooks: - - clientConfig: - caBundle: - service: - name: ks-controller-manager - namespace: kubesphere-system - path: /validate-network-kubesphere-io-v1alpha1 - failurePolicy: Fail - name: validate.nsnp.kubesphere.io - rules: - - apiGroups: - - network.kubesphere.io - apiVersions: - - v1 - operations: - - CREATE - - UPDATE - resources: - - namespacenetworkpolicies diff --git a/config/webhook/quota.yaml b/config/webhook/quota.yaml deleted file mode 100644 index 51236c126..000000000 --- a/config/webhook/quota.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1 -kind: ValidatingWebhookConfiguration -metadata: - name: resourcesquotas.quota.kubesphere.io -webhooks: - - admissionReviewVersions: - - v1beta1 - clientConfig: - caBundle: - service: - name: ks-controller-manager - namespace: kubesphere-system - path: /validate-quota-kubesphere-io-v1alpha2 - port: 443 - failurePolicy: Ignore - matchPolicy: Exact - name: resourcesquotas.quota.kubesphere.io - namespaceSelector: {} - objectSelector: {} - rules: - - apiGroups: - - '*' - apiVersions: - - '*' - operations: - - CREATE - resources: - - pods - scope: '*' - sideEffects: None \ No newline at end of file