Skip to content

Commit cbc85b9

Browse files
committed
Add UptimeImage property to SentryDeploymentConfig and update image replacement logic
1 parent a7f63a0 commit cbc85b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Entities/SentryDeploymentConfig.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public class SentryDeploymentConfig
2222
[Description("The image to use for Relay")]
2323
public string? RelayImage { get; set; }
2424

25+
[Description("The image to use for Uptime")]
26+
public string? UptimeImage { get; set; }
27+
2528
[Description("The image to use for Taskbroker")]
2629
public string? TaskbrokerImage { get; set; }
2730

@@ -80,6 +83,7 @@ public string ReplaceVariables(string yaml, string version)
8083
.Replace("$SENTRY_IMAGE", Image ?? $"{Registry + (Registry == null || Registry.EndsWith('/') ? "" : "/")}getsentry/sentry:{version}")
8184
.Replace("$SNUBA_IMAGE", SnubaImage ?? $"{Registry + (Registry == null || Registry.EndsWith('/') ? "" : "/")}getsentry/snuba:{version}")
8285
.Replace("$RELAY_IMAGE", RelayImage ?? $"{Registry + (Registry == null || Registry.EndsWith('/') ? "" : "/")}getsentry/relay:{version}")
86+
.Replace("$UPTIME_CHECKER_IMAGE", UptimeImage ?? $"{Registry + (Registry == null || Registry.EndsWith('/') ? "" : "/")}getsentry/uptime-checker:{version}")
8387
.Replace("$TASKBROKER_IMAGE", TaskbrokerImage ?? $"{Registry + (Registry == null || Registry.EndsWith('/') ? "" : "/")}getsentry/taskbroker:{version}")
8488
.Replace("$SYMBOLICATOR_IMAGE", SymbolicatorImage ?? $"{Registry + (Registry == null || Registry.EndsWith('/') ? "" : "/")}getsentry/symbolicator:{version}")
8589
.Replace("$VROOM_IMAGE", VroomImage ?? $"{Registry + (Registry == null || Registry.EndsWith('/') ? "" : "/")}getsentry/vroom:{version}")

0 commit comments

Comments
 (0)