Skip to content

Commit

Permalink
update ks-core helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
ks-ci-bot committed Mar 7, 2024
1 parent b3eccb4 commit 79f068b
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ spec:
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.AppID
name: App Name
type: string
- jsonPath: .metadata.labels.kubesphere\.io/workspace
name: Workspace
name: workspace
type: string
- jsonPath: .metadata.labels.application\.kubesphere\.io/app-id
name: app
type: string
- jsonPath: .metadata.labels.application\.kubesphere\.io/appversion-id
name: appversion
type: string
- jsonPath: .spec.appType
name: appType
type: string
- jsonPath: .metadata.labels.kubesphere\.io/cluster
name: Cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ spec:
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .metadata.labels.application\.kubesphere\.io/repo-name
name: repo
type: string
- jsonPath: .metadata.labels.kubesphere\.io/workspace
name: workspace
type: string
- jsonPath: .spec.appType
name: appType
type: string
- jsonPath: .status.state
name: State
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ spec:
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .metadata.labels.application\.kubesphere\.io/repo-name
name: repo
type: string
- jsonPath: .metadata.labels.kubesphere\.io/workspace
name: workspace
type: string
- jsonPath: .metadata.labels.application\.kubesphere\.io/app-id
name: app
type: string
- jsonPath: .spec.appType
name: appType
type: string
- jsonPath: .status.state
name: State
type: string
Expand Down
2 changes: 0 additions & 2 deletions src/test/ks-core/crds/application.kubesphere.io_repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ spec:
type: object
description:
type: string
global:
type: boolean
syncPeriod:
type: integer
url:
Expand Down
2 changes: 0 additions & 2 deletions src/test/ks-core/crds/kubesphere.io_extensionversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ spec:
additionalProperties:
type: string
type: object
docs:
type: string
externalDependencies:
description: ExternalDependencies
items:
Expand Down
8 changes: 8 additions & 0 deletions src/test/ks-core/scripts/post-delete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@ do
kubectl delete crd $crd 2>/dev/null;
fi
done


EXTENSION_RELATED_RESOURCES='jobs.batch roles.rbac.authorization.k8s.io rolebindings.rbac.authorization.k8s.io clusterroles.rbac.authorization.k8s.io clusterrolebindings.rbac.authorization.k8s.io'

for resource in $EXTENSION_RELATED_RESOURCES;do
echo "kubectl delete $resource -l kubesphere.io/extension-ref --all-namespaces"
kubectl delete $resource -l kubesphere.io/extension-ref --all-namespaces
done
7 changes: 0 additions & 7 deletions src/test/ks-core/templates/globalroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@ rules:
verbs:
- get
- list
- apiGroups:
- license.kubesphere.io
resources:
- licenses
verbs:
- get
- list
- apiGroups:
- cluster.kubesphere.io
resources:
Expand Down
32 changes: 0 additions & 32 deletions src/test/ks-core/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,38 +317,6 @@ webhooks:

---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: license.kubesphere.io
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
caBundle: {{ b64enc $ca.Cert | quote }}
service:
name: ks-controller-manager
namespace: kubesphere-system
path: /license-cluster-checker
port: 443
name: license-cluster-checker.kubesphere.io
failurePolicy: Ignore
matchPolicy: Exact
namespaceSelector: {}
objectSelector: {}
rules:
- apiGroups:
- cluster.kubesphere.io
apiVersions:
- v1alpha1
operations:
- CREATE
resources:
- clusters
scope: '*'
sideEffects: None
timeoutSeconds: 30
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: defaulter.config.kubesphere.io
Expand Down

0 comments on commit 79f068b

Please sign in to comment.