Skip to content

Commit e6fea10

Browse files
1gtmSuperm4n97
andauthored
Use Go 1.23 (#14)
* Use Go 1.23 Signed-off-by: 1gtm <1gtm@appscode.com> * Fix linter Signed-off-by: rasel <rasel@appscode.com> --------- Signed-off-by: 1gtm <1gtm@appscode.com> Signed-off-by: rasel <rasel@appscode.com> Co-authored-by: rasel <rasel@appscode.com>
1 parent f4c5641 commit e6fea10

File tree

7 files changed

+12
-14
lines changed

7 files changed

+12
-14
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ concurrency:
1616
jobs:
1717
build:
1818
name: Build
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-24.04
2020
steps:
2121

22-
- name: Set up Go 1.20
22+
- name: Set up Go 1.23
2323
uses: actions/setup-go@v1
2424
with:
25-
go-version: '1.20'
25+
go-version: '1.23'
2626
id: go
2727

2828
- uses: actions/checkout@v2

.github/workflows/release-tracker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-24.04
1515

1616
steps:
1717
- uses: actions/checkout@v1

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
jobs:
1515
build:
1616
name: Build
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-24.04
1818
steps:
1919
- uses: actions/checkout@v1
2020

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ TAG := $(VERSION)_$(OS)_$(ARCH)
7777
TAG_PROD := $(TAG)
7878
TAG_DBG := $(VERSION)-dbg_$(OS)_$(ARCH)
7979

80-
GO_VERSION ?= 1.22
80+
GO_VERSION ?= 1.23
8181
BUILD_IMAGE ?= ghcr.io/appscode/golang-dev:$(GO_VERSION)
82-
CHART_TEST_IMAGE ?= quay.io/helmpack/chart-testing:v3.5.1
82+
CHART_TEST_IMAGE ?= quay.io/helmpack/chart-testing:v3.11.0
8383

8484
OUTBIN = bin/$(BIN)-$(OS)-$(ARCH)
8585
ifeq ($(OS),windows)

pkg/controller/aws.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func deleteAwsInternetGateway(c *ec2.EC2, gatewayId, vpcId string) error {
230230
})
231231
if err != nil {
232232
if strings.Contains(err.Error(), "does not exist") {
233-
klog.Warningf(err.Error())
233+
klog.Warning(err.Error())
234234
return nil
235235
}
236236
return err
@@ -280,7 +280,7 @@ func (r *MachineReconciler) deleteAwsSubnet(c *ec2.EC2, subnetId string) error {
280280
})
281281
if err != nil {
282282
if strings.Contains(err.Error(), "does not exist") {
283-
klog.Warningf(err.Error())
283+
klog.Warning(err.Error())
284284
return nil
285285
}
286286
return err
@@ -379,7 +379,7 @@ func (r *MachineReconciler) deleteAwsVpc(c *ec2.EC2, vpcID string) error {
379379
})
380380
if err != nil {
381381
if strings.Contains(err.Error(), "does not exist") {
382-
klog.Warningf(err.Error())
382+
klog.Warning(err.Error())
383383
return nil
384384
}
385385
return err
@@ -408,7 +408,7 @@ func deleteSecurityGroup(c *ec2.EC2, vpcId string) error {
408408
GroupId: sg.GroupId,
409409
})
410410
if err != nil {
411-
klog.Warningf(fmt.Sprintf("failed to delete security group: %s", *sg.GroupId))
411+
klog.Warningf("failed to delete security group: %s", *sg.GroupId)
412412
}
413413
klog.Infof("%s deleted", *sg.GroupId)
414414
}

pkg/controller/machine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (r *MachineReconciler) createMachine() error {
7171
if err != nil && !strings.Contains(commandError.String(), "already exists") {
7272
r.Log.Info("Error creating docker machine", "Error: ", commandError.String(), "Output: ", commandOutput.String())
7373
cutil.MarkFalse(r.machineObj, api.MachineConditionTypeMachineReady, api.ReasonMachineCreationFailed, kmapi.ConditionSeverityError,
74-
fmt.Sprintf("Unable to create docker machine. err : %s", err.Error()))
74+
"unable to create docker machine. err: %s", err.Error())
7575

7676
return err
7777
}

pkg/script/ami.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
18-
1917
regions=$(aws ec2 describe-regions --query "Regions[].RegionName" --output json | jq -r '.[]')
2018

2119
for region in $regions; do

0 commit comments

Comments
 (0)