Skip to content

Commit

Permalink
update go mod, remove dep replace (#1527)
Browse files Browse the repository at this point in the history
Signed-off-by: jicheng.sk <jicheng.sk@alibaba-inc.com>
Co-authored-by: jicheng.sk <jicheng.sk@alibaba-inc.com>
  • Loading branch information
BH4AWS and BH4AWS committed Mar 20, 2024
1 parent fd7e86e commit d3cae3d
Show file tree
Hide file tree
Showing 173 changed files with 13,613 additions and 807 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GOOS ?= $(shell go env GOOS)

# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
# Run `setup-envtest list` to list available versions.
ENVTEST_K8S_VERSION ?= 1.24.2
ENVTEST_K8S_VERSION ?= 1.26.0

# Setting SHELL to bash allows bash commands to be executed by recipes.
# This is a requirement for 'setup-envtest.sh' in the test target.
Expand Down Expand Up @@ -96,13 +96,13 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi

CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
controller-gen: ## Download controller-gen locally if necessary.
# controller-gen@v0.9.0 comply with k8s.io/api v0.24.x
ifeq ("$(shell $(CONTROLLER_GEN) --version 2> /dev/null)", "Version: v0.9.0")

# controller-gen@v0.11.0 comply with k8s.io/api v0.26.x
ifeq ("$(shell $(CONTROLLER_GEN) --version 2> /dev/null)", "Version: v0.11.0")
else
rm -rf $(CONTROLLER_GEN)
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.0)
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.11.0)
endif

KUSTOMIZE = $(shell pwd)/bin/kustomize
kustomize: ## Download kustomize locally if necessary.
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/v4@v4.5.5)
Expand Down
3 changes: 2 additions & 1 deletion config/crd/bases/apps.kruise.io_advancedcronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: advancedcronjobs.apps.kruise.io
spec:
Expand Down Expand Up @@ -254,6 +254,7 @@ spec:
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type: string
type: object
x-kubernetes-map-type: atomic
type: array
lastScheduleTime:
description: Information when was the last time the job was successfully
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/apps.kruise.io_broadcastjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: broadcastjobs.apps.kruise.io
spec:
Expand Down
4 changes: 3 additions & 1 deletion config/crd/bases/apps.kruise.io_clonesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: clonesets.apps.kruise.io
spec:
Expand Down Expand Up @@ -239,6 +239,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
template:
description: Template describes the pods that will be created.
x-kubernetes-preserve-unknown-fields: true
Expand Down Expand Up @@ -373,6 +374,7 @@ spec:
requirements are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
weight:
description: Weight associated with matching the corresponding
matchExpressions, in the range 1-100.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: containerrecreaterequests.apps.kruise.io
spec:
Expand Down
4 changes: 3 additions & 1 deletion config/crd/bases/apps.kruise.io_daemonsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: daemonsets.apps.kruise.io
spec:
Expand Down Expand Up @@ -210,6 +210,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
template:
description: 'An object that describes the pod that will be created.
The DaemonSet will create exactly one copy of this pod on every
Expand Down Expand Up @@ -332,6 +333,7 @@ spec:
only "value". The requirements are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
type: object
type:
description: Type of daemon set update. Can be "RollingUpdate"
Expand Down
3 changes: 2 additions & 1 deletion config/crd/bases/apps.kruise.io_ephemeraljobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: ephemeraljobs.apps.kruise.io
spec:
Expand Down Expand Up @@ -137,6 +137,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
template:
description: Template describes the ephemeral container that will
be created.
Expand Down
4 changes: 3 additions & 1 deletion config/crd/bases/apps.kruise.io_imagelistpulljobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: imagelistpulljobs.apps.kruise.io
spec:
Expand Down Expand Up @@ -147,6 +147,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
pullPolicy:
description: PullPolicy is an optional field to set parameters of
the pulling task. If not specified, the system will use the default
Expand Down Expand Up @@ -235,6 +236,7 @@ spec:
type: string
type: array
type: object
x-kubernetes-map-type: atomic
required:
- completionPolicy
- images
Expand Down
4 changes: 3 additions & 1 deletion config/crd/bases/apps.kruise.io_imagepulljobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: imagepulljobs.apps.kruise.io
spec:
Expand Down Expand Up @@ -153,6 +153,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
pullPolicy:
description: PullPolicy is an optional field to set parameters of
the pulling task. If not specified, the system will use the default
Expand Down Expand Up @@ -241,6 +242,7 @@ spec:
type: string
type: array
type: object
x-kubernetes-map-type: atomic
required:
- completionPolicy
- image
Expand Down
3 changes: 2 additions & 1 deletion config/crd/bases/apps.kruise.io_nodeimages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: nodeimages.apps.kruise.io
spec:
Expand Down Expand Up @@ -179,6 +179,7 @@ spec:
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type: string
type: object
x-kubernetes-map-type: atomic
type: array
pullPolicy:
description: PullPolicy is an optional field to set parameters
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/apps.kruise.io_nodepodprobes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: nodepodprobes.apps.kruise.io
spec:
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/apps.kruise.io_persistentpodstates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: persistentpodstates.apps.kruise.io
spec:
Expand Down
3 changes: 2 additions & 1 deletion config/crd/bases/apps.kruise.io_podprobemarkers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: podprobemarkers.apps.kruise.io
spec:
Expand Down Expand Up @@ -290,6 +290,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
required:
- probes
- selector
Expand Down
3 changes: 2 additions & 1 deletion config/crd/bases/apps.kruise.io_resourcedistributions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: resourcedistributions.apps.kruise.io
spec:
Expand Down Expand Up @@ -142,6 +142,7 @@ spec:
"value". The requirements are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
type: object
required:
- resource
Expand Down
9 changes: 8 additions & 1 deletion config/crd/bases/apps.kruise.io_sidecarsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: sidecarsets.apps.kruise.io
spec:
Expand Down Expand Up @@ -106,6 +106,7 @@ spec:
required:
- fieldPath
type: object
x-kubernetes-map-type: atomic
type: object
type: object
type: array
Expand Down Expand Up @@ -141,6 +142,7 @@ spec:
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
x-kubernetes-map-type: atomic
type: array
initContainers:
description: InitContainers is the list of init containers to be injected
Expand Down Expand Up @@ -195,6 +197,7 @@ spec:
required:
- fieldPath
type: object
x-kubernetes-map-type: atomic
type: object
type: object
type: array
Expand Down Expand Up @@ -299,6 +302,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
patchPodMetadata:
description: SidecarSet support to inject & in-place update metadata
in pod.
Expand Down Expand Up @@ -364,6 +368,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
updateStrategy:
description: The sidecarset updateStrategy to use to replace existing
pods with new ones.
Expand Down Expand Up @@ -472,6 +477,7 @@ spec:
requirements are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
weight:
description: Weight associated with matching the corresponding
matchExpressions, in the range 1-100.
Expand Down Expand Up @@ -548,6 +554,7 @@ spec:
"value". The requirements are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
type:
description: Type is NotUpdate, the SidecarSet don't update the
injected pods, it will only inject sidecar container into the
Expand Down
6 changes: 5 additions & 1 deletion config/crd/bases/apps.kruise.io_statefulsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
controller-gen.kubebuilder.io/version: v0.11.0
creationTimestamp: null
name: statefulsets.apps.kruise.io
spec:
Expand Down Expand Up @@ -145,6 +145,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
serviceName:
description: 'serviceName is the name of the service that governs
this StatefulSet. This service must exist before the StatefulSet,
Expand Down Expand Up @@ -310,6 +311,7 @@ spec:
only "value". The requirements are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
weight:
description: Weight associated with matching
the corresponding matchExpressions, in the
Expand Down Expand Up @@ -687,6 +689,7 @@ spec:
are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
serviceName:
description: 'serviceName is the name of the service that governs
this StatefulSet. This service must exist before the StatefulSet,
Expand Down Expand Up @@ -852,6 +855,7 @@ spec:
only "value". The requirements are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
weight:
description: Weight associated with matching
the corresponding matchExpressions, in the
Expand Down
Loading

0 comments on commit d3cae3d

Please sign in to comment.