diff --git a/Makefile b/Makefile index f6510fb..96be19a 100644 --- a/Makefile +++ b/Makefile @@ -14,19 +14,21 @@ generate: controller-gen $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." @hack/generate_client.sh -# find or download controller-gen -# download controller-gen if necessary -controller-gen: -ifeq (, $(shell which controller-gen)) - @{ \ - set -e ;\ - CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\ - cd $$CONTROLLER_GEN_TMP_DIR ;\ - go mod init tmp ;\ - go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.9 ;\ - rm -rf $$CONTROLLER_GEN_TMP_DIR ;\ - } -CONTROLLER_GEN=$(GOBIN)/controller-gen -else -CONTROLLER_GEN=$(shell which controller-gen) -endif +CONTROLLER_GEN = $(shell pwd)/bin/controller-gen-0.7 +controller-gen: ## Download controller-gen locally if necessary. + $(call go-get-tool-with-alias,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.7.0,controller-gen) + +# go-get-tool will 'go get' any package $2 and install it to $1. +PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) +define go-get-tool-with-alias +@[ -f $(1) ] || { \ +set -e ;\ +TMP_DIR=$$(mktemp -d) ;\ +cd $$TMP_DIR ;\ +go mod init tmp ;\ +echo "Downloading $(2)" ;\ +GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\ +rm -rf $$TMP_DIR ;\ +mv $(PROJECT_DIR)/bin/$(3) $(1);\ +} +endef diff --git a/apps/pub/zz_generated.deepcopy.go b/apps/pub/zz_generated.deepcopy.go index be34b3b..4d5e72c 100644 --- a/apps/pub/zz_generated.deepcopy.go +++ b/apps/pub/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apps/v1alpha1/advancedcronjob_types.go b/apps/v1alpha1/advancedcronjob_types.go index b286974..211a629 100644 --- a/apps/v1alpha1/advancedcronjob_types.go +++ b/apps/v1alpha1/advancedcronjob_types.go @@ -71,6 +71,8 @@ type AdvancedCronJobSpec struct { type CronJobTemplate struct { // Specifies the job that will be created when executing a CronJob. // +optional + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless JobTemplate *batchv1beta1.JobTemplateSpec `json:"jobTemplate,omitempty" protobuf:"bytes,1,opt,name=jobTemplate"` // Specifies the broadcastjob that will be created when executing a BroadcastCronJob. diff --git a/apps/v1alpha1/broadcastjob_types.go b/apps/v1alpha1/broadcastjob_types.go index 8025403..daf07ae 100644 --- a/apps/v1alpha1/broadcastjob_types.go +++ b/apps/v1alpha1/broadcastjob_types.go @@ -32,6 +32,8 @@ type BroadcastJobSpec struct { Parallelism *intstr.IntOrString `json:"parallelism,omitempty" protobuf:"varint,1,opt,name=parallelism"` // Template describes the pod that will be created when executing a job. + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,2,opt,name=template"` // CompletionPolicy indicates the completion policy of the job. diff --git a/apps/v1alpha1/cloneset_types.go b/apps/v1alpha1/cloneset_types.go index 46f879a..48e0950 100644 --- a/apps/v1alpha1/cloneset_types.go +++ b/apps/v1alpha1/cloneset_types.go @@ -46,10 +46,14 @@ type CloneSetSpec struct { Selector *metav1.LabelSelector `json:"selector"` // Template describes the pods that will be created. + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless Template v1.PodTemplateSpec `json:"template"` // VolumeClaimTemplates is a list of claims that pods are allowed to reference. // Note that PVC will be deleted when its pod has been deleted. + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"` // ScaleStrategy indicates the ScaleStrategy that will be employed to @@ -80,6 +84,11 @@ type CloneSetScaleStrategy struct { // PodsToDelete is the names of Pod should be deleted. // Note that this list will be truncated for non-existing pod names. PodsToDelete []string `json:"podsToDelete,omitempty"` + // The maximum number of pods that can be unavailable for scaled pods. + // This field can control the changes rate of replicas for CloneSet so as to minimize the impact for users' service. + // The scale will fail if the number of unavailable pods were greater than this MaxUnavailable at scaling up. + // MaxUnavailable works only when scaling up. + MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"` } // CloneSetUpdateStrategy defines strategies for pods update. diff --git a/apps/v1alpha1/daemonset_types.go b/apps/v1alpha1/daemonset_types.go index d849d88..e71db6f 100644 --- a/apps/v1alpha1/daemonset_types.go +++ b/apps/v1alpha1/daemonset_types.go @@ -48,7 +48,7 @@ const ( StandardRollingUpdateType RollingUpdateType = "Standard" // Replace container image without killing the pod. - //InplaceRollingUpdateType RollingUpdateType = "Inplace" + InplaceRollingUpdateType RollingUpdateType = "InPlaceIfPossible" // SurgingRollingUpdateType replaces the old daemons by new ones using rolling update i.e replace them on each node one // after the other, creating the new pod and then killing the old one. @@ -124,6 +124,8 @@ type DaemonSetSpec struct { // that matches the template's node selector (or on every node if no node // selector is specified). // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless Template corev1.PodTemplateSpec `json:"template" protobuf:"bytes,2,opt,name=template"` // An update strategy to replace existing DaemonSet pods with new pods. diff --git a/apps/v1alpha1/ephemeraljob_types.go b/apps/v1alpha1/ephemeraljob_types.go new file mode 100644 index 0000000..0bcd5be --- /dev/null +++ b/apps/v1alpha1/ephemeraljob_types.go @@ -0,0 +1,228 @@ +/* +Copyright 2021 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + v1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! +// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. + +const ( + EphemeralContainerCreateByJob = "apps.kruise.io/ephemeraljob" + EphemeralContainerEnvKey = "KRUISE_EJOB_ID" +) + +// EphemeralJobSpec defines the desired state of EphemeralJob +type EphemeralJobSpec struct { + // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster + // Important: Run "make" to regenerate code after modifying this file + // Selector is a label query over pods that should match the pod labels. + Selector *metav1.LabelSelector `json:"selector"` + + // Replicas indicates a part of the quantity from matched pods by selector. + // Usually it is used for gray scale working. + // if Replicas exceeded the matched number by selector, replicas will not work. + Replicas *int32 `json:"replicas,omitempty"` + + // Parallelism specifies the maximum desired number of pods which matches running ephemeral containers. + // +optional + Parallelism *int32 `json:"parallelism,omitempty" protobuf:"varint,1,opt,name=parallelism"` + + // Template describes the ephemeral container that will be created. + Template EphemeralContainerTemplateSpec `json:"template"` + + // Paused will pause the ephemeral job. + // +optional + Paused bool `json:"paused,omitempty" protobuf:"bytes,4,opt,name=paused"` + + // ActiveDeadlineSeconds specifies the duration in seconds relative to the startTime that the job may be active + // before the system tries to terminate it; value must be positive integer. + // Only works for Always type. + // +optional + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,2,opt,name=activeDeadlineSeconds"` + + // ttlSecondsAfterFinished limits the lifetime of a Job that has finished + // execution (either Complete or Failed). If this field is set, + // ttlSecondsAfterFinished after the eJob finishes, it is eligible to be + // automatically deleted. When the Job is being deleted, its lifecycle + // guarantees (e.g. finalizers) will be honored. + // If this field is unset, default value is 1800 + // If this field is set to zero, + // the Job becomes eligible to be deleted immediately after it finishes. + // +optional + TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty" protobuf:"varint,4,opt,name=ttlSecondsAfterFinished"` +} + +// EphemeralContainerTemplateSpec describes template spec of ephemeral containers +type EphemeralContainerTemplateSpec struct { + + // EphemeralContainers defines ephemeral container list in match pods. + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless + EphemeralContainers []v1.EphemeralContainer `json:"ephemeralContainers"` +} + +// EphemeralJobStatus defines the observed state of EphemeralJob +type EphemeralJobStatus struct { + // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster + // Important: Run "make" to regenerate code after modifying this file + // +optional + // +patchMergeKey=type + // +patchStrategy=merge + Conditions []EphemeralJobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` + + // Represents time when the job was acknowledged by the job controller. + // It is not guaranteed to be set in happens-before order across separate operations. + // It is represented in RFC3339 form and is in UTC. + // +optional + StartTime *metav1.Time `json:"startTime,omitempty" protobuf:"bytes,2,opt,name=startTime"` + + // Represents time when the job was completed. It is not guaranteed to + // be set in happens-before order across separate operations. + // It is represented in RFC3339 form and is in UTC. + // +optional + CompletionTime *metav1.Time `json:"completionTime,omitempty" protobuf:"bytes,3,opt,name=completionTime"` + + // The phase of the job. + // +optional + Phase EphemeralJobPhase `json:"phase" protobuf:"varint,8,opt,name=phase"` + + // The number of total matched pods. + // +optional + Matches int32 `json:"match" protobuf:"varint,4,opt,name=match"` + + // The number of actively running pods. + // +optional + Running int32 `json:"running" protobuf:"varint,4,opt,name=running"` + + // The number of pods which reached phase Succeeded. + // +optional + Succeeded int32 `json:"succeeded" protobuf:"varint,5,opt,name=completed"` + + // The number of waiting pods. + // +optional + Waiting int32 `json:"waiting" protobuf:"varint,4,opt,name=waiting"` + + // The number of pods which reached phase Failed. + // +optional + Failed int32 `json:"failed" protobuf:"varint,6,opt,name=failed"` +} + +// JobCondition describes current state of a job. +type EphemeralJobCondition struct { + // Type of job condition, Complete or Failed. + Type EphemeralJobConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=EphemeralJobConditionType"` + // Status of the condition, one of True, False, Unknown. + Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"` + // Last time the condition was checked. + // +optional + LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` + // Last time the condition transit from one status to another. + // +optional + LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` + // (brief) reason for the condition's last transition. + // +optional + Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` + // Human readable message indicating details about last transition. + // +optional + Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` +} + +// JobConditionType indicates valid conditions type of a job +type EphemeralJobConditionType string + +// These are valid conditions of a job. +const ( + // EJobSucceeded means the ephemeral job has succeeded completed its execution. A succeeded job means pods have been + // successful finished on all tasks on eligible nodes. + EJobSucceeded EphemeralJobConditionType = "JobSucceeded" + + // EJobFailed means there are some ephemeral containers matched by ephemeral job failed. + EJobFailed EphemeralJobConditionType = "JobFailed" + + // EJobError means some ephemeral containers matched by ephemeral job run error. + EJobError EphemeralJobConditionType = "JobError" + + // EJobInitialized means ephemeral job has created and initialized by controller. + EJobInitialized EphemeralJobConditionType = "Initialized" + + // EJobMatchedEmpty means the ephemeral job has not matched the target pods. + EJobMatchedEmpty EphemeralJobConditionType = "MatchedEmpty" +) + +// EphemeralJobPhase indicates the type of EphemeralJobPhase. +type EphemeralJobPhase string + +const ( + // EphemeralJobSucceeded means the job has succeeded. + EphemeralJobSucceeded EphemeralJobPhase = "Succeeded" + + // EphemeralJobFailed means the job has failed. + EphemeralJobFailed EphemeralJobPhase = "Failed" + + // EphemeralJobWaiting means the job is waiting. + EphemeralJobWaiting EphemeralJobPhase = "Waiting" + + // EphemeralJobRunning means the job is running. + EphemeralJobRunning EphemeralJobPhase = "Running" + + // EphemeralJobPause means the ephemeral job paused. + EphemeralJobPause EphemeralJobPhase = "Paused" + + // EphemeralJobError means the ephemeral paused. + EphemeralJobError EphemeralJobPhase = "Error" + + EphemeralJobUnknown EphemeralJobPhase = "Unknown" +) + +// +genclient +// +k8s:openapi-gen=true +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:shortName=ejob +// +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.phase",description="The status of ephemeral job" +// +kubebuilder:printcolumn:name="MATCH",type="integer",JSONPath=".status.match",description="Number of ephemeral container matched by this job" +// +kubebuilder:printcolumn:name="SUCCEED",type="integer",JSONPath=".status.succeeded",description="Number of succeed ephemeral containers" +// +kubebuilder:printcolumn:name="FAILED",type="integer",JSONPath=".status.failed",description="Number of failed ephemeral containers" +// +kubebuilder:printcolumn:name="RUNNING",type="integer",JSONPath=".status.running",description="Number of running ephemeral containers" +// +kubebuilder:printcolumn:name="WAITING",type="integer",JSONPath=".status.waiting",description="Number of waiting ephemeral containers" +// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp",description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC." + +// EphemeralJob is the Schema for the ephemeraljobs API +type EphemeralJob struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec EphemeralJobSpec `json:"spec,omitempty"` + Status EphemeralJobStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// EphemeralJobList contains a list of EphemeralJob +type EphemeralJobList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []EphemeralJob `json:"items"` +} + +func init() { + SchemeBuilder.Register(&EphemeralJob{}, &EphemeralJobList{}) +} diff --git a/apps/v1alpha1/resourcedistribution_types.go b/apps/v1alpha1/resourcedistribution_types.go new file mode 100644 index 0000000..4c997b1 --- /dev/null +++ b/apps/v1alpha1/resourcedistribution_types.go @@ -0,0 +1,186 @@ +/* +Copyright 2021 The Kruise Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" +) + +// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! +// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. + +// ResourceDistributionSpec defines the desired state of ResourceDistribution. +type ResourceDistributionSpec struct { + // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster + // Important: Run "make" to regenerate code after modifying this file + + // Resource must be the complete yaml that users want to distribute. + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:EmbeddedResource + Resource runtime.RawExtension `json:"resource"` + + // Targets defines the namespaces that users want to distribute to. + Targets ResourceDistributionTargets `json:"targets"` +} + +// ResourceDistributionTargets defines the targets of Resource. +// Four options are provided to select target namespaces. +type ResourceDistributionTargets struct { + // Priority: ExcludedNamespaces > AllNamespaces = IncludedNamespaces = NamespaceLabelSelector. + // Firstly, ResourceDistributionTargets will parse AllNamespaces, IncludedNamespaces, and NamespaceLabelSelector, + // then calculate their union, + // At last ExcludedNamespaces will act on the union to remove and exclude the designated namespaces from it. + + // If AllNamespaces is true, Resource will be distributed to the all namespaces + // (except some forbidden namespaces, such as "kube-system" and "kube-public"). + // +optional + AllNamespaces bool `json:"allNamespaces,omitempty"` + + // If ExcludedNamespaces is not empty, Resource will never be distributed to the listed namespaces. + // ExcludedNamespaces has the highest priority. + // +optional + ExcludedNamespaces ResourceDistributionTargetNamespaces `json:"excludedNamespaces,omitempty"` + + // If IncludedNamespaces is not empty, Resource will be distributed to the listed namespaces. + // +optional + IncludedNamespaces ResourceDistributionTargetNamespaces `json:"includedNamespaces,omitempty"` + + // If NamespaceLabelSelector is not empty, Resource will be distributed to the matched namespaces. + // +optional + NamespaceLabelSelector metav1.LabelSelector `json:"namespaceLabelSelector,omitempty"` +} + +type ResourceDistributionTargetNamespaces struct { + /* + // TODO: support regular expression in the future + // +optional + Pattern string `json:"pattern,omitempty"` + */ + + // +optional + List []ResourceDistributionNamespace `json:"list,omitempty"` +} + +// ResourceDistributionNamespace contains a namespace name +type ResourceDistributionNamespace struct { + // Namespace name + Name string `json:"name,omitempty"` +} + +// ResourceDistributionStatus defines the observed state of ResourceDistribution. +// ResourceDistributionStatus is recorded by kruise, users' modification is invalid and meaningless. +type ResourceDistributionStatus struct { + // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster + // Important: Run "make" to regenerate code after modifying this file + + // Desired represents the number of total target namespaces. + Desired int32 `json:"desired,omitempty"` + + // Succeeded represents the number of successful distributions. + Succeeded int32 `json:"succeeded,omitempty"` + + // Failed represents the number of failed distributions. + Failed int32 `json:"failed,omitempty"` + + // ObservedGeneration represents the .metadata.generation that the condition was set based upon. + ObservedGeneration int64 `json:"observedGeneration,omitempty"` + + // Conditions describe the condition when Resource creating, updating and deleting. + Conditions []ResourceDistributionCondition `json:"conditions,omitempty"` +} + +// ResourceDistributionCondition allows a row to be marked with additional information. +type ResourceDistributionCondition struct { + // Type of ResourceDistributionCondition. + Type ResourceDistributionConditionType `json:"type"` + + // Status of the condition, one of True, False, Unknown. + Status ResourceDistributionConditionStatus `json:"status"` + + // LastTransitionTime is the last time the condition transitioned from one status to another. + LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + + // Reason describe human readable message indicating details about last transition. + Reason string `json:"reason,omitempty"` + + // FailedNamespaces describe all failed namespaces when Status is False + FailedNamespaces []string `json:"failedNamespace,omitempty"` +} + +type ResourceDistributionConditionType string + +// These are valid conditions of a ResourceDistribution. +const ( + // ResourceDistributionConflictOccurred means there are conflict with existing resources when reconciling. + ResourceDistributionConflictOccurred ResourceDistributionConditionType = "ConflictOccurred" + + // ResourceDistributionNamespaceNotExists means some target namespaces not exist. + ResourceDistributionNamespaceNotExists ResourceDistributionConditionType = "NamespaceNotExists" + + // ResourceDistributionGetResourceFailed means some get operations about Resource are failed. + ResourceDistributionGetResourceFailed ResourceDistributionConditionType = "GetResourceFailed" + + // ResourceDistributionCreateResourceFailed means some create operations about Resource are failed. + ResourceDistributionCreateResourceFailed ResourceDistributionConditionType = "CreateResourceFailed" + + // ResourceDistributionUpdateResourceFailed means some update operations about Resource are failed. + ResourceDistributionUpdateResourceFailed ResourceDistributionConditionType = "UpdateResourceFailed" + + // ResourceDistributionDeleteResourceFailed means some delete operations about Resource are failed. + ResourceDistributionDeleteResourceFailed ResourceDistributionConditionType = "DeleteResourceFailed" +) + +type ResourceDistributionConditionStatus string + +// These are valid condition statuses. +const ( + // ResourceDistributionConditionTrue means a resource is in the condition. + ResourceDistributionConditionTrue ResourceDistributionConditionStatus = "True" + + // ResourceDistributionConditionFalse means a resource is not in the condition. + ResourceDistributionConditionFalse ResourceDistributionConditionStatus = "False" + + // ResourceDistributionConditionUnknown means kubernetes can't decide if a resource is in the condition or not. + ResourceDistributionConditionUnknown ResourceDistributionConditionStatus = "Unknown" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:openapi-gen=true +//+kubebuilder:object:root=true +//+kubebuilder:subresource:status +//+kubebuilder:resource:scope=Cluster + +// ResourceDistribution is the Schema for the resourcedistributions API. +type ResourceDistribution struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec ResourceDistributionSpec `json:"spec,omitempty"` + Status ResourceDistributionStatus `json:"status,omitempty"` +} + +//+kubebuilder:object:root=true + +// ResourceDistributionList contains a list of ResourceDistribution. +type ResourceDistributionList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ResourceDistribution `json:"items"` +} + +func init() { + SchemeBuilder.Register(&ResourceDistribution{}, &ResourceDistributionList{}) +} diff --git a/apps/v1alpha1/sidecarset_types.go b/apps/v1alpha1/sidecarset_types.go index 360f423..3d8267e 100644 --- a/apps/v1alpha1/sidecarset_types.go +++ b/apps/v1alpha1/sidecarset_types.go @@ -40,6 +40,8 @@ type SidecarSetSpec struct { Containers []SidecarContainer `json:"containers,omitempty"` // List of volumes that can be mounted by sidecar containers + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless Volumes []corev1.Volume `json:"volumes,omitempty"` // The sidecarset updateStrategy to use to replace existing pods with new ones. @@ -54,6 +56,8 @@ type SidecarSetSpec struct { // SidecarContainer defines the container of Sidecar type SidecarContainer struct { + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless corev1.Container `json:",inline"` // The rules that injected SidecarContainer into Pod.spec.containers, diff --git a/apps/v1alpha1/statefulset_types.go b/apps/v1alpha1/statefulset_types.go index a8cb8e2..f338b3a 100644 --- a/apps/v1alpha1/statefulset_types.go +++ b/apps/v1alpha1/statefulset_types.go @@ -128,6 +128,8 @@ type StatefulSetSpec struct { // insufficient replicas are detected. Each pod stamped out by the StatefulSet // will fulfill this Template, but have a unique identity from the rest // of the StatefulSet. + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless Template v1.PodTemplateSpec `json:"template"` // volumeClaimTemplates is a list of claims that pods are allowed to reference. @@ -138,6 +140,8 @@ type StatefulSetSpec struct { // any volumes in the template, with the same name. // TODO: Define the behavior if a claim already exists with the same name. // +optional + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"` // serviceName is the name of the service that governs this StatefulSet. @@ -239,6 +243,8 @@ const ( // +kubebuilder:printcolumn:name="UPDATED",type="integer",JSONPath=".status.updatedReplicas",description="The number of pods updated." // +kubebuilder:printcolumn:name="READY",type="integer",JSONPath=".status.readyReplicas",description="The number of pods ready." // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp",description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC." +// +kubebuilder:printcolumn:name="CONTAINERS",type="string",priority=1,JSONPath=".spec.template.spec.containers[*].name",description="The containers of currently advanced statefulset." +// +kubebuilder:printcolumn:name="IMAGES",type="string",priority=1,JSONPath=".spec.template.spec.containers[*].image",description="The images of currently advanced statefulset." // StatefulSet is the Schema for the statefulsets API type StatefulSet struct { diff --git a/apps/v1alpha1/uniteddeployment_types.go b/apps/v1alpha1/uniteddeployment_types.go index 164a4c2..1412084 100644 --- a/apps/v1alpha1/uniteddeployment_types.go +++ b/apps/v1alpha1/uniteddeployment_types.go @@ -98,29 +98,38 @@ type SubsetTemplate struct { // StatefulSetTemplateSpec defines the subset template of StatefulSet. type StatefulSetTemplateSpec struct { - // +kubebuilder:validation:XPreserveUnknownFields + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless metav1.ObjectMeta `json:"metadata,omitempty"` - Spec appsv1.StatefulSetSpec `json:"spec"` + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless + Spec appsv1.StatefulSetSpec `json:"spec"` } // AdvancedStatefulSetTemplateSpec defines the subset template of AdvancedStatefulSet. type AdvancedStatefulSetTemplateSpec struct { - // +kubebuilder:validation:XPreserveUnknownFields + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless metav1.ObjectMeta `json:"metadata,omitempty"` Spec StatefulSetSpec `json:"spec"` } // CloneSetTemplateSpec defines the subset template of CloneSet. type CloneSetTemplateSpec struct { - // +kubebuilder:validation:XPreserveUnknownFields + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless metav1.ObjectMeta `json:"metadata,omitempty"` Spec CloneSetSpec `json:"spec"` } // DeploymentTemplateSpec defines the subset template of Deployment. type DeploymentTemplateSpec struct { + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless metav1.ObjectMeta `json:"metadata,omitempty"` - Spec appsv1.DeploymentSpec `json:"spec"` + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless + Spec appsv1.DeploymentSpec `json:"spec"` } // UnitedDeploymentUpdateStrategy defines the update performance diff --git a/apps/v1alpha1/workloadspread_types.go b/apps/v1alpha1/workloadspread_types.go index 7e40e8a..176ae67 100644 --- a/apps/v1alpha1/workloadspread_types.go +++ b/apps/v1alpha1/workloadspread_types.go @@ -110,6 +110,8 @@ type WorkloadSpreadSubset struct { // Patch indicates patching podTemplate to the Pod. // +optional + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless Patch runtime.RawExtension `json:"patch,omitempty"` } @@ -164,14 +166,14 @@ type WorkloadSpreadSubsetStatus struct { // Name should be unique between all of the subsets under one WorkloadSpread. Name string `json:"name"` - // Replicas is the most recently observed number of replicas for subset. + // Replicas is the most recently observed number of active replicas for subset. Replicas int32 `json:"replicas"` // Conditions is an array of current observed subset conditions. // +optional Conditions []WorkloadSpreadSubsetCondition `json:"conditions,omitempty"` - // MissingReplicas is the number of replicas belong to this subset not be found. + // MissingReplicas is the number of active replicas belong to this subset not be found. // MissingReplicas > 0 indicates the subset is still missing MissingReplicas pods to create // MissingReplicas = 0 indicates the subset already has enough pods, there is no need to create // MissingReplicas = -1 indicates the subset's MaxReplicas not set, then there is no limit for pods number diff --git a/apps/v1alpha1/zz_generated.deepcopy.go b/apps/v1alpha1/zz_generated.deepcopy.go index ccfb15d..dcf1a20 100644 --- a/apps/v1alpha1/zz_generated.deepcopy.go +++ b/apps/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -398,6 +398,11 @@ func (in *CloneSetScaleStrategy) DeepCopyInto(out *CloneSetScaleStrategy) { *out = make([]string, len(*in)) copy(*out, *in) } + if in.MaxUnavailable != nil { + in, out := &in.MaxUnavailable, &out.MaxUnavailable + *out = new(intstr.IntOrString) + **out = **in + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloneSetScaleStrategy. @@ -985,6 +990,175 @@ func (in *DeploymentTemplateSpec) DeepCopy() *DeploymentTemplateSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EphemeralContainerTemplateSpec) DeepCopyInto(out *EphemeralContainerTemplateSpec) { + *out = *in + if in.EphemeralContainers != nil { + in, out := &in.EphemeralContainers, &out.EphemeralContainers + *out = make([]v1.EphemeralContainer, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralContainerTemplateSpec. +func (in *EphemeralContainerTemplateSpec) DeepCopy() *EphemeralContainerTemplateSpec { + if in == nil { + return nil + } + out := new(EphemeralContainerTemplateSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EphemeralJob) DeepCopyInto(out *EphemeralJob) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralJob. +func (in *EphemeralJob) DeepCopy() *EphemeralJob { + if in == nil { + return nil + } + out := new(EphemeralJob) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EphemeralJob) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EphemeralJobCondition) DeepCopyInto(out *EphemeralJobCondition) { + *out = *in + in.LastProbeTime.DeepCopyInto(&out.LastProbeTime) + in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralJobCondition. +func (in *EphemeralJobCondition) DeepCopy() *EphemeralJobCondition { + if in == nil { + return nil + } + out := new(EphemeralJobCondition) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EphemeralJobList) DeepCopyInto(out *EphemeralJobList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]EphemeralJob, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralJobList. +func (in *EphemeralJobList) DeepCopy() *EphemeralJobList { + if in == nil { + return nil + } + out := new(EphemeralJobList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EphemeralJobList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EphemeralJobSpec) DeepCopyInto(out *EphemeralJobSpec) { + *out = *in + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(metav1.LabelSelector) + (*in).DeepCopyInto(*out) + } + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } + if in.Parallelism != nil { + in, out := &in.Parallelism, &out.Parallelism + *out = new(int32) + **out = **in + } + in.Template.DeepCopyInto(&out.Template) + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } + if in.TTLSecondsAfterFinished != nil { + in, out := &in.TTLSecondsAfterFinished, &out.TTLSecondsAfterFinished + *out = new(int32) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralJobSpec. +func (in *EphemeralJobSpec) DeepCopy() *EphemeralJobSpec { + if in == nil { + return nil + } + out := new(EphemeralJobSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EphemeralJobStatus) DeepCopyInto(out *EphemeralJobStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]EphemeralJobCondition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.StartTime != nil { + in, out := &in.StartTime, &out.StartTime + *out = (*in).DeepCopy() + } + if in.CompletionTime != nil { + in, out := &in.CompletionTime, &out.CompletionTime + *out = (*in).DeepCopy() + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralJobStatus. +func (in *EphemeralJobStatus) DeepCopy() *EphemeralJobStatus { + if in == nil { + return nil + } + out := new(EphemeralJobStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FailurePolicy) DeepCopyInto(out *FailurePolicy) { *out = *in @@ -1488,6 +1662,178 @@ func (in *ReferenceObject) DeepCopy() *ReferenceObject { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceDistribution) DeepCopyInto(out *ResourceDistribution) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDistribution. +func (in *ResourceDistribution) DeepCopy() *ResourceDistribution { + if in == nil { + return nil + } + out := new(ResourceDistribution) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ResourceDistribution) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceDistributionCondition) DeepCopyInto(out *ResourceDistributionCondition) { + *out = *in + in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) + if in.FailedNamespaces != nil { + in, out := &in.FailedNamespaces, &out.FailedNamespaces + *out = make([]string, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDistributionCondition. +func (in *ResourceDistributionCondition) DeepCopy() *ResourceDistributionCondition { + if in == nil { + return nil + } + out := new(ResourceDistributionCondition) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceDistributionList) DeepCopyInto(out *ResourceDistributionList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ResourceDistribution, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDistributionList. +func (in *ResourceDistributionList) DeepCopy() *ResourceDistributionList { + if in == nil { + return nil + } + out := new(ResourceDistributionList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ResourceDistributionList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceDistributionNamespace) DeepCopyInto(out *ResourceDistributionNamespace) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDistributionNamespace. +func (in *ResourceDistributionNamespace) DeepCopy() *ResourceDistributionNamespace { + if in == nil { + return nil + } + out := new(ResourceDistributionNamespace) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceDistributionSpec) DeepCopyInto(out *ResourceDistributionSpec) { + *out = *in + in.Resource.DeepCopyInto(&out.Resource) + in.Targets.DeepCopyInto(&out.Targets) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDistributionSpec. +func (in *ResourceDistributionSpec) DeepCopy() *ResourceDistributionSpec { + if in == nil { + return nil + } + out := new(ResourceDistributionSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceDistributionStatus) DeepCopyInto(out *ResourceDistributionStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ResourceDistributionCondition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDistributionStatus. +func (in *ResourceDistributionStatus) DeepCopy() *ResourceDistributionStatus { + if in == nil { + return nil + } + out := new(ResourceDistributionStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceDistributionTargetNamespaces) DeepCopyInto(out *ResourceDistributionTargetNamespaces) { + *out = *in + if in.List != nil { + in, out := &in.List, &out.List + *out = make([]ResourceDistributionNamespace, len(*in)) + copy(*out, *in) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDistributionTargetNamespaces. +func (in *ResourceDistributionTargetNamespaces) DeepCopy() *ResourceDistributionTargetNamespaces { + if in == nil { + return nil + } + out := new(ResourceDistributionTargetNamespaces) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceDistributionTargets) DeepCopyInto(out *ResourceDistributionTargets) { + *out = *in + in.ExcludedNamespaces.DeepCopyInto(&out.ExcludedNamespaces) + in.IncludedNamespaces.DeepCopyInto(&out.IncludedNamespaces) + in.NamespaceLabelSelector.DeepCopyInto(&out.NamespaceLabelSelector) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDistributionTargets. +func (in *ResourceDistributionTargets) DeepCopy() *ResourceDistributionTargets { + if in == nil { + return nil + } + out := new(ResourceDistributionTargets) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RollingUpdateDaemonSet) DeepCopyInto(out *RollingUpdateDaemonSet) { *out = *in diff --git a/apps/v1beta1/statefulset_types.go b/apps/v1beta1/statefulset_types.go index 09aeedd..177efbd 100644 --- a/apps/v1beta1/statefulset_types.go +++ b/apps/v1beta1/statefulset_types.go @@ -128,6 +128,8 @@ type StatefulSetSpec struct { // insufficient replicas are detected. Each pod stamped out by the StatefulSet // will fulfill this Template, but have a unique identity from the rest // of the StatefulSet. + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless Template v1.PodTemplateSpec `json:"template"` // volumeClaimTemplates is a list of claims that pods are allowed to reference. @@ -138,6 +140,8 @@ type StatefulSetSpec struct { // any volumes in the template, with the same name. // TODO: Define the behavior if a claim already exists with the same name. // +optional + // +kubebuilder:pruning:PreserveUnknownFields + // +kubebuilder:validation:Schemaless VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"` // serviceName is the name of the service that governs this StatefulSet. diff --git a/apps/v1beta1/zz_generated.deepcopy.go b/apps/v1beta1/zz_generated.deepcopy.go index 60bacbc..f1de0a5 100644 --- a/apps/v1beta1/zz_generated.deepcopy.go +++ b/apps/v1beta1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/bin/controller-gen-0.7 b/bin/controller-gen-0.7 new file mode 100755 index 0000000..533d440 Binary files /dev/null and b/bin/controller-gen-0.7 differ diff --git a/client/clientset/versioned/clientset.go b/client/clientset/versioned/clientset.go index eb13130..b636fda 100644 --- a/client/clientset/versioned/clientset.go +++ b/client/clientset/versioned/clientset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/doc.go b/client/clientset/versioned/doc.go index 2d22c30..e463d21 100644 --- a/client/clientset/versioned/doc.go +++ b/client/clientset/versioned/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/fake/clientset_generated.go b/client/clientset/versioned/fake/clientset_generated.go index 1e37f8e..e276163 100644 --- a/client/clientset/versioned/fake/clientset_generated.go +++ b/client/clientset/versioned/fake/clientset_generated.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/fake/doc.go b/client/clientset/versioned/fake/doc.go index 5207d6c..842102a 100644 --- a/client/clientset/versioned/fake/doc.go +++ b/client/clientset/versioned/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/fake/register.go b/client/clientset/versioned/fake/register.go index aad4ac2..8a3eb3b 100644 --- a/client/clientset/versioned/fake/register.go +++ b/client/clientset/versioned/fake/register.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ import ( var scheme = runtime.NewScheme() var codecs = serializer.NewCodecFactory(scheme) -var parameterCodec = runtime.NewParameterCodec(scheme) + var localSchemeBuilder = runtime.SchemeBuilder{ appsv1alpha1.AddToScheme, appsv1beta1.AddToScheme, diff --git a/client/clientset/versioned/scheme/doc.go b/client/clientset/versioned/scheme/doc.go index 00c272e..d51331a 100644 --- a/client/clientset/versioned/scheme/doc.go +++ b/client/clientset/versioned/scheme/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/scheme/register.go b/client/clientset/versioned/scheme/register.go index 9b77404..4624819 100644 --- a/client/clientset/versioned/scheme/register.go +++ b/client/clientset/versioned/scheme/register.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/advancedcronjob.go b/client/clientset/versioned/typed/apps/v1alpha1/advancedcronjob.go index 8996e71..6b4f785 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/advancedcronjob.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/advancedcronjob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/apps_client.go b/client/clientset/versioned/typed/apps/v1alpha1/apps_client.go index d83d678..db14657 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/apps_client.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/apps_client.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -31,8 +31,10 @@ type AppsV1alpha1Interface interface { CloneSetsGetter ContainerRecreateRequestsGetter DaemonSetsGetter + EphemeralJobsGetter ImagePullJobsGetter NodeImagesGetter + ResourceDistributionsGetter SidecarSetsGetter StatefulSetsGetter UnitedDeploymentsGetter @@ -64,6 +66,10 @@ func (c *AppsV1alpha1Client) DaemonSets(namespace string) DaemonSetInterface { return newDaemonSets(c, namespace) } +func (c *AppsV1alpha1Client) EphemeralJobs(namespace string) EphemeralJobInterface { + return newEphemeralJobs(c, namespace) +} + func (c *AppsV1alpha1Client) ImagePullJobs(namespace string) ImagePullJobInterface { return newImagePullJobs(c, namespace) } @@ -72,6 +78,10 @@ func (c *AppsV1alpha1Client) NodeImages() NodeImageInterface { return newNodeImages(c) } +func (c *AppsV1alpha1Client) ResourceDistributions() ResourceDistributionInterface { + return newResourceDistributions(c) +} + func (c *AppsV1alpha1Client) SidecarSets() SidecarSetInterface { return newSidecarSets(c) } diff --git a/client/clientset/versioned/typed/apps/v1alpha1/broadcastjob.go b/client/clientset/versioned/typed/apps/v1alpha1/broadcastjob.go index ade199e..4545b81 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/broadcastjob.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/broadcastjob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/cloneset.go b/client/clientset/versioned/typed/apps/v1alpha1/cloneset.go index 1af7466..7047bd4 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/cloneset.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/cloneset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/containerrecreaterequest.go b/client/clientset/versioned/typed/apps/v1alpha1/containerrecreaterequest.go index 193191b..93f18e2 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/containerrecreaterequest.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/containerrecreaterequest.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/daemonset.go b/client/clientset/versioned/typed/apps/v1alpha1/daemonset.go index 3a34c66..260f479 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/daemonset.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/daemonset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/doc.go b/client/clientset/versioned/typed/apps/v1alpha1/doc.go index 49d287d..bcaecfa 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/doc.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/ephemeraljob.go b/client/clientset/versioned/typed/apps/v1alpha1/ephemeraljob.go new file mode 100644 index 0000000..1f0de27 --- /dev/null +++ b/client/clientset/versioned/typed/apps/v1alpha1/ephemeraljob.go @@ -0,0 +1,195 @@ +/* +Copyright 2021 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" + scheme "github.com/openkruise/kruise-api/client/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// EphemeralJobsGetter has a method to return a EphemeralJobInterface. +// A group's client should implement this interface. +type EphemeralJobsGetter interface { + EphemeralJobs(namespace string) EphemeralJobInterface +} + +// EphemeralJobInterface has methods to work with EphemeralJob resources. +type EphemeralJobInterface interface { + Create(ctx context.Context, ephemeralJob *v1alpha1.EphemeralJob, opts v1.CreateOptions) (*v1alpha1.EphemeralJob, error) + Update(ctx context.Context, ephemeralJob *v1alpha1.EphemeralJob, opts v1.UpdateOptions) (*v1alpha1.EphemeralJob, error) + UpdateStatus(ctx context.Context, ephemeralJob *v1alpha1.EphemeralJob, opts v1.UpdateOptions) (*v1alpha1.EphemeralJob, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.EphemeralJob, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.EphemeralJobList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EphemeralJob, err error) + EphemeralJobExpansion +} + +// ephemeralJobs implements EphemeralJobInterface +type ephemeralJobs struct { + client rest.Interface + ns string +} + +// newEphemeralJobs returns a EphemeralJobs +func newEphemeralJobs(c *AppsV1alpha1Client, namespace string) *ephemeralJobs { + return &ephemeralJobs{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the ephemeralJob, and returns the corresponding ephemeralJob object, and an error if there is any. +func (c *ephemeralJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EphemeralJob, err error) { + result = &v1alpha1.EphemeralJob{} + err = c.client.Get(). + Namespace(c.ns). + Resource("ephemeraljobs"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of EphemeralJobs that match those selectors. +func (c *ephemeralJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EphemeralJobList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.EphemeralJobList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("ephemeraljobs"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested ephemeralJobs. +func (c *ephemeralJobs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("ephemeraljobs"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a ephemeralJob and creates it. Returns the server's representation of the ephemeralJob, and an error, if there is any. +func (c *ephemeralJobs) Create(ctx context.Context, ephemeralJob *v1alpha1.EphemeralJob, opts v1.CreateOptions) (result *v1alpha1.EphemeralJob, err error) { + result = &v1alpha1.EphemeralJob{} + err = c.client.Post(). + Namespace(c.ns). + Resource("ephemeraljobs"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(ephemeralJob). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a ephemeralJob and updates it. Returns the server's representation of the ephemeralJob, and an error, if there is any. +func (c *ephemeralJobs) Update(ctx context.Context, ephemeralJob *v1alpha1.EphemeralJob, opts v1.UpdateOptions) (result *v1alpha1.EphemeralJob, err error) { + result = &v1alpha1.EphemeralJob{} + err = c.client.Put(). + Namespace(c.ns). + Resource("ephemeraljobs"). + Name(ephemeralJob.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(ephemeralJob). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *ephemeralJobs) UpdateStatus(ctx context.Context, ephemeralJob *v1alpha1.EphemeralJob, opts v1.UpdateOptions) (result *v1alpha1.EphemeralJob, err error) { + result = &v1alpha1.EphemeralJob{} + err = c.client.Put(). + Namespace(c.ns). + Resource("ephemeraljobs"). + Name(ephemeralJob.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(ephemeralJob). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the ephemeralJob and deletes it. Returns an error if one occurs. +func (c *ephemeralJobs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("ephemeraljobs"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *ephemeralJobs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("ephemeraljobs"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched ephemeralJob. +func (c *ephemeralJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EphemeralJob, err error) { + result = &v1alpha1.EphemeralJob{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("ephemeraljobs"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/doc.go index a02ea57..41831a0 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/doc.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_advancedcronjob.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_advancedcronjob.go index eb20df6..bf30e61 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_advancedcronjob.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_advancedcronjob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_apps_client.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_apps_client.go index 2a80db6..01c03b0 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_apps_client.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_apps_client.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -48,6 +48,10 @@ func (c *FakeAppsV1alpha1) DaemonSets(namespace string) v1alpha1.DaemonSetInterf return &FakeDaemonSets{c, namespace} } +func (c *FakeAppsV1alpha1) EphemeralJobs(namespace string) v1alpha1.EphemeralJobInterface { + return &FakeEphemeralJobs{c, namespace} +} + func (c *FakeAppsV1alpha1) ImagePullJobs(namespace string) v1alpha1.ImagePullJobInterface { return &FakeImagePullJobs{c, namespace} } @@ -56,6 +60,10 @@ func (c *FakeAppsV1alpha1) NodeImages() v1alpha1.NodeImageInterface { return &FakeNodeImages{c} } +func (c *FakeAppsV1alpha1) ResourceDistributions() v1alpha1.ResourceDistributionInterface { + return &FakeResourceDistributions{c} +} + func (c *FakeAppsV1alpha1) SidecarSets() v1alpha1.SidecarSetInterface { return &FakeSidecarSets{c} } diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_broadcastjob.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_broadcastjob.go index b02f2f6..e47a6ad 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_broadcastjob.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_broadcastjob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_cloneset.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_cloneset.go index 65c72bc..f2576df 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_cloneset.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_cloneset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_containerrecreaterequest.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_containerrecreaterequest.go index 3fb0f7f..5bc6f01 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_containerrecreaterequest.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_containerrecreaterequest.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_daemonset.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_daemonset.go index dea11e8..d93e979 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_daemonset.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_daemonset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_ephemeraljob.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_ephemeraljob.go new file mode 100644 index 0000000..faf0560 --- /dev/null +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_ephemeraljob.go @@ -0,0 +1,142 @@ +/* +Copyright 2021 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + "context" + + v1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + labels "k8s.io/apimachinery/pkg/labels" + schema "k8s.io/apimachinery/pkg/runtime/schema" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + testing "k8s.io/client-go/testing" +) + +// FakeEphemeralJobs implements EphemeralJobInterface +type FakeEphemeralJobs struct { + Fake *FakeAppsV1alpha1 + ns string +} + +var ephemeraljobsResource = schema.GroupVersionResource{Group: "apps.kruise.io", Version: "v1alpha1", Resource: "ephemeraljobs"} + +var ephemeraljobsKind = schema.GroupVersionKind{Group: "apps.kruise.io", Version: "v1alpha1", Kind: "EphemeralJob"} + +// Get takes name of the ephemeralJob, and returns the corresponding ephemeralJob object, and an error if there is any. +func (c *FakeEphemeralJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EphemeralJob, err error) { + obj, err := c.Fake. + Invokes(testing.NewGetAction(ephemeraljobsResource, c.ns, name), &v1alpha1.EphemeralJob{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.EphemeralJob), err +} + +// List takes label and field selectors, and returns the list of EphemeralJobs that match those selectors. +func (c *FakeEphemeralJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EphemeralJobList, err error) { + obj, err := c.Fake. + Invokes(testing.NewListAction(ephemeraljobsResource, ephemeraljobsKind, c.ns, opts), &v1alpha1.EphemeralJobList{}) + + if obj == nil { + return nil, err + } + + label, _, _ := testing.ExtractFromListOptions(opts) + if label == nil { + label = labels.Everything() + } + list := &v1alpha1.EphemeralJobList{ListMeta: obj.(*v1alpha1.EphemeralJobList).ListMeta} + for _, item := range obj.(*v1alpha1.EphemeralJobList).Items { + if label.Matches(labels.Set(item.Labels)) { + list.Items = append(list.Items, item) + } + } + return list, err +} + +// Watch returns a watch.Interface that watches the requested ephemeralJobs. +func (c *FakeEphemeralJobs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + return c.Fake. + InvokesWatch(testing.NewWatchAction(ephemeraljobsResource, c.ns, opts)) + +} + +// Create takes the representation of a ephemeralJob and creates it. Returns the server's representation of the ephemeralJob, and an error, if there is any. +func (c *FakeEphemeralJobs) Create(ctx context.Context, ephemeralJob *v1alpha1.EphemeralJob, opts v1.CreateOptions) (result *v1alpha1.EphemeralJob, err error) { + obj, err := c.Fake. + Invokes(testing.NewCreateAction(ephemeraljobsResource, c.ns, ephemeralJob), &v1alpha1.EphemeralJob{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.EphemeralJob), err +} + +// Update takes the representation of a ephemeralJob and updates it. Returns the server's representation of the ephemeralJob, and an error, if there is any. +func (c *FakeEphemeralJobs) Update(ctx context.Context, ephemeralJob *v1alpha1.EphemeralJob, opts v1.UpdateOptions) (result *v1alpha1.EphemeralJob, err error) { + obj, err := c.Fake. + Invokes(testing.NewUpdateAction(ephemeraljobsResource, c.ns, ephemeralJob), &v1alpha1.EphemeralJob{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.EphemeralJob), err +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *FakeEphemeralJobs) UpdateStatus(ctx context.Context, ephemeralJob *v1alpha1.EphemeralJob, opts v1.UpdateOptions) (*v1alpha1.EphemeralJob, error) { + obj, err := c.Fake. + Invokes(testing.NewUpdateSubresourceAction(ephemeraljobsResource, "status", c.ns, ephemeralJob), &v1alpha1.EphemeralJob{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.EphemeralJob), err +} + +// Delete takes name of the ephemeralJob and deletes it. Returns an error if one occurs. +func (c *FakeEphemeralJobs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + _, err := c.Fake. + Invokes(testing.NewDeleteAction(ephemeraljobsResource, c.ns, name), &v1alpha1.EphemeralJob{}) + + return err +} + +// DeleteCollection deletes a collection of objects. +func (c *FakeEphemeralJobs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + action := testing.NewDeleteCollectionAction(ephemeraljobsResource, c.ns, listOpts) + + _, err := c.Fake.Invokes(action, &v1alpha1.EphemeralJobList{}) + return err +} + +// Patch applies the patch and returns the patched ephemeralJob. +func (c *FakeEphemeralJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EphemeralJob, err error) { + obj, err := c.Fake. + Invokes(testing.NewPatchSubresourceAction(ephemeraljobsResource, c.ns, name, pt, data, subresources...), &v1alpha1.EphemeralJob{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.EphemeralJob), err +} diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_imagepulljob.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_imagepulljob.go index 7b7a944..e95c78e 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_imagepulljob.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_imagepulljob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_nodeimage.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_nodeimage.go index 53e92b9..ca451e8 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_nodeimage.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_nodeimage.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_resourcedistribution.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_resourcedistribution.go new file mode 100644 index 0000000..771f135 --- /dev/null +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_resourcedistribution.go @@ -0,0 +1,133 @@ +/* +Copyright 2021 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + "context" + + v1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + labels "k8s.io/apimachinery/pkg/labels" + schema "k8s.io/apimachinery/pkg/runtime/schema" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + testing "k8s.io/client-go/testing" +) + +// FakeResourceDistributions implements ResourceDistributionInterface +type FakeResourceDistributions struct { + Fake *FakeAppsV1alpha1 +} + +var resourcedistributionsResource = schema.GroupVersionResource{Group: "apps.kruise.io", Version: "v1alpha1", Resource: "resourcedistributions"} + +var resourcedistributionsKind = schema.GroupVersionKind{Group: "apps.kruise.io", Version: "v1alpha1", Kind: "ResourceDistribution"} + +// Get takes name of the resourceDistribution, and returns the corresponding resourceDistribution object, and an error if there is any. +func (c *FakeResourceDistributions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ResourceDistribution, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootGetAction(resourcedistributionsResource, name), &v1alpha1.ResourceDistribution{}) + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.ResourceDistribution), err +} + +// List takes label and field selectors, and returns the list of ResourceDistributions that match those selectors. +func (c *FakeResourceDistributions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ResourceDistributionList, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootListAction(resourcedistributionsResource, resourcedistributionsKind, opts), &v1alpha1.ResourceDistributionList{}) + if obj == nil { + return nil, err + } + + label, _, _ := testing.ExtractFromListOptions(opts) + if label == nil { + label = labels.Everything() + } + list := &v1alpha1.ResourceDistributionList{ListMeta: obj.(*v1alpha1.ResourceDistributionList).ListMeta} + for _, item := range obj.(*v1alpha1.ResourceDistributionList).Items { + if label.Matches(labels.Set(item.Labels)) { + list.Items = append(list.Items, item) + } + } + return list, err +} + +// Watch returns a watch.Interface that watches the requested resourceDistributions. +func (c *FakeResourceDistributions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + return c.Fake. + InvokesWatch(testing.NewRootWatchAction(resourcedistributionsResource, opts)) +} + +// Create takes the representation of a resourceDistribution and creates it. Returns the server's representation of the resourceDistribution, and an error, if there is any. +func (c *FakeResourceDistributions) Create(ctx context.Context, resourceDistribution *v1alpha1.ResourceDistribution, opts v1.CreateOptions) (result *v1alpha1.ResourceDistribution, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootCreateAction(resourcedistributionsResource, resourceDistribution), &v1alpha1.ResourceDistribution{}) + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.ResourceDistribution), err +} + +// Update takes the representation of a resourceDistribution and updates it. Returns the server's representation of the resourceDistribution, and an error, if there is any. +func (c *FakeResourceDistributions) Update(ctx context.Context, resourceDistribution *v1alpha1.ResourceDistribution, opts v1.UpdateOptions) (result *v1alpha1.ResourceDistribution, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootUpdateAction(resourcedistributionsResource, resourceDistribution), &v1alpha1.ResourceDistribution{}) + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.ResourceDistribution), err +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *FakeResourceDistributions) UpdateStatus(ctx context.Context, resourceDistribution *v1alpha1.ResourceDistribution, opts v1.UpdateOptions) (*v1alpha1.ResourceDistribution, error) { + obj, err := c.Fake. + Invokes(testing.NewRootUpdateSubresourceAction(resourcedistributionsResource, "status", resourceDistribution), &v1alpha1.ResourceDistribution{}) + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.ResourceDistribution), err +} + +// Delete takes name of the resourceDistribution and deletes it. Returns an error if one occurs. +func (c *FakeResourceDistributions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + _, err := c.Fake. + Invokes(testing.NewRootDeleteAction(resourcedistributionsResource, name), &v1alpha1.ResourceDistribution{}) + return err +} + +// DeleteCollection deletes a collection of objects. +func (c *FakeResourceDistributions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + action := testing.NewRootDeleteCollectionAction(resourcedistributionsResource, listOpts) + + _, err := c.Fake.Invokes(action, &v1alpha1.ResourceDistributionList{}) + return err +} + +// Patch applies the patch and returns the patched resourceDistribution. +func (c *FakeResourceDistributions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ResourceDistribution, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootPatchSubresourceAction(resourcedistributionsResource, name, pt, data, subresources...), &v1alpha1.ResourceDistribution{}) + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.ResourceDistribution), err +} diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_sidecarset.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_sidecarset.go index a934eba..bb8ec78 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_sidecarset.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_sidecarset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_statefulset.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_statefulset.go index 491adbf..2d024ec 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_statefulset.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_statefulset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_uniteddeployment.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_uniteddeployment.go index f7a2a10..d8531c4 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_uniteddeployment.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_uniteddeployment.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_workloadspread.go b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_workloadspread.go index ef1d361..79b9636 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_workloadspread.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/fake/fake_workloadspread.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/apps/v1alpha1/generated_expansion.go index c132001..554eb1c 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/generated_expansion.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -28,10 +28,14 @@ type ContainerRecreateRequestExpansion interface{} type DaemonSetExpansion interface{} +type EphemeralJobExpansion interface{} + type ImagePullJobExpansion interface{} type NodeImageExpansion interface{} +type ResourceDistributionExpansion interface{} + type SidecarSetExpansion interface{} type StatefulSetExpansion interface{} diff --git a/client/clientset/versioned/typed/apps/v1alpha1/imagepulljob.go b/client/clientset/versioned/typed/apps/v1alpha1/imagepulljob.go index f427490..cf9dafc 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/imagepulljob.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/imagepulljob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/nodeimage.go b/client/clientset/versioned/typed/apps/v1alpha1/nodeimage.go index 2d83f95..7e36ebf 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/nodeimage.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/nodeimage.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/resourcedistribution.go b/client/clientset/versioned/typed/apps/v1alpha1/resourcedistribution.go new file mode 100644 index 0000000..74d72ab --- /dev/null +++ b/client/clientset/versioned/typed/apps/v1alpha1/resourcedistribution.go @@ -0,0 +1,184 @@ +/* +Copyright 2021 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + "time" + + v1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" + scheme "github.com/openkruise/kruise-api/client/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// ResourceDistributionsGetter has a method to return a ResourceDistributionInterface. +// A group's client should implement this interface. +type ResourceDistributionsGetter interface { + ResourceDistributions() ResourceDistributionInterface +} + +// ResourceDistributionInterface has methods to work with ResourceDistribution resources. +type ResourceDistributionInterface interface { + Create(ctx context.Context, resourceDistribution *v1alpha1.ResourceDistribution, opts v1.CreateOptions) (*v1alpha1.ResourceDistribution, error) + Update(ctx context.Context, resourceDistribution *v1alpha1.ResourceDistribution, opts v1.UpdateOptions) (*v1alpha1.ResourceDistribution, error) + UpdateStatus(ctx context.Context, resourceDistribution *v1alpha1.ResourceDistribution, opts v1.UpdateOptions) (*v1alpha1.ResourceDistribution, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ResourceDistribution, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ResourceDistributionList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ResourceDistribution, err error) + ResourceDistributionExpansion +} + +// resourceDistributions implements ResourceDistributionInterface +type resourceDistributions struct { + client rest.Interface +} + +// newResourceDistributions returns a ResourceDistributions +func newResourceDistributions(c *AppsV1alpha1Client) *resourceDistributions { + return &resourceDistributions{ + client: c.RESTClient(), + } +} + +// Get takes name of the resourceDistribution, and returns the corresponding resourceDistribution object, and an error if there is any. +func (c *resourceDistributions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ResourceDistribution, err error) { + result = &v1alpha1.ResourceDistribution{} + err = c.client.Get(). + Resource("resourcedistributions"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of ResourceDistributions that match those selectors. +func (c *resourceDistributions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ResourceDistributionList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.ResourceDistributionList{} + err = c.client.Get(). + Resource("resourcedistributions"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested resourceDistributions. +func (c *resourceDistributions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Resource("resourcedistributions"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a resourceDistribution and creates it. Returns the server's representation of the resourceDistribution, and an error, if there is any. +func (c *resourceDistributions) Create(ctx context.Context, resourceDistribution *v1alpha1.ResourceDistribution, opts v1.CreateOptions) (result *v1alpha1.ResourceDistribution, err error) { + result = &v1alpha1.ResourceDistribution{} + err = c.client.Post(). + Resource("resourcedistributions"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(resourceDistribution). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a resourceDistribution and updates it. Returns the server's representation of the resourceDistribution, and an error, if there is any. +func (c *resourceDistributions) Update(ctx context.Context, resourceDistribution *v1alpha1.ResourceDistribution, opts v1.UpdateOptions) (result *v1alpha1.ResourceDistribution, err error) { + result = &v1alpha1.ResourceDistribution{} + err = c.client.Put(). + Resource("resourcedistributions"). + Name(resourceDistribution.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(resourceDistribution). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *resourceDistributions) UpdateStatus(ctx context.Context, resourceDistribution *v1alpha1.ResourceDistribution, opts v1.UpdateOptions) (result *v1alpha1.ResourceDistribution, err error) { + result = &v1alpha1.ResourceDistribution{} + err = c.client.Put(). + Resource("resourcedistributions"). + Name(resourceDistribution.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(resourceDistribution). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the resourceDistribution and deletes it. Returns an error if one occurs. +func (c *resourceDistributions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Resource("resourcedistributions"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *resourceDistributions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Resource("resourcedistributions"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched resourceDistribution. +func (c *resourceDistributions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ResourceDistribution, err error) { + result = &v1alpha1.ResourceDistribution{} + err = c.client.Patch(pt). + Resource("resourcedistributions"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/client/clientset/versioned/typed/apps/v1alpha1/sidecarset.go b/client/clientset/versioned/typed/apps/v1alpha1/sidecarset.go index 72e3ac7..e21e69d 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/sidecarset.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/sidecarset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/statefulset.go b/client/clientset/versioned/typed/apps/v1alpha1/statefulset.go index c9db24b..79780bf 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/statefulset.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/statefulset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/uniteddeployment.go b/client/clientset/versioned/typed/apps/v1alpha1/uniteddeployment.go index 1d28d03..542348f 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/uniteddeployment.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/uniteddeployment.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1alpha1/workloadspread.go b/client/clientset/versioned/typed/apps/v1alpha1/workloadspread.go index e69ef29..a36763f 100644 --- a/client/clientset/versioned/typed/apps/v1alpha1/workloadspread.go +++ b/client/clientset/versioned/typed/apps/v1alpha1/workloadspread.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1beta1/apps_client.go b/client/clientset/versioned/typed/apps/v1beta1/apps_client.go index 412ff72..ec4c4da 100644 --- a/client/clientset/versioned/typed/apps/v1beta1/apps_client.go +++ b/client/clientset/versioned/typed/apps/v1beta1/apps_client.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1beta1/doc.go b/client/clientset/versioned/typed/apps/v1beta1/doc.go index 56e0bc6..55cde06 100644 --- a/client/clientset/versioned/typed/apps/v1beta1/doc.go +++ b/client/clientset/versioned/typed/apps/v1beta1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1beta1/fake/doc.go b/client/clientset/versioned/typed/apps/v1beta1/fake/doc.go index a02ea57..41831a0 100644 --- a/client/clientset/versioned/typed/apps/v1beta1/fake/doc.go +++ b/client/clientset/versioned/typed/apps/v1beta1/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1beta1/fake/fake_apps_client.go b/client/clientset/versioned/typed/apps/v1beta1/fake/fake_apps_client.go index 2ced416..73e180f 100644 --- a/client/clientset/versioned/typed/apps/v1beta1/fake/fake_apps_client.go +++ b/client/clientset/versioned/typed/apps/v1beta1/fake/fake_apps_client.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1beta1/fake/fake_statefulset.go b/client/clientset/versioned/typed/apps/v1beta1/fake/fake_statefulset.go index d9a66d1..5e4b52d 100644 --- a/client/clientset/versioned/typed/apps/v1beta1/fake/fake_statefulset.go +++ b/client/clientset/versioned/typed/apps/v1beta1/fake/fake_statefulset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1beta1/generated_expansion.go b/client/clientset/versioned/typed/apps/v1beta1/generated_expansion.go index 60718f5..0d773b8 100644 --- a/client/clientset/versioned/typed/apps/v1beta1/generated_expansion.go +++ b/client/clientset/versioned/typed/apps/v1beta1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/apps/v1beta1/statefulset.go b/client/clientset/versioned/typed/apps/v1beta1/statefulset.go index b9d5b65..bd30d05 100644 --- a/client/clientset/versioned/typed/apps/v1beta1/statefulset.go +++ b/client/clientset/versioned/typed/apps/v1beta1/statefulset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/policy/v1alpha1/doc.go b/client/clientset/versioned/typed/policy/v1alpha1/doc.go index 49d287d..bcaecfa 100644 --- a/client/clientset/versioned/typed/policy/v1alpha1/doc.go +++ b/client/clientset/versioned/typed/policy/v1alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/policy/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/policy/v1alpha1/fake/doc.go index a02ea57..41831a0 100644 --- a/client/clientset/versioned/typed/policy/v1alpha1/fake/doc.go +++ b/client/clientset/versioned/typed/policy/v1alpha1/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/policy/v1alpha1/fake/fake_podunavailablebudget.go b/client/clientset/versioned/typed/policy/v1alpha1/fake/fake_podunavailablebudget.go index 51bbd6a..b4a8fc0 100644 --- a/client/clientset/versioned/typed/policy/v1alpha1/fake/fake_podunavailablebudget.go +++ b/client/clientset/versioned/typed/policy/v1alpha1/fake/fake_podunavailablebudget.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/policy/v1alpha1/fake/fake_policy_client.go b/client/clientset/versioned/typed/policy/v1alpha1/fake/fake_policy_client.go index 7c2271e..8a978b9 100644 --- a/client/clientset/versioned/typed/policy/v1alpha1/fake/fake_policy_client.go +++ b/client/clientset/versioned/typed/policy/v1alpha1/fake/fake_policy_client.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/policy/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/policy/v1alpha1/generated_expansion.go index 82becdf..f9617fc 100644 --- a/client/clientset/versioned/typed/policy/v1alpha1/generated_expansion.go +++ b/client/clientset/versioned/typed/policy/v1alpha1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/policy/v1alpha1/podunavailablebudget.go b/client/clientset/versioned/typed/policy/v1alpha1/podunavailablebudget.go index 0d178aa..25b3622 100644 --- a/client/clientset/versioned/typed/policy/v1alpha1/podunavailablebudget.go +++ b/client/clientset/versioned/typed/policy/v1alpha1/podunavailablebudget.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/clientset/versioned/typed/policy/v1alpha1/policy_client.go b/client/clientset/versioned/typed/policy/v1alpha1/policy_client.go index f0ea106..fb97ba2 100644 --- a/client/clientset/versioned/typed/policy/v1alpha1/policy_client.go +++ b/client/clientset/versioned/typed/policy/v1alpha1/policy_client.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/interface.go b/client/informers/externalversions/apps/interface.go index 4894739..68369d0 100644 --- a/client/informers/externalversions/apps/interface.go +++ b/client/informers/externalversions/apps/interface.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/advancedcronjob.go b/client/informers/externalversions/apps/v1alpha1/advancedcronjob.go index e42cd2b..27fb9b5 100644 --- a/client/informers/externalversions/apps/v1alpha1/advancedcronjob.go +++ b/client/informers/externalversions/apps/v1alpha1/advancedcronjob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/broadcastjob.go b/client/informers/externalversions/apps/v1alpha1/broadcastjob.go index c65a42b..96f9489 100644 --- a/client/informers/externalversions/apps/v1alpha1/broadcastjob.go +++ b/client/informers/externalversions/apps/v1alpha1/broadcastjob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/cloneset.go b/client/informers/externalversions/apps/v1alpha1/cloneset.go index f4b9244..0e03097 100644 --- a/client/informers/externalversions/apps/v1alpha1/cloneset.go +++ b/client/informers/externalversions/apps/v1alpha1/cloneset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/containerrecreaterequest.go b/client/informers/externalversions/apps/v1alpha1/containerrecreaterequest.go index 5f17cd1..130f956 100644 --- a/client/informers/externalversions/apps/v1alpha1/containerrecreaterequest.go +++ b/client/informers/externalversions/apps/v1alpha1/containerrecreaterequest.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/daemonset.go b/client/informers/externalversions/apps/v1alpha1/daemonset.go index 757c9e1..0942878 100644 --- a/client/informers/externalversions/apps/v1alpha1/daemonset.go +++ b/client/informers/externalversions/apps/v1alpha1/daemonset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/ephemeraljob.go b/client/informers/externalversions/apps/v1alpha1/ephemeraljob.go new file mode 100644 index 0000000..211ea4b --- /dev/null +++ b/client/informers/externalversions/apps/v1alpha1/ephemeraljob.go @@ -0,0 +1,90 @@ +/* +Copyright 2021 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + time "time" + + appsv1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" + versioned "github.com/openkruise/kruise-api/client/clientset/versioned" + internalinterfaces "github.com/openkruise/kruise-api/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/openkruise/kruise-api/client/listers/apps/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// EphemeralJobInformer provides access to a shared informer and lister for +// EphemeralJobs. +type EphemeralJobInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.EphemeralJobLister +} + +type ephemeralJobInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewEphemeralJobInformer constructs a new informer for EphemeralJob type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewEphemeralJobInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredEphemeralJobInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredEphemeralJobInformer constructs a new informer for EphemeralJob type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredEphemeralJobInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.AppsV1alpha1().EphemeralJobs(namespace).List(context.TODO(), options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.AppsV1alpha1().EphemeralJobs(namespace).Watch(context.TODO(), options) + }, + }, + &appsv1alpha1.EphemeralJob{}, + resyncPeriod, + indexers, + ) +} + +func (f *ephemeralJobInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredEphemeralJobInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *ephemeralJobInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&appsv1alpha1.EphemeralJob{}, f.defaultInformer) +} + +func (f *ephemeralJobInformer) Lister() v1alpha1.EphemeralJobLister { + return v1alpha1.NewEphemeralJobLister(f.Informer().GetIndexer()) +} diff --git a/client/informers/externalversions/apps/v1alpha1/imagepulljob.go b/client/informers/externalversions/apps/v1alpha1/imagepulljob.go index 899c98c..0b9e221 100644 --- a/client/informers/externalversions/apps/v1alpha1/imagepulljob.go +++ b/client/informers/externalversions/apps/v1alpha1/imagepulljob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/interface.go b/client/informers/externalversions/apps/v1alpha1/interface.go index bdfcb2e..8246398 100644 --- a/client/informers/externalversions/apps/v1alpha1/interface.go +++ b/client/informers/externalversions/apps/v1alpha1/interface.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -34,10 +34,14 @@ type Interface interface { ContainerRecreateRequests() ContainerRecreateRequestInformer // DaemonSets returns a DaemonSetInformer. DaemonSets() DaemonSetInformer + // EphemeralJobs returns a EphemeralJobInformer. + EphemeralJobs() EphemeralJobInformer // ImagePullJobs returns a ImagePullJobInformer. ImagePullJobs() ImagePullJobInformer // NodeImages returns a NodeImageInformer. NodeImages() NodeImageInformer + // ResourceDistributions returns a ResourceDistributionInformer. + ResourceDistributions() ResourceDistributionInformer // SidecarSets returns a SidecarSetInformer. SidecarSets() SidecarSetInformer // StatefulSets returns a StatefulSetInformer. @@ -84,6 +88,11 @@ func (v *version) DaemonSets() DaemonSetInformer { return &daemonSetInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } +// EphemeralJobs returns a EphemeralJobInformer. +func (v *version) EphemeralJobs() EphemeralJobInformer { + return &ephemeralJobInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + // ImagePullJobs returns a ImagePullJobInformer. func (v *version) ImagePullJobs() ImagePullJobInformer { return &imagePullJobInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} @@ -94,6 +103,11 @@ func (v *version) NodeImages() NodeImageInformer { return &nodeImageInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } +// ResourceDistributions returns a ResourceDistributionInformer. +func (v *version) ResourceDistributions() ResourceDistributionInformer { + return &resourceDistributionInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // SidecarSets returns a SidecarSetInformer. func (v *version) SidecarSets() SidecarSetInformer { return &sidecarSetInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} diff --git a/client/informers/externalversions/apps/v1alpha1/nodeimage.go b/client/informers/externalversions/apps/v1alpha1/nodeimage.go index e89fc84..b84008b 100644 --- a/client/informers/externalversions/apps/v1alpha1/nodeimage.go +++ b/client/informers/externalversions/apps/v1alpha1/nodeimage.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/resourcedistribution.go b/client/informers/externalversions/apps/v1alpha1/resourcedistribution.go new file mode 100644 index 0000000..1284560 --- /dev/null +++ b/client/informers/externalversions/apps/v1alpha1/resourcedistribution.go @@ -0,0 +1,89 @@ +/* +Copyright 2021 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + time "time" + + appsv1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" + versioned "github.com/openkruise/kruise-api/client/clientset/versioned" + internalinterfaces "github.com/openkruise/kruise-api/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/openkruise/kruise-api/client/listers/apps/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// ResourceDistributionInformer provides access to a shared informer and lister for +// ResourceDistributions. +type ResourceDistributionInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.ResourceDistributionLister +} + +type resourceDistributionInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewResourceDistributionInformer constructs a new informer for ResourceDistribution type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewResourceDistributionInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredResourceDistributionInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredResourceDistributionInformer constructs a new informer for ResourceDistribution type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredResourceDistributionInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.AppsV1alpha1().ResourceDistributions().List(context.TODO(), options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.AppsV1alpha1().ResourceDistributions().Watch(context.TODO(), options) + }, + }, + &appsv1alpha1.ResourceDistribution{}, + resyncPeriod, + indexers, + ) +} + +func (f *resourceDistributionInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredResourceDistributionInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *resourceDistributionInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&appsv1alpha1.ResourceDistribution{}, f.defaultInformer) +} + +func (f *resourceDistributionInformer) Lister() v1alpha1.ResourceDistributionLister { + return v1alpha1.NewResourceDistributionLister(f.Informer().GetIndexer()) +} diff --git a/client/informers/externalversions/apps/v1alpha1/sidecarset.go b/client/informers/externalversions/apps/v1alpha1/sidecarset.go index 8a3dc79..8cae43b 100644 --- a/client/informers/externalversions/apps/v1alpha1/sidecarset.go +++ b/client/informers/externalversions/apps/v1alpha1/sidecarset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/statefulset.go b/client/informers/externalversions/apps/v1alpha1/statefulset.go index dbb329b..327bded 100644 --- a/client/informers/externalversions/apps/v1alpha1/statefulset.go +++ b/client/informers/externalversions/apps/v1alpha1/statefulset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/uniteddeployment.go b/client/informers/externalversions/apps/v1alpha1/uniteddeployment.go index 01bce55..d93c9a5 100644 --- a/client/informers/externalversions/apps/v1alpha1/uniteddeployment.go +++ b/client/informers/externalversions/apps/v1alpha1/uniteddeployment.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1alpha1/workloadspread.go b/client/informers/externalversions/apps/v1alpha1/workloadspread.go index 9b87e17..2d70eba 100644 --- a/client/informers/externalversions/apps/v1alpha1/workloadspread.go +++ b/client/informers/externalversions/apps/v1alpha1/workloadspread.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1beta1/interface.go b/client/informers/externalversions/apps/v1beta1/interface.go index 6c7cd2e..0e68fec 100644 --- a/client/informers/externalversions/apps/v1beta1/interface.go +++ b/client/informers/externalversions/apps/v1beta1/interface.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/apps/v1beta1/statefulset.go b/client/informers/externalversions/apps/v1beta1/statefulset.go index 0f361ba..cb60cf7 100644 --- a/client/informers/externalversions/apps/v1beta1/statefulset.go +++ b/client/informers/externalversions/apps/v1beta1/statefulset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/factory.go b/client/informers/externalversions/factory.go index 3eba98f..69181c2 100644 --- a/client/informers/externalversions/factory.go +++ b/client/informers/externalversions/factory.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/generic.go b/client/informers/externalversions/generic.go index b675f4e..91bbd40 100644 --- a/client/informers/externalversions/generic.go +++ b/client/informers/externalversions/generic.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -65,10 +65,14 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Apps().V1alpha1().ContainerRecreateRequests().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("daemonsets"): return &genericInformer{resource: resource.GroupResource(), informer: f.Apps().V1alpha1().DaemonSets().Informer()}, nil + case v1alpha1.SchemeGroupVersion.WithResource("ephemeraljobs"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Apps().V1alpha1().EphemeralJobs().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("imagepulljobs"): return &genericInformer{resource: resource.GroupResource(), informer: f.Apps().V1alpha1().ImagePullJobs().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("nodeimages"): return &genericInformer{resource: resource.GroupResource(), informer: f.Apps().V1alpha1().NodeImages().Informer()}, nil + case v1alpha1.SchemeGroupVersion.WithResource("resourcedistributions"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Apps().V1alpha1().ResourceDistributions().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("sidecarsets"): return &genericInformer{resource: resource.GroupResource(), informer: f.Apps().V1alpha1().SidecarSets().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("statefulsets"): diff --git a/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/client/informers/externalversions/internalinterfaces/factory_interfaces.go index bd751f7..b2293f4 100644 --- a/client/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/policy/interface.go b/client/informers/externalversions/policy/interface.go index 779ded8..728c3bc 100644 --- a/client/informers/externalversions/policy/interface.go +++ b/client/informers/externalversions/policy/interface.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/policy/v1alpha1/interface.go b/client/informers/externalversions/policy/v1alpha1/interface.go index b23ac32..6b9f47e 100644 --- a/client/informers/externalversions/policy/v1alpha1/interface.go +++ b/client/informers/externalversions/policy/v1alpha1/interface.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/informers/externalversions/policy/v1alpha1/podunavailablebudget.go b/client/informers/externalversions/policy/v1alpha1/podunavailablebudget.go index 743e131..c0feaa2 100644 --- a/client/informers/externalversions/policy/v1alpha1/podunavailablebudget.go +++ b/client/informers/externalversions/policy/v1alpha1/podunavailablebudget.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/listers/apps/v1alpha1/advancedcronjob.go b/client/listers/apps/v1alpha1/advancedcronjob.go index dd86132..9b2068d 100644 --- a/client/listers/apps/v1alpha1/advancedcronjob.go +++ b/client/listers/apps/v1alpha1/advancedcronjob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // AdvancedCronJobLister helps list AdvancedCronJobs. +// All objects returned here must be treated as read-only. type AdvancedCronJobLister interface { // List lists all AdvancedCronJobs in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.AdvancedCronJob, err error) // AdvancedCronJobs returns an object that can list and get AdvancedCronJobs. AdvancedCronJobs(namespace string) AdvancedCronJobNamespaceLister @@ -58,10 +60,13 @@ func (s *advancedCronJobLister) AdvancedCronJobs(namespace string) AdvancedCronJ } // AdvancedCronJobNamespaceLister helps list and get AdvancedCronJobs. +// All objects returned here must be treated as read-only. type AdvancedCronJobNamespaceLister interface { // List lists all AdvancedCronJobs in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.AdvancedCronJob, err error) // Get retrieves the AdvancedCronJob from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.AdvancedCronJob, error) AdvancedCronJobNamespaceListerExpansion } diff --git a/client/listers/apps/v1alpha1/broadcastjob.go b/client/listers/apps/v1alpha1/broadcastjob.go index 1906ac0..10ee627 100644 --- a/client/listers/apps/v1alpha1/broadcastjob.go +++ b/client/listers/apps/v1alpha1/broadcastjob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // BroadcastJobLister helps list BroadcastJobs. +// All objects returned here must be treated as read-only. type BroadcastJobLister interface { // List lists all BroadcastJobs in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.BroadcastJob, err error) // BroadcastJobs returns an object that can list and get BroadcastJobs. BroadcastJobs(namespace string) BroadcastJobNamespaceLister @@ -58,10 +60,13 @@ func (s *broadcastJobLister) BroadcastJobs(namespace string) BroadcastJobNamespa } // BroadcastJobNamespaceLister helps list and get BroadcastJobs. +// All objects returned here must be treated as read-only. type BroadcastJobNamespaceLister interface { // List lists all BroadcastJobs in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.BroadcastJob, err error) // Get retrieves the BroadcastJob from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.BroadcastJob, error) BroadcastJobNamespaceListerExpansion } diff --git a/client/listers/apps/v1alpha1/cloneset.go b/client/listers/apps/v1alpha1/cloneset.go index fd55eb2..a4c73e0 100644 --- a/client/listers/apps/v1alpha1/cloneset.go +++ b/client/listers/apps/v1alpha1/cloneset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // CloneSetLister helps list CloneSets. +// All objects returned here must be treated as read-only. type CloneSetLister interface { // List lists all CloneSets in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.CloneSet, err error) // CloneSets returns an object that can list and get CloneSets. CloneSets(namespace string) CloneSetNamespaceLister @@ -58,10 +60,13 @@ func (s *cloneSetLister) CloneSets(namespace string) CloneSetNamespaceLister { } // CloneSetNamespaceLister helps list and get CloneSets. +// All objects returned here must be treated as read-only. type CloneSetNamespaceLister interface { // List lists all CloneSets in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.CloneSet, err error) // Get retrieves the CloneSet from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.CloneSet, error) CloneSetNamespaceListerExpansion } diff --git a/client/listers/apps/v1alpha1/containerrecreaterequest.go b/client/listers/apps/v1alpha1/containerrecreaterequest.go index 3eec5ed..707710c 100644 --- a/client/listers/apps/v1alpha1/containerrecreaterequest.go +++ b/client/listers/apps/v1alpha1/containerrecreaterequest.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // ContainerRecreateRequestLister helps list ContainerRecreateRequests. +// All objects returned here must be treated as read-only. type ContainerRecreateRequestLister interface { // List lists all ContainerRecreateRequests in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.ContainerRecreateRequest, err error) // ContainerRecreateRequests returns an object that can list and get ContainerRecreateRequests. ContainerRecreateRequests(namespace string) ContainerRecreateRequestNamespaceLister @@ -58,10 +60,13 @@ func (s *containerRecreateRequestLister) ContainerRecreateRequests(namespace str } // ContainerRecreateRequestNamespaceLister helps list and get ContainerRecreateRequests. +// All objects returned here must be treated as read-only. type ContainerRecreateRequestNamespaceLister interface { // List lists all ContainerRecreateRequests in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.ContainerRecreateRequest, err error) // Get retrieves the ContainerRecreateRequest from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.ContainerRecreateRequest, error) ContainerRecreateRequestNamespaceListerExpansion } diff --git a/client/listers/apps/v1alpha1/daemonset.go b/client/listers/apps/v1alpha1/daemonset.go index f943c8e..a75b1cc 100644 --- a/client/listers/apps/v1alpha1/daemonset.go +++ b/client/listers/apps/v1alpha1/daemonset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // DaemonSetLister helps list DaemonSets. +// All objects returned here must be treated as read-only. type DaemonSetLister interface { // List lists all DaemonSets in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.DaemonSet, err error) // DaemonSets returns an object that can list and get DaemonSets. DaemonSets(namespace string) DaemonSetNamespaceLister @@ -58,10 +60,13 @@ func (s *daemonSetLister) DaemonSets(namespace string) DaemonSetNamespaceLister } // DaemonSetNamespaceLister helps list and get DaemonSets. +// All objects returned here must be treated as read-only. type DaemonSetNamespaceLister interface { // List lists all DaemonSets in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.DaemonSet, err error) // Get retrieves the DaemonSet from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.DaemonSet, error) DaemonSetNamespaceListerExpansion } diff --git a/client/listers/apps/v1alpha1/ephemeraljob.go b/client/listers/apps/v1alpha1/ephemeraljob.go new file mode 100644 index 0000000..56ee2cc --- /dev/null +++ b/client/listers/apps/v1alpha1/ephemeraljob.go @@ -0,0 +1,99 @@ +/* +Copyright 2021 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// EphemeralJobLister helps list EphemeralJobs. +// All objects returned here must be treated as read-only. +type EphemeralJobLister interface { + // List lists all EphemeralJobs in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1alpha1.EphemeralJob, err error) + // EphemeralJobs returns an object that can list and get EphemeralJobs. + EphemeralJobs(namespace string) EphemeralJobNamespaceLister + EphemeralJobListerExpansion +} + +// ephemeralJobLister implements the EphemeralJobLister interface. +type ephemeralJobLister struct { + indexer cache.Indexer +} + +// NewEphemeralJobLister returns a new EphemeralJobLister. +func NewEphemeralJobLister(indexer cache.Indexer) EphemeralJobLister { + return &ephemeralJobLister{indexer: indexer} +} + +// List lists all EphemeralJobs in the indexer. +func (s *ephemeralJobLister) List(selector labels.Selector) (ret []*v1alpha1.EphemeralJob, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.EphemeralJob)) + }) + return ret, err +} + +// EphemeralJobs returns an object that can list and get EphemeralJobs. +func (s *ephemeralJobLister) EphemeralJobs(namespace string) EphemeralJobNamespaceLister { + return ephemeralJobNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// EphemeralJobNamespaceLister helps list and get EphemeralJobs. +// All objects returned here must be treated as read-only. +type EphemeralJobNamespaceLister interface { + // List lists all EphemeralJobs in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1alpha1.EphemeralJob, err error) + // Get retrieves the EphemeralJob from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*v1alpha1.EphemeralJob, error) + EphemeralJobNamespaceListerExpansion +} + +// ephemeralJobNamespaceLister implements the EphemeralJobNamespaceLister +// interface. +type ephemeralJobNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all EphemeralJobs in the indexer for a given namespace. +func (s ephemeralJobNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.EphemeralJob, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.EphemeralJob)) + }) + return ret, err +} + +// Get retrieves the EphemeralJob from the indexer for a given namespace and name. +func (s ephemeralJobNamespaceLister) Get(name string) (*v1alpha1.EphemeralJob, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("ephemeraljob"), name) + } + return obj.(*v1alpha1.EphemeralJob), nil +} diff --git a/client/listers/apps/v1alpha1/expansion_generated.go b/client/listers/apps/v1alpha1/expansion_generated.go index 0716712..88b5800 100644 --- a/client/listers/apps/v1alpha1/expansion_generated.go +++ b/client/listers/apps/v1alpha1/expansion_generated.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -58,6 +58,14 @@ type DaemonSetListerExpansion interface{} // DaemonSetNamespaceLister. type DaemonSetNamespaceListerExpansion interface{} +// EphemeralJobListerExpansion allows custom methods to be added to +// EphemeralJobLister. +type EphemeralJobListerExpansion interface{} + +// EphemeralJobNamespaceListerExpansion allows custom methods to be added to +// EphemeralJobNamespaceLister. +type EphemeralJobNamespaceListerExpansion interface{} + // ImagePullJobListerExpansion allows custom methods to be added to // ImagePullJobLister. type ImagePullJobListerExpansion interface{} @@ -70,6 +78,10 @@ type ImagePullJobNamespaceListerExpansion interface{} // NodeImageLister. type NodeImageListerExpansion interface{} +// ResourceDistributionListerExpansion allows custom methods to be added to +// ResourceDistributionLister. +type ResourceDistributionListerExpansion interface{} + // SidecarSetListerExpansion allows custom methods to be added to // SidecarSetLister. type SidecarSetListerExpansion interface{} diff --git a/client/listers/apps/v1alpha1/imagepulljob.go b/client/listers/apps/v1alpha1/imagepulljob.go index 7b38903..6c3db4f 100644 --- a/client/listers/apps/v1alpha1/imagepulljob.go +++ b/client/listers/apps/v1alpha1/imagepulljob.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // ImagePullJobLister helps list ImagePullJobs. +// All objects returned here must be treated as read-only. type ImagePullJobLister interface { // List lists all ImagePullJobs in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.ImagePullJob, err error) // ImagePullJobs returns an object that can list and get ImagePullJobs. ImagePullJobs(namespace string) ImagePullJobNamespaceLister @@ -58,10 +60,13 @@ func (s *imagePullJobLister) ImagePullJobs(namespace string) ImagePullJobNamespa } // ImagePullJobNamespaceLister helps list and get ImagePullJobs. +// All objects returned here must be treated as read-only. type ImagePullJobNamespaceLister interface { // List lists all ImagePullJobs in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.ImagePullJob, err error) // Get retrieves the ImagePullJob from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.ImagePullJob, error) ImagePullJobNamespaceListerExpansion } diff --git a/client/listers/apps/v1alpha1/nodeimage.go b/client/listers/apps/v1alpha1/nodeimage.go index 0f0dd87..60c27e8 100644 --- a/client/listers/apps/v1alpha1/nodeimage.go +++ b/client/listers/apps/v1alpha1/nodeimage.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,10 +26,13 @@ import ( ) // NodeImageLister helps list NodeImages. +// All objects returned here must be treated as read-only. type NodeImageLister interface { // List lists all NodeImages in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.NodeImage, err error) // Get retrieves the NodeImage from the index for a given name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.NodeImage, error) NodeImageListerExpansion } diff --git a/client/listers/apps/v1alpha1/resourcedistribution.go b/client/listers/apps/v1alpha1/resourcedistribution.go new file mode 100644 index 0000000..bf7f5bd --- /dev/null +++ b/client/listers/apps/v1alpha1/resourcedistribution.go @@ -0,0 +1,68 @@ +/* +Copyright 2021 The Kruise Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/openkruise/kruise-api/apps/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// ResourceDistributionLister helps list ResourceDistributions. +// All objects returned here must be treated as read-only. +type ResourceDistributionLister interface { + // List lists all ResourceDistributions in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1alpha1.ResourceDistribution, err error) + // Get retrieves the ResourceDistribution from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*v1alpha1.ResourceDistribution, error) + ResourceDistributionListerExpansion +} + +// resourceDistributionLister implements the ResourceDistributionLister interface. +type resourceDistributionLister struct { + indexer cache.Indexer +} + +// NewResourceDistributionLister returns a new ResourceDistributionLister. +func NewResourceDistributionLister(indexer cache.Indexer) ResourceDistributionLister { + return &resourceDistributionLister{indexer: indexer} +} + +// List lists all ResourceDistributions in the indexer. +func (s *resourceDistributionLister) List(selector labels.Selector) (ret []*v1alpha1.ResourceDistribution, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.ResourceDistribution)) + }) + return ret, err +} + +// Get retrieves the ResourceDistribution from the index for a given name. +func (s *resourceDistributionLister) Get(name string) (*v1alpha1.ResourceDistribution, error) { + obj, exists, err := s.indexer.GetByKey(name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("resourcedistribution"), name) + } + return obj.(*v1alpha1.ResourceDistribution), nil +} diff --git a/client/listers/apps/v1alpha1/sidecarset.go b/client/listers/apps/v1alpha1/sidecarset.go index d948d23..d80aab9 100644 --- a/client/listers/apps/v1alpha1/sidecarset.go +++ b/client/listers/apps/v1alpha1/sidecarset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,10 +26,13 @@ import ( ) // SidecarSetLister helps list SidecarSets. +// All objects returned here must be treated as read-only. type SidecarSetLister interface { // List lists all SidecarSets in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.SidecarSet, err error) // Get retrieves the SidecarSet from the index for a given name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.SidecarSet, error) SidecarSetListerExpansion } diff --git a/client/listers/apps/v1alpha1/statefulset.go b/client/listers/apps/v1alpha1/statefulset.go index fbc97f2..4a239cf 100644 --- a/client/listers/apps/v1alpha1/statefulset.go +++ b/client/listers/apps/v1alpha1/statefulset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // StatefulSetLister helps list StatefulSets. +// All objects returned here must be treated as read-only. type StatefulSetLister interface { // List lists all StatefulSets in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.StatefulSet, err error) // StatefulSets returns an object that can list and get StatefulSets. StatefulSets(namespace string) StatefulSetNamespaceLister @@ -58,10 +60,13 @@ func (s *statefulSetLister) StatefulSets(namespace string) StatefulSetNamespaceL } // StatefulSetNamespaceLister helps list and get StatefulSets. +// All objects returned here must be treated as read-only. type StatefulSetNamespaceLister interface { // List lists all StatefulSets in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.StatefulSet, err error) // Get retrieves the StatefulSet from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.StatefulSet, error) StatefulSetNamespaceListerExpansion } diff --git a/client/listers/apps/v1alpha1/uniteddeployment.go b/client/listers/apps/v1alpha1/uniteddeployment.go index 4738bbe..1bb7115 100644 --- a/client/listers/apps/v1alpha1/uniteddeployment.go +++ b/client/listers/apps/v1alpha1/uniteddeployment.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // UnitedDeploymentLister helps list UnitedDeployments. +// All objects returned here must be treated as read-only. type UnitedDeploymentLister interface { // List lists all UnitedDeployments in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.UnitedDeployment, err error) // UnitedDeployments returns an object that can list and get UnitedDeployments. UnitedDeployments(namespace string) UnitedDeploymentNamespaceLister @@ -58,10 +60,13 @@ func (s *unitedDeploymentLister) UnitedDeployments(namespace string) UnitedDeplo } // UnitedDeploymentNamespaceLister helps list and get UnitedDeployments. +// All objects returned here must be treated as read-only. type UnitedDeploymentNamespaceLister interface { // List lists all UnitedDeployments in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.UnitedDeployment, err error) // Get retrieves the UnitedDeployment from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.UnitedDeployment, error) UnitedDeploymentNamespaceListerExpansion } diff --git a/client/listers/apps/v1alpha1/workloadspread.go b/client/listers/apps/v1alpha1/workloadspread.go index 43572c0..1e222f8 100644 --- a/client/listers/apps/v1alpha1/workloadspread.go +++ b/client/listers/apps/v1alpha1/workloadspread.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // WorkloadSpreadLister helps list WorkloadSpreads. +// All objects returned here must be treated as read-only. type WorkloadSpreadLister interface { // List lists all WorkloadSpreads in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.WorkloadSpread, err error) // WorkloadSpreads returns an object that can list and get WorkloadSpreads. WorkloadSpreads(namespace string) WorkloadSpreadNamespaceLister @@ -58,10 +60,13 @@ func (s *workloadSpreadLister) WorkloadSpreads(namespace string) WorkloadSpreadN } // WorkloadSpreadNamespaceLister helps list and get WorkloadSpreads. +// All objects returned here must be treated as read-only. type WorkloadSpreadNamespaceLister interface { // List lists all WorkloadSpreads in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.WorkloadSpread, err error) // Get retrieves the WorkloadSpread from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.WorkloadSpread, error) WorkloadSpreadNamespaceListerExpansion } diff --git a/client/listers/apps/v1beta1/expansion_generated.go b/client/listers/apps/v1beta1/expansion_generated.go index fba7256..1185512 100644 --- a/client/listers/apps/v1beta1/expansion_generated.go +++ b/client/listers/apps/v1beta1/expansion_generated.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/listers/apps/v1beta1/statefulset.go b/client/listers/apps/v1beta1/statefulset.go index 8e8a310..51e19e7 100644 --- a/client/listers/apps/v1beta1/statefulset.go +++ b/client/listers/apps/v1beta1/statefulset.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // StatefulSetLister helps list StatefulSets. +// All objects returned here must be treated as read-only. type StatefulSetLister interface { // List lists all StatefulSets in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1beta1.StatefulSet, err error) // StatefulSets returns an object that can list and get StatefulSets. StatefulSets(namespace string) StatefulSetNamespaceLister @@ -58,10 +60,13 @@ func (s *statefulSetLister) StatefulSets(namespace string) StatefulSetNamespaceL } // StatefulSetNamespaceLister helps list and get StatefulSets. +// All objects returned here must be treated as read-only. type StatefulSetNamespaceLister interface { // List lists all StatefulSets in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1beta1.StatefulSet, err error) // Get retrieves the StatefulSet from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1beta1.StatefulSet, error) StatefulSetNamespaceListerExpansion } diff --git a/client/listers/policy/v1alpha1/expansion_generated.go b/client/listers/policy/v1alpha1/expansion_generated.go index 6645673..8772f23 100644 --- a/client/listers/policy/v1alpha1/expansion_generated.go +++ b/client/listers/policy/v1alpha1/expansion_generated.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/client/listers/policy/v1alpha1/podunavailablebudget.go b/client/listers/policy/v1alpha1/podunavailablebudget.go index 35b2821..780f9fc 100644 --- a/client/listers/policy/v1alpha1/podunavailablebudget.go +++ b/client/listers/policy/v1alpha1/podunavailablebudget.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -26,8 +26,10 @@ import ( ) // PodUnavailableBudgetLister helps list PodUnavailableBudgets. +// All objects returned here must be treated as read-only. type PodUnavailableBudgetLister interface { // List lists all PodUnavailableBudgets in the indexer. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.PodUnavailableBudget, err error) // PodUnavailableBudgets returns an object that can list and get PodUnavailableBudgets. PodUnavailableBudgets(namespace string) PodUnavailableBudgetNamespaceLister @@ -58,10 +60,13 @@ func (s *podUnavailableBudgetLister) PodUnavailableBudgets(namespace string) Pod } // PodUnavailableBudgetNamespaceLister helps list and get PodUnavailableBudgets. +// All objects returned here must be treated as read-only. type PodUnavailableBudgetNamespaceLister interface { // List lists all PodUnavailableBudgets in the indexer for a given namespace. + // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*v1alpha1.PodUnavailableBudget, err error) // Get retrieves the PodUnavailableBudget from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. Get(name string) (*v1alpha1.PodUnavailableBudget, error) PodUnavailableBudgetNamespaceListerExpansion } diff --git a/go.mod b/go.mod index d7537a9..d531991 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module github.com/openkruise/kruise-api go 1.16 require ( - k8s.io/api v0.18.2 - k8s.io/apimachinery v0.18.2 - k8s.io/client-go v0.18.2 - k8s.io/code-generator v0.18.2 + k8s.io/api v0.20.10 + k8s.io/apimachinery v0.20.10 + k8s.io/client-go v0.20.10 + k8s.io/code-generator v0.20.10 ) diff --git a/go.sum b/go.sum index 57e0e7c..63f099a 100644 --- a/go.sum +++ b/go.sum @@ -1,14 +1,43 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/Azure/go-autorest v11.1.2+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= +github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= +github.com/Azure/go-autorest/autorest v0.11.1/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= +github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg= +github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= +github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= +github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= +github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= +github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= @@ -18,6 +47,11 @@ github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbt github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -25,18 +59,30 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/dgrijalva/jwt-go v0.0.0-20160705203006-01aeca54ebda/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= +github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= github.com/emicklei/go-restful v2.9.5+incompatible h1:spTtZBk5DYEvbxMVutUuTyh1Ao2r4iyvLdACqsl/Ljk= github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/evanphx/json-patch v0.0.0-20190203023257-5858425f7550 h1:mV9jbLoSW/8m4VK16ZkHTozJa8sesK5u5kTMFysTYac= github.com/evanphx/json-patch v0.0.0-20190203023257-5858425f7550/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.2.0+incompatible h1:fUDGZCv/7iAN7u0puUVhvKCcsR6vRfwrJatElLBEf0I= github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/evanphx/json-patch v4.9.0+incompatible h1:kLcOMZeuLAJvL2BPWLMIj5oaZQobrkAqrL+WFZwQses= +github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= +github.com/go-logr/logr v0.2.0 h1:QvGt2nLcHH0WK9orKa+ppBPAxREcH364nPUedEpK0TY= +github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= github.com/go-openapi/jsonpointer v0.19.3 h1:gihV7YNZK1iK6Tgwwsxo2rJbD1GTbdm72325Bq8FI3w= @@ -56,21 +102,45 @@ github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415 h1:WSBJMqJbLxsn+bTCP github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/google/btree v0.0.0-20160524151835-7d79101e329e/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf h1:+RRA9JqSOZFfKrOeqr2z77+8R2RKyh8PG66dcu1V0ck= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= @@ -78,13 +148,22 @@ github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g= github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d h1:7XGaL1e6bYS1yIonGp9761ExpPPV1ui0SAC59Yube9k= github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= github.com/googleapis/gnostic v0.1.0 h1:rVsPeBmXbYv4If/cumu1AzZPwV58q433hvONV1UEZoI= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/googleapis/gnostic v0.4.1 h1:DLJCy1n/vrD4HPjOvYcT8aYQXpPIzoRZONaYwyycI+I= +github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= github.com/gophercloud/gophercloud v0.0.0-20190126172459-c818fa66e4c8/go.mod h1:3WdhXV3rUYy9p6AUW8d94kr+HS62Y4VL9mBnFxsD8q4= github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gregjones/httpcache v0.0.0-20170728041850-787624de3eb7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= @@ -94,16 +173,22 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be h1:AHimNtVIpiBjPUhEF5KNCkrUyqTSA5zWUl8sQ2bfGBE= github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.8 h1:QiWkFLKq0T7mpzwOTu6BzNDbfTE8OLrYhVKYMLF46Ok= github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= @@ -112,6 +197,7 @@ github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.0 h1:aizVhC/NAAcKWb+5QsU1iNOZb4Yws5UO2I+aIprQITM= github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -127,8 +213,12 @@ github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGV github.com/onsi/gomega v0.0.0-20190113212917-5533ce8a0da3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.1 h1:aCvUg6QPl3ibpQUxyLkrEkCHtPqYJL4x9AuhqVqFis4= @@ -140,22 +230,59 @@ github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoH github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= golang.org/x/crypto v0.0.0-20181025213731-e84da0312774/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975 h1:/Tl7pH94bvbAAHBdZJT947M/+gp0+CqQXDtMRC0fseo= golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 h1:hb9wdF1z5waM+dSIICn1l0DkLVDT3hqhhQsDNUmHPRE= +golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -164,24 +291,43 @@ golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc h1:gkKoSkUmnU6bpS/VhkuO27bzQeSA51uaEfbOW5dNb68= golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191004110552-13f9640d40b9 h1:rjwSpXsdiK0dV8/Naq3kAw9ymfAeJIyd0upUIElB+lI= golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a h1:tImsplftrFpALCYumobsd0K86vlAs/eXGFms2txfJfA= golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -190,50 +336,155 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190312061237-fead79001313 h1:pczuHS43Cp2ktBEEmLwScxgjWsBSzdaQiKzUyf3DTTc= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7 h1:HmbHVPwrPEKPGLAcHSrMe6+hqSUlvZU0rab6x5EXfGU= golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201112073958-5cba982894dd h1:5CtCZbICpIOFdgO940moixOPjc0178IU44m4EjOO5IY= +golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db h1:6/JqlYfC1CCaLnGceQTI+sDGhC9UBSPAsBqI0Gun6kU= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20161028155119-f51c12702a4d h1:TnM+PKb3ylGmZvyPXmo9m/wktg7Jn/a/fNmr33HSj8g= golang.org/x/time v0.0.0-20161028155119-f51c12702a4d/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e h1:EHBhcS0mlXEAVwNyO2dLfjToGsyY4j24pTs2ScHnX7s= +golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384 h1:TFlARGu6Czu1z7q93HTxcP1P+/ZFC/IKythI5RzrnRg= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72 h1:bw9doJza/SFBEweII/rHQh338oozWyiFsBRHtrflcws= golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a h1:CB3a9Nez8M13wwlr/E2YtwoU+qYHKfC+JrDa45RXXoQ= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485 h1:OB/uP/Puiu5vS5QMRPrXCDWUPb+kt8f1KW8oQzFejQw= gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0= gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0 h1:KxkO13IPW4Lslp2bz+KHP2E3gtFlrIGNThxkZQ3g+4c= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5 h1:tycE03LOZYQNhDpS27tcQdAzLCVMaj7QT2SXxebnpCM= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/inf.v0 v0.9.0 h1:3zYtXIO92bvsdS3ggAdA8Gb4Azj0YU+TVY1uGYNFA8o= gopkg.in/inf.v0 v0.9.0/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= @@ -246,51 +497,81 @@ gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= k8s.io/api v0.15.8 h1:ar3EVuen1NntgcYCRK5Zm9vOL/eKsGZcacffFoCLdfQ= k8s.io/api v0.15.8/go.mod h1:hpDXsOhY/unVSSzhMol7kihWaNMf2snhF4nejjlzUzk= k8s.io/api v0.18.2 h1:wG5g5ZmSVgm5B+eHMIbI9EGATS2L8Z72rda19RIEgY8= k8s.io/api v0.18.2/go.mod h1:SJCWI7OLzhZSvbY7U8zwNl9UA4o1fizoug34OV/2r78= +k8s.io/api v0.20.10 h1:kAdgi1zcyenV88/uVEzS9B/fn1m4KRbmdKB0Lxl6z/M= +k8s.io/api v0.20.10/go.mod h1:0kei3F6biGjtRQBo5dUeujq6Ji3UCh9aOSfp/THYd7I= k8s.io/apimachinery v0.15.8 h1:oX5LvrFbFbxkNvxzEQBtQqEVOYgA5KiiLgAIknMFzg0= k8s.io/apimachinery v0.15.8/go.mod h1:Xc10RHc1U+F/e9GCloJ8QAeCGevSVP5xhOhqlE+e1kM= k8s.io/apimachinery v0.18.2 h1:44CmtbmkzVDAhCpRVSiP2R5PPrC2RtlIv/MoB8xpdRA= k8s.io/apimachinery v0.18.2/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftcA= +k8s.io/apimachinery v0.20.10 h1:GcFwz5hsGgKLohcNgv8GrInk60vUdFgBXW7uOY1i1YM= +k8s.io/apimachinery v0.20.10/go.mod h1:kQa//VOAwyVwJ2+L9kOREbsnryfsGSkSM1przND4+mw= k8s.io/client-go v0.15.8 h1:lJI9P2x1MSW/bBXdNg2RofPRfXzt0vXZV+TObWBLmj0= k8s.io/client-go v0.15.8/go.mod h1:SEnLUQEOUlhdOrRylv1vS03YStlvx/9zhOPWoCLN/RY= k8s.io/client-go v0.18.2 h1:aLB0iaD4nmwh7arT2wIn+lMnAq7OswjaejkQ8p9bBYE= k8s.io/client-go v0.18.2/go.mod h1:Xcm5wVGXX9HAA2JJ2sSBUn3tCJ+4SVlCbl2MNNv+CIU= +k8s.io/client-go v0.20.10 h1:TgAL2pqcNWMH4eZoS9Uw0BLh2lu5a2A4pmegjp5pmsk= +k8s.io/client-go v0.20.10/go.mod h1:fFg+aLoasv/R+xiVaWjxeqGFYltzgQcOQzkFaSRfnJ0= k8s.io/code-generator v0.15.8 h1:Y2WfOZDKz1W9A8/408OUBqWMMVfCduCF8U8mWZYN4fc= k8s.io/code-generator v0.15.8/go.mod h1:G8bQwmHm2eafm5bgtX67XDZQ8CWKSGu9DekI+yN4Y5I= k8s.io/code-generator v0.18.2 h1:C1Nn2JiMf244CvBDKVPX0W2mZFJkVBg54T8OV7/Imso= k8s.io/code-generator v0.18.2/go.mod h1:+UHX5rSbxmR8kzS+FAv7um6dtYrZokQvjHpDSYRVkTc= +k8s.io/code-generator v0.20.10 h1:xENIQkVW8G2chwm0/HNwNIR3gcbF2XADK+jVS9/UCTE= +k8s.io/code-generator v0.20.10/go.mod h1:i6FmG+QxaLxvJsezvZp0q/gAEzzOz3U53KFibghWToU= k8s.io/gengo v0.0.0-20190116091435-f8a0810f38af h1:SwjZbO0u5ZuaV6TRMWOGB40iaycX8sbdMQHtjNZ19dk= k8s.io/gengo v0.0.0-20190116091435-f8a0810f38af/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= k8s.io/gengo v0.0.0-20200114144118-36b2048a9120 h1:RPscN6KhmG54S33L+lr3GS+oD1jmchIU0ll519K6FA4= k8s.io/gengo v0.0.0-20200114144118-36b2048a9120/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/gengo v0.0.0-20201113003025-83324d819ded h1:JApXBKYyB7l9xx+DK7/+mFjC7A9Bt5A93FPvFD0HIFE= +k8s.io/gengo v0.0.0-20201113003025-83324d819ded/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= k8s.io/klog v0.3.1 h1:RVgyDHY/kFKtLqh67NvEWIgkMneNoIrdkN0CxDSQc68= k8s.io/klog v0.3.1/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= k8s.io/klog v1.0.0 h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8= k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= +k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= +k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= +k8s.io/klog/v2 v2.4.0 h1:7+X0fUguPyrKEC4WjH8iGDg3laWgMo5tMnRTIGTTxGQ= +k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30 h1:TRb4wNWoBVrH9plmkp2q86FIDppkbrEXdXlxU3a3BMI= k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30/go.mod h1:BXM9ceUBTj2QnfH2MK1odQs778ajze1RxcmP6S8RVVc= k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c h1:/KUFqjjqAcY4Us6luF5RDNZ16KJtb49HfR3ZHB9qYXM= k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E= +k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd h1:sOHNzJIkytDF6qadMNKhhDRpc6ODik8lVC6nOur7B2c= +k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= k8s.io/utils v0.0.0-20190221042446-c2654d5206da h1:ElyM7RPonbKnQqOcw7dG2IK5uvQQn3b/WPHqD5mBvP4= k8s.io/utils v0.0.0-20190221042446-c2654d5206da/go.mod h1:8k8uAuAQ0rXslZKaEWd0c3oVhZz7sSzSiPnVZayjIX0= k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89 h1:d4vVOjXm687F1iLSP2q3lyPPuyvTUt3aVoBpi2DqRsU= k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= +k8s.io/utils v0.0.0-20201110183641-67b214c5f920 h1:CbnUZsM497iRC5QMVkHwyl8s2tB3g7yaSHkYPkpgelw= +k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs= modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200116222232-67a7b8c61874/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= sigs.k8s.io/structured-merge-diff/v3 v3.0.0 h1:dOmIZBMfhcHS09XZkMyUgkq5trg3/jRyJYFZUiaOp8E= sigs.k8s.io/structured-merge-diff/v3 v3.0.0/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= +sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= +sigs.k8s.io/structured-merge-diff/v4 v4.1.2 h1:Hr/htKFmJEbtMgS/UD0N+gtgctAqz81t3nu+sPzynno= +sigs.k8s.io/structured-merge-diff/v4 v4.1.2/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= sigs.k8s.io/yaml v1.1.0 h1:4A07+ZFc2wgJwo8YNlQpr1rVlgUDlxXHhPJciaPY5gs= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q= diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index d7fb6e4..1f7d32e 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/policy/v1alpha1/podunavailablebudget_types.go b/policy/v1alpha1/podunavailablebudget_types.go index 0ace741..4d07eb3 100644 --- a/policy/v1alpha1/podunavailablebudget_types.go +++ b/policy/v1alpha1/podunavailablebudget_types.go @@ -79,7 +79,7 @@ type PodUnavailableBudgetStatus struct { // DesiredAvailable minimum desired number of available pods DesiredAvailable int32 `json:"desiredAvailable"` - // TotalReplicas total number of pods counted by this budget + // TotalReplicas total number of pods counted by this unavailable budget TotalReplicas int32 `json:"totalReplicas"` } diff --git a/policy/v1alpha1/zz_generated.deepcopy.go b/policy/v1alpha1/zz_generated.deepcopy.go index bea18cd..1fe159a 100644 --- a/policy/v1alpha1/zz_generated.deepcopy.go +++ b/policy/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2020 The Kruise Authors. +Copyright 2021 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.