-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
788 additions
and
45 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
src/test/ks-core/crds/application.kubesphere.io_applicationclasses.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: (unknown) | ||
name: applicationclasses.application.kubesphere.io | ||
spec: | ||
group: application.kubesphere.io | ||
names: | ||
kind: ApplicationClass | ||
listKind: ApplicationClassList | ||
plural: applicationclasses | ||
shortNames: | ||
- appcls | ||
singular: applicationclass | ||
scope: Cluster | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.installer | ||
name: Installer | ||
type: string | ||
- jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
name: v1alpha2 | ||
schema: | ||
openAPIV3Schema: | ||
description: ApplicationClass is the Schema for the applications 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: ApplicationClassSpec defines the desired state of ApplicationClass | ||
properties: | ||
installer: | ||
description: Specify the installer, e.g. ks-yaml,ks-helm | ||
type: string | ||
parameters: | ||
additionalProperties: | ||
type: string | ||
description: extensible parameters, provided for the installer | ||
type: object | ||
required: | ||
- installer | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: {} |
127 changes: 127 additions & 0 deletions
127
src/test/ks-core/crds/application.kubesphere.io_applicationreleases.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: (unknown) | ||
name: applicationreleases.application.kubesphere.io | ||
spec: | ||
group: application.kubesphere.io | ||
names: | ||
kind: ApplicationRelease | ||
listKind: ApplicationReleaseList | ||
plural: applicationreleases | ||
shortNames: | ||
- apprls | ||
singular: applicationrelease | ||
scope: Cluster | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.displayName.en | ||
name: Release Name | ||
type: string | ||
- jsonPath: .metadata.labels.kubesphere\.io/workspace | ||
name: Workspace | ||
type: string | ||
- jsonPath: .metadata.labels.kubesphere\.io/cluster | ||
name: Cluster | ||
type: string | ||
- jsonPath: .metadata.labels.kubesphere\.io/namespace | ||
name: Namespace | ||
type: string | ||
- jsonPath: .status.state | ||
name: State | ||
type: string | ||
- jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
name: v1alpha2 | ||
schema: | ||
openAPIV3Schema: | ||
description: ApplicationRelease is the Schema for the applicationreleases | ||
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: ApplicationReleaseSpec defines the desired state of ApplicationRelease | ||
properties: | ||
appID: | ||
type: string | ||
appVersionID: | ||
type: string | ||
values: | ||
description: helm release values.yaml or yaml | ||
format: byte | ||
type: string | ||
required: | ||
- appID | ||
- appVersionID | ||
type: object | ||
status: | ||
description: ApplicationReleaseStatus defines the observed state of ApplicationRelease | ||
properties: | ||
deployStatus: | ||
description: deploy status list of history, which will store at most | ||
10 state | ||
items: | ||
properties: | ||
deployTime: | ||
description: deploy time, upgrade time or check status time | ||
format: date-time | ||
type: string | ||
message: | ||
description: A human readable message indicating details about | ||
why the release is in this state. | ||
type: string | ||
state: | ||
description: current state of the release | ||
type: string | ||
required: | ||
- deployTime | ||
- state | ||
type: object | ||
type: array | ||
jobName: | ||
description: JobName for installation and upgrade | ||
type: string | ||
lastDeployed: | ||
description: last deploy time or upgrade time | ||
format: date-time | ||
type: string | ||
lastUpdate: | ||
description: last update time | ||
format: date-time | ||
type: string | ||
message: | ||
description: A human readable message indicating details about why | ||
the release is in this state. | ||
type: string | ||
specHash: | ||
description: current release spec hash This is used to compare whether | ||
the spec has been modified to determine if an upgrade is needed. | ||
type: string | ||
state: | ||
description: current state | ||
type: string | ||
version: | ||
description: current release version | ||
type: integer | ||
required: | ||
- state | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
98 changes: 98 additions & 0 deletions
98
src/test/ks-core/crds/application.kubesphere.io_applications.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: (unknown) | ||
name: applications.application.kubesphere.io | ||
spec: | ||
group: application.kubesphere.io | ||
names: | ||
kind: Application | ||
listKind: ApplicationList | ||
plural: applications | ||
shortNames: | ||
- app | ||
singular: application | ||
scope: Cluster | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.displayName.en | ||
name: application name | ||
type: string | ||
- jsonPath: .metadata.labels.kubesphere\.io/workspace | ||
name: workspace | ||
type: string | ||
- jsonPath: .status.state | ||
name: State | ||
type: string | ||
- jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
name: v1alpha2 | ||
schema: | ||
openAPIV3Schema: | ||
description: Application is the Schema for the applications 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: ApplicationSpec defines the desired state of Application | ||
properties: | ||
appHome: | ||
type: string | ||
attachments: | ||
description: attachments id | ||
items: | ||
type: string | ||
type: array | ||
description: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
displayName: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
icon: | ||
type: string | ||
required: | ||
- displayName | ||
type: object | ||
status: | ||
description: ApplicationStatus defines the observed state of Application | ||
properties: | ||
latestVersion: | ||
description: If this application belong to appStore, latestVersion | ||
is the the latest version of the active application version. otherwise | ||
latestVersion is the latest version of all application version | ||
type: string | ||
state: | ||
description: 'the state of the helm application: draft, submitted, | ||
passed, rejected, suspended, active' | ||
type: string | ||
statusTime: | ||
format: date-time | ||
type: string | ||
updateTime: | ||
format: date-time | ||
type: string | ||
required: | ||
- statusTime | ||
- updateTime | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
Oops, something went wrong.