Skip to content

Commit

Permalink
Merge pull request #810 from alexandrevilain/bump/golang/v1.23.1
Browse files Browse the repository at this point in the history
chore(deps): bump golang to v1.23.1 and dependencies (k8s v1.31.x and temporal v1.24.x)
  • Loading branch information
alexandrevilain authored Sep 28, 2024
2 parents 5f11764 + 99bf0ec commit bbb8f4b
Show file tree
Hide file tree
Showing 22 changed files with 515 additions and 460 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defaults:
shell: bash

env:
GOLANG_CI_VERSION: v1.59.1
GOLANG_CI_VERSION: v1.61.0

jobs:
license:
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ linters:
- durationcheck
- errcheck
- errchkjson
- exportloopref
- copyloopvar
- ginkgolinter
- goconst
- gocritic
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM --platform=${BUILDPLATFORM} golang:1.22.7 AS builder
FROM --platform=${BUILDPLATFORM} golang:1.23.1 AS builder

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ HELM_DOCS ?= $(LOCALBIN)/helm-docs

## Tool Versions
KUSTOMIZE_VERSION ?= v4.5.7
OPERATOR_SDK_VERSION ?= 1.30.0
CONTROLLER_TOOLS_VERSION ?= v0.15.0
OPERATOR_SDK_VERSION ?= 1.37.0
CONTROLLER_TOOLS_VERSION ?= v0.16.3
GO_LICENSER_VERSION ?= v0.4.0
GEN_CRD_API_REFERENCE_DOCS_VERSION ?= 3f29e6853552dcf08a8e846b1225f275ed0f3e3b
GOLANGCI_LINT_VERSION ?= v1.59.1
GOLANGCI_LINT_VERSION ?= v1.61.0
YQ_VERSION ?= v4.30.6
KIND_WITH_REGISTRY_VERSION ?= 0.17.0
HELM_DOCS_VERSION ?= v1.12.0
Expand Down
30 changes: 15 additions & 15 deletions api/v1beta1/temporalcluster_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,27 +89,27 @@ func (c *TemporalCluster) Default() {
c.Spec.Services.Frontend.Replicas = ptr.To[int32](1)
}
if c.Spec.Services.Frontend.Port == nil {
c.Spec.Services.Frontend.Port = ptr.To(7233)
c.Spec.Services.Frontend.Port = ptr.To[int32](7233)
}
if c.Spec.Services.Frontend.MembershipPort == nil {
c.Spec.Services.Frontend.MembershipPort = ptr.To(6933)
c.Spec.Services.Frontend.MembershipPort = ptr.To[int32](6933)
}
if c.Spec.Services.Frontend.HTTPPort == nil {
c.Spec.Services.Frontend.HTTPPort = ptr.To(7243)
c.Spec.Services.Frontend.HTTPPort = ptr.To[int32](7243)
}
// Internal Frontend specs
if c.Spec.Services.InternalFrontend.IsEnabled() {
if c.Spec.Services.InternalFrontend.Replicas == nil {
c.Spec.Services.InternalFrontend.Replicas = ptr.To[int32](1)
}
if c.Spec.Services.InternalFrontend.Port == nil {
c.Spec.Services.InternalFrontend.Port = ptr.To(7236)
c.Spec.Services.InternalFrontend.Port = ptr.To[int32](7236)
}
if c.Spec.Services.InternalFrontend.MembershipPort == nil {
c.Spec.Services.InternalFrontend.MembershipPort = ptr.To(6936)
c.Spec.Services.InternalFrontend.MembershipPort = ptr.To[int32](6936)
}
if c.Spec.Services.InternalFrontend.HTTPPort == nil {
c.Spec.Services.InternalFrontend.HTTPPort = ptr.To(0)
c.Spec.Services.InternalFrontend.HTTPPort = ptr.To[int32](0)
}
}
// History specs
Expand All @@ -120,13 +120,13 @@ func (c *TemporalCluster) Default() {
c.Spec.Services.History.Replicas = ptr.To[int32](1)
}
if c.Spec.Services.History.Port == nil {
c.Spec.Services.History.Port = ptr.To(7234)
c.Spec.Services.History.Port = ptr.To[int32](7234)
}
if c.Spec.Services.History.MembershipPort == nil {
c.Spec.Services.History.MembershipPort = ptr.To(6934)
c.Spec.Services.History.MembershipPort = ptr.To[int32](6934)
}
if c.Spec.Services.History.HTTPPort == nil {
c.Spec.Services.History.HTTPPort = ptr.To(0)
c.Spec.Services.History.HTTPPort = ptr.To[int32](0)
}
// Matching specs
if c.Spec.Services.Matching == nil {
Expand All @@ -136,13 +136,13 @@ func (c *TemporalCluster) Default() {
c.Spec.Services.Matching.Replicas = ptr.To[int32](1)
}
if c.Spec.Services.Matching.Port == nil {
c.Spec.Services.Matching.Port = ptr.To(7235)
c.Spec.Services.Matching.Port = ptr.To[int32](7235)
}
if c.Spec.Services.Matching.MembershipPort == nil {
c.Spec.Services.Matching.MembershipPort = ptr.To(6935)
c.Spec.Services.Matching.MembershipPort = ptr.To[int32](6935)
}
if c.Spec.Services.Matching.HTTPPort == nil {
c.Spec.Services.Matching.HTTPPort = ptr.To(0)
c.Spec.Services.Matching.HTTPPort = ptr.To[int32](0)
}
// Worker specs
if c.Spec.Services.Worker == nil {
Expand All @@ -152,13 +152,13 @@ func (c *TemporalCluster) Default() {
c.Spec.Services.Worker.Replicas = ptr.To[int32](1)
}
if c.Spec.Services.Worker.Port == nil {
c.Spec.Services.Worker.Port = ptr.To(7239)
c.Spec.Services.Worker.Port = ptr.To[int32](7239)
}
if c.Spec.Services.Worker.MembershipPort == nil {
c.Spec.Services.Worker.MembershipPort = ptr.To(6939)
c.Spec.Services.Worker.MembershipPort = ptr.To[int32](6939)
}
if c.Spec.Services.Worker.HTTPPort == nil {
c.Spec.Services.Worker.HTTPPort = ptr.To(0)
c.Spec.Services.Worker.HTTPPort = ptr.To[int32](0)
}

if c.Spec.Persistence.DefaultStore != nil {
Expand Down
8 changes: 4 additions & 4 deletions api/v1beta1/temporalcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,20 @@ type ServiceSpec struct {
// 7235 for Matching service
// 7239 for Worker service
// +optional
Port *int `json:"port"`
Port *int32 `json:"port"`
// MembershipPort defines a custom membership port for the service.
// Default values are:
// 6933 for Frontend service
// 6934 for History service
// 6935 for Matching service
// 6939 for Worker service
// +optional
MembershipPort *int `json:"membershipPort"`
MembershipPort *int32 `json:"membershipPort"`
// HTTPPort defines a custom http port for the service.
// Default values are:
// 7243 for Frontend service
// +optional
HTTPPort *int `json:"httpPort"`
HTTPPort *int32 `json:"httpPort"`
// Number of desired replicas for the service. Default to 1.
// +kubebuilder:validation:Minimum=1
// +optional
Expand Down Expand Up @@ -739,7 +739,7 @@ type PrometheusScrapeConfigServiceMonitor struct {
Override *monitoringv1.ServiceMonitorSpec `json:"override,omitempty"`
// MetricRelabelConfigs to apply to samples before ingestion.
// +optional
MetricRelabelConfigs []*monitoringv1.RelabelConfig `json:"metricRelabelings,omitempty"`
MetricRelabelConfigs []monitoringv1.RelabelConfig `json:"metricRelabelings,omitempty"`
}

// PrometheusScrapeConfig is the configuration for making prometheus scrape components metrics.
Expand Down
14 changes: 5 additions & 9 deletions api/v1beta1/zz_generated.deepcopy.go

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

4 changes: 1 addition & 3 deletions config/crd/bases/temporal.io_temporalclusterclients.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.15.0
controller-gen.kubebuilder.io/version: v0.16.3
name: temporalclusterclients.temporal.io
spec:
group: temporal.io
Expand Down Expand Up @@ -71,9 +71,7 @@ spec:
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
Expand Down
Loading

0 comments on commit bbb8f4b

Please sign in to comment.