Upgrade api to version 20200715201722

This commit is contained in:
Yang Le
2020-07-16 14:13:27 +08:00
parent 1fa05673bd
commit b72f2c2d51
6 changed files with 9 additions and 15 deletions

View File

@@ -21,6 +21,8 @@ spec:
a manifestwork on a hub recording resources deployed in the managed cluster.
When the agent is removed from managed cluster, cluster-admin on managed cluster
can delete appliedmanifestwork to remove resources deployed by the agent.
The name of the appliedmanifestwork must be in the format of {hash of hub's
first kube-apiserver url}-{manifestwork name}
type: object
properties:
apiVersion:
@@ -39,10 +41,6 @@ spec:
description: Spec represents the desired configuration of AppliedManifestWork
type: object
properties:
clusterNamee:
description: ClusterName represents the name of the cluster on hub where
the related manifestwork is placed.
type: string
hubHash:
description: HubHash represents the hash of the first hub kube apiserver
to identify which hub this AppliedManifestWork links to.

View File

@@ -233,6 +233,8 @@ type ManifestWorkList struct {
// deployed in the managed cluster.
// When the agent is removed from managed cluster, cluster-admin on managed cluster
// can delete appliedmanifestwork to remove resources deployed by the agent.
// The name of the appliedmanifestwork must be in the format of
// {hash of hub's first kube-apiserver url}-{manifestwork name}
type AppliedManifestWork struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -255,11 +257,6 @@ type AppliedManifestWorkSpec struct {
// ManifestWorkName represents the name of the related manifestwork on hub.
// +required
ManifestWorkName string `json:"manifestWorkName"`
// ClusterName represents the name of the cluster on hub where the related manifestwork
// is placed.
// +required
ClusterName string `json:"clusterNamee"`
}
// AppliedManifestWorkStatus represents the current status of AppliedManifestWork

View File

@@ -26,7 +26,7 @@ func (AppliedManifestResourceMeta) SwaggerDoc() map[string]string {
}
var map_AppliedManifestWork = map[string]string{
"": "AppliedManifestWork represents an applied manifestwork on managed cluster. It is placed on managed cluster. An AppliedManifestWork links to a manifestwork on a hub recording resources deployed in the managed cluster. When the agent is removed from managed cluster, cluster-admin on managed cluster can delete appliedmanifestwork to remove resources deployed by the agent.",
"": "AppliedManifestWork represents an applied manifestwork on managed cluster. It is placed on managed cluster. An AppliedManifestWork links to a manifestwork on a hub recording resources deployed in the managed cluster. When the agent is removed from managed cluster, cluster-admin on managed cluster can delete appliedmanifestwork to remove resources deployed by the agent. The name of the appliedmanifestwork must be in the format of {hash of hub's first kube-apiserver url}-{manifestwork name}",
"spec": "Spec represents the desired configuration of AppliedManifestWork",
"status": "Status represents the current status of AppliedManifestWork",
}
@@ -49,7 +49,6 @@ var map_AppliedManifestWorkSpec = map[string]string{
"": "AppliedManifestWorkSpec represents the desired configuration of AppliedManifestWork",
"hubHash": "HubHash represents the hash of the first hub kube apiserver to identify which hub this AppliedManifestWork links to.",
"manifestWorkName": "ManifestWorkName represents the name of the related manifestwork on hub.",
"clusterNamee": "ClusterName represents the name of the cluster on hub where the related manifestwork is placed.",
}
func (AppliedManifestWorkSpec) SwaggerDoc() map[string]string {