Skip to content

Commit

Permalink
upgrade controller-gen v0.12.0 -> v0.14.0
Browse files Browse the repository at this point in the history
this fixes the segmentation fault bug on Apple M3 chips

Signed-off-by: Nima Kaviani <[email protected]>
  • Loading branch information
nimakaviani committed Mar 9, 2024
1 parent 988756c commit 8a63864
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
ENVTEST ?= $(LOCALBIN)/setup-envtest

## Tool Versions
CONTROLLER_TOOLS_VERSION ?= v0.12.0
CONTROLLER_TOOLS_VERSION ?= v0.14.0

.PHONY: fmt
fmt: ## Run go fmt against code.
Expand Down
1 change: 0 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 21 additions & 14 deletions pkg/controllers/resources/idpbuilder.cnoe.io_custompackages.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.12.0
controller-gen.kubebuilder.io/version: v0.14.0
name: custompackages.idpbuilder.cnoe.io
spec:
group: idpbuilder.cnoe.io
Expand All @@ -19,14 +19,19 @@ spec:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
Expand Down Expand Up @@ -60,12 +65,14 @@ spec:
- namespace
type: object
gitServerURL:
description: GitServerURL specifies the base URL for the git server
for API calls. for example, https://gitea.cnoe.localtest.me:8443
description: |-
GitServerURL specifies the base URL for the git server for API calls.
for example, https://gitea.cnoe.localtest.me:8443
type: string
internalGitServeURL:
description: InternalGitServeURL specifies the base URL for the git
server accessible within the cluster. for example, http://my-gitea-http.gitea.svc.cluster.local:3000
description: |-
InternalGitServeURL specifies the base URL for the git server accessible within the cluster.
for example, http://my-gitea-http.gitea.svc.cluster.local:3000
type: string
replicate:
default: false
Expand Down Expand Up @@ -96,9 +103,9 @@ spec:
type: object
type: array
synced:
description: A Custom package is considered synced when the in-cluster
repository url is set as the repository URL This only applies for
a package that references local directories
description: |-
A Custom package is considered synced when the in-cluster repository url is set as the repository URL
This only applies for a package that references local directories
type: boolean
type: object
type: object
Expand Down
25 changes: 15 additions & 10 deletions pkg/controllers/resources/idpbuilder.cnoe.io_gitrepositories.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.12.0
controller-gen.kubebuilder.io/version: v0.14.0
name: gitrepositories.idpbuilder.cnoe.io
spec:
group: idpbuilder.cnoe.io
Expand All @@ -19,14 +19,19 @@ spec:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
Expand Down Expand Up @@ -63,9 +68,9 @@ spec:
- nginx
type: string
path:
description: Path is the absolute path to directory that contains
Kustomize structure or raw manifests. This is required when
Type is set to local.
description: |-
Path is the absolute path to directory that contains Kustomize structure or raw manifests.
This is required when Type is set to local.
type: string
type:
default: embedded
Expand Down
25 changes: 15 additions & 10 deletions pkg/controllers/resources/idpbuilder.cnoe.io_localbuilds.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.12.0
controller-gen.kubebuilder.io/version: v0.14.0
name: localbuilds.idpbuilder.cnoe.io
spec:
group: idpbuilder.cnoe.io
Expand All @@ -19,14 +19,19 @@ spec:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
Expand All @@ -35,9 +40,9 @@ spec:
packageConfigs:
properties:
argoPackageConfigs:
description: ArgoPackageConfigSpec Allows for configuration of
the ArgoCD Installation. If no fields are specified then the
binary embedded resources will be used to intall ArgoCD.
description: |-
ArgoPackageConfigSpec Allows for configuration of the ArgoCD Installation.
If no fields are specified then the binary embedded resources will be used to intall ArgoCD.
properties:
enabled:
description: Enabled controls whether to install ArgoCD.
Expand Down

0 comments on commit 8a63864

Please sign in to comment.