Skip to content

Commit

Permalink
Merge pull request #260 from projectsyn/update-go-dependencies
Browse files Browse the repository at this point in the history
Update Go and dependencies
  • Loading branch information
bastjan authored May 24, 2024
2 parents f16342a + 0f77948 commit fd77953
Show file tree
Hide file tree
Showing 19 changed files with 761 additions and 1,137 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test: ## Run tests
go test ./... -coverprofile cover.out

# See https://storage.googleapis.com/kubebuilder-tools/ for list of supported K8s versions
integration-test: export ENVTEST_K8S_VERSION = 1.21.x
integration-test: export ENVTEST_K8S_VERSION = 1.27.x
integration-test: export KUBEBUILDER_ATTACH_CONTROL_PLANE_OUTPUT = $(INTEGRATION_TEST_DEBUG_OUTPUT)
integration-test: generate $(testbin_created) ## Run integration tests with envtest
$(setup-envtest) use '$(ENVTEST_K8S_VERSION)!'
Expand Down
2 changes: 1 addition & 1 deletion Makefile.vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ BATS_FILES ?= .

INTEGRATION_TEST_DEBUG_OUTPUT ?= false

KUSTOMIZE ?= go run sigs.k8s.io/kustomize/kustomize/v3
KUSTOMIZE ?= go run sigs.k8s.io/kustomize/kustomize/v5

# Image URL to use all building/pushing image targets
DOCKER_IMG ?= docker.io/projectsyn/lieutenant-operator:$(IMG_TAG)
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.

91 changes: 49 additions & 42 deletions config/crd/bases/syn.tools_clusters.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
controller-gen.kubebuilder.io/version: v0.15.0
name: clusters.syn.tools
spec:
group: syn.tools
Expand All @@ -32,35 +30,40 @@ spec:
description: Cluster is the Schema for the clusters API
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
spec:
description: ClusterSpec defines the desired state of Cluster
properties:
creationPolicy:
description: 'CreationPolicy defines how the external resources should
be treated upon CR creation. Create: will only create a new external
resource and will not manage already existing resources Adopt: will
create a new external resource or will adopt and manage an already
existing resource'
description: |-
CreationPolicy defines how the external resources should be treated upon CR creation.
Create: will only create a new external resource and will not manage already existing resources
Adopt: will create a new external resource or will adopt and manage an already existing resource
enum:
- Create
- Adopt
type: string
deletionPolicy:
description: 'DeletionPolicy defines how the external resources should
be treated upon CR deletion. Retain: will not delete any external
resources Delete: will delete the external resources Archive: will
archive the external resources, if it supports that'
description: |-
DeletionPolicy defines how the external resources should be treated upon CR deletion.
Retain: will not delete any external resources
Delete: will delete the external resources
Archive: will archive the external resources, if it supports that
enum:
- Delete
- Retain
Expand All @@ -86,30 +89,30 @@ spec:
information
properties:
name:
description: Name is unique within a namespace to reference
description: name is unique within a namespace to reference
a secret resource.
type: string
namespace:
description: Namespace defines the space within which the
description: namespace defines the space within which the
secret name must be unique.
type: string
type: object
x-kubernetes-map-type: atomic
creationPolicy:
description: 'CreationPolicy defines how the external resources
should be treated upon CR creation. Create: will only create
a new external resource and will not manage already existing
resources Adopt: will create a new external resource or will
adopt and manage an already existing resource'
description: |-
CreationPolicy defines how the external resources should be treated upon CR creation.
Create: will only create a new external resource and will not manage already existing resources
Adopt: will create a new external resource or will adopt and manage an already existing resource
enum:
- Create
- Adopt
type: string
deletionPolicy:
description: 'DeletionPolicy defines how the external resources
should be treated upon CR deletion. Retain: will not delete
any external resources Delete: will delete the external resources
Archive: will archive the external resources, if it supports
that'
description: |-
DeletionPolicy defines how the external resources should be treated upon CR deletion.
Retain: will not delete any external resources
Delete: will delete the external resources
Archive: will archive the external resources, if it supports that
enum:
- Delete
- Retain
Expand Down Expand Up @@ -154,8 +157,9 @@ spec:
templateFiles:
additionalProperties:
type: string
description: TemplateFiles is a list of files that should be pushed
to the repository after its creation.
description: |-
TemplateFiles is a list of files that should be pushed to the repository
after its creation.
type: object
type: object
gitRepoURL:
Expand All @@ -177,10 +181,18 @@ spec:
to.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
TODO: Add other useful fields. apiVersion, kind, uid?
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
type: string
type: object
x-kubernetes-map-type: atomic
tokenLifeTime:
description: TokenLifetime set the token lifetime
type: string
Expand All @@ -200,8 +212,9 @@ spec:
or was already used.
type: boolean
validUntil:
description: ValidUntil timespan how long the token is valid.
If the token is used after this timestamp it will be rejected.
description: |-
ValidUntil timespan how long the token is valid. If the token is
used after this timestamp it will be rejected.
format: date-time
type: string
type: object
Expand All @@ -216,9 +229,3 @@ spec:
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
73 changes: 40 additions & 33 deletions config/crd/bases/syn.tools_gitrepos.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
controller-gen.kubebuilder.io/version: v0.15.0
name: gitrepos.syn.tools
spec:
group: syn.tools
Expand Down Expand Up @@ -35,14 +33,19 @@ spec:
description: GitRepo is the Schema for the gitrepos API
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 @@ -54,29 +57,30 @@ spec:
information
properties:
name:
description: Name is unique within a namespace to reference a
description: name is unique within a namespace to reference a
secret resource.
type: string
namespace:
description: Namespace defines the space within which the secret
description: namespace defines the space within which the secret
name must be unique.
type: string
type: object
x-kubernetes-map-type: atomic
creationPolicy:
description: 'CreationPolicy defines how the external resources should
be treated upon CR creation. Create: will only create a new external
resource and will not manage already existing resources Adopt: will
create a new external resource or will adopt and manage an already
existing resource'
description: |-
CreationPolicy defines how the external resources should be treated upon CR creation.
Create: will only create a new external resource and will not manage already existing resources
Adopt: will create a new external resource or will adopt and manage an already existing resource
enum:
- Create
- Adopt
type: string
deletionPolicy:
description: 'DeletionPolicy defines how the external resources should
be treated upon CR deletion. Retain: will not delete any external
resources Delete: will delete the external resources Archive: will
archive the external resources, if it supports that'
description: |-
DeletionPolicy defines how the external resources should be treated upon CR deletion.
Retain: will not delete any external resources
Delete: will delete the external resources
Archive: will archive the external resources, if it supports that
enum:
- Delete
- Retain
Expand Down Expand Up @@ -120,17 +124,26 @@ spec:
templateFiles:
additionalProperties:
type: string
description: TemplateFiles is a list of files that should be pushed
to the repository after its creation.
description: |-
TemplateFiles is a list of files that should be pushed to the repository
after its creation.
type: object
tenantRef:
description: TenantRef references the tenant this repo belongs to
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
default: ""
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
TODO: Add other useful fields. apiVersion, kind, uid?
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
type: string
type: object
x-kubernetes-map-type: atomic
type: object
status:
description: GitRepoStatus defines the observed state of GitRepo
Expand All @@ -139,9 +152,9 @@ spec:
description: SSH HostKeys of the git server
type: string
phase:
description: Updated by Operator with current phase. The GitPhase
enum will be used for application logic as using it directly would
only print an integer.
description: |-
Updated by Operator with current phase. The GitPhase enum will be used for application logic
as using it directly would only print an integer.
type: string
type:
description: Type autodiscovered Git repo type. Same behaviour for
Expand All @@ -156,9 +169,3 @@ spec:
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Loading

0 comments on commit fd77953

Please sign in to comment.