Skip to content

Commit

Permalink
chore(upgrades): Update OS to latest supported releases (#687)
Browse files Browse the repository at this point in the history
* chore(upgrades): Update OS to latest supported releases

* chore(upgrades): Update OS to latest supported releases
  • Loading branch information
jasonmcintosh authored Nov 19, 2024
1 parent 88ad60b commit 609df99
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.slim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.16
FROM alpine:3.20
LABEL maintainer="sig-platform@spinnaker.io"
RUN apk --no-cache add --update bash curl openjdk17-jre
RUN addgroup -S -g 10111 spinnaker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ object AmazonTagExclusionPolicyTest {
@Test
fun `should handle high precision date times`() {
val now = LocalDateTime.ofInstant(Instant.from(DateTimeFormatter.ISO_INSTANT.parse("2024-11-15T23:42:18.592945345Z")), ZoneId.of("America/Chicago"))
val resources = listOf(
AwsTestResource(
id = "1",
creationDate = now.toString()
Expand All @@ -140,26 +139,7 @@ object AmazonTagExclusionPolicyTest {
value = listOf(
mapOf("expiration_time" to "10d")
)
),
AwsTestResource(
id = "2",
creationDate = now.toString()
).withDetail(
name = "tags",
value = listOf(
mapOf("expiration_time" to "9d")
)
)
)

clock.incrementBy(Duration.ofDays(10))

resources.filter {
subject.apply(it, emptyList()) == null
}.let { filteredResources ->
filteredResources.size shouldMatch equalTo(1)
filteredResources.first().resourceId shouldMatch equalTo("2")
}
}
}

Expand Down

0 comments on commit 609df99

Please sign in to comment.