-
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
59 changed files
with
926 additions
and
1,599 deletions.
There are no files selected for viewing
107 changes: 107 additions & 0 deletions
107
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,107 @@ | ||
--- | ||
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.AppID | ||
name: App 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: v2 | ||
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: | ||
app_id: | ||
type: string | ||
app_type: | ||
type: string | ||
appVersion_id: | ||
type: string | ||
values: | ||
format: byte | ||
type: string | ||
required: | ||
- appVersion_id | ||
- app_id | ||
type: object | ||
status: | ||
description: ApplicationReleaseStatus defines the observed state of ApplicationRelease | ||
properties: | ||
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: {} |
86 changes: 86 additions & 0 deletions
86
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,86 @@ | ||
--- | ||
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: v2 | ||
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 | ||
appType: | ||
type: string | ||
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: | ||
state: | ||
description: 'the state of the helm application: draft, submitted, | ||
passed, rejected, suspended, active' | ||
type: string | ||
updateTime: | ||
format: date-time | ||
type: string | ||
required: | ||
- updateTime | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
93 changes: 93 additions & 0 deletions
93
src/test/ks-core/crds/application.kubesphere.io_applicationversions.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,93 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: (unknown) | ||
name: applicationversions.application.kubesphere.io | ||
spec: | ||
group: application.kubesphere.io | ||
names: | ||
kind: ApplicationVersion | ||
listKind: ApplicationVersionList | ||
plural: applicationversions | ||
shortNames: | ||
- appver | ||
singular: applicationversion | ||
scope: Cluster | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.displayName.en | ||
name: application name | ||
type: string | ||
- jsonPath: .status.state | ||
name: State | ||
type: string | ||
- jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
name: v2 | ||
schema: | ||
openAPIV3Schema: | ||
description: ApplicationVersion is the Schema for the applicationversions | ||
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: ApplicationVersionSpec defines the desired state of ApplicationVersion | ||
properties: | ||
appType: | ||
type: string | ||
created: | ||
format: date-time | ||
type: string | ||
description: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
digest: | ||
type: string | ||
displayName: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
home: | ||
type: string | ||
icon: | ||
type: string | ||
sources: | ||
items: | ||
type: string | ||
type: array | ||
version: | ||
type: string | ||
required: | ||
- displayName | ||
- version | ||
type: object | ||
status: | ||
description: ApplicationVersionStatus defines the observed state of ApplicationVersion | ||
properties: | ||
message: | ||
type: string | ||
state: | ||
type: string | ||
user_name: | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
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
Oops, something went wrong.