mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-16 22:27:34 +00:00
Upgrade api to version 20200715201722
This commit is contained in:
@@ -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.
|
||||
|
||||
7
vendor/github.com/open-cluster-management/api/work/v1/types.go
generated
vendored
7
vendor/github.com/open-cluster-management/api/work/v1/types.go
generated
vendored
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user