Skip to content

Commit

Permalink
fix: ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Oct 21, 2023
1 parent 3b6433b commit 0543c6b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions Domain/Model/Template.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ public record TemplatePrincipal
{
public required Guid Id { get; init; }

// User Controlled, only on create
public required TemplateProperty Prop { get; init; }

// Telemetry, non-user controlled
public required TemplateInfo Info { get; init; }

Expand All @@ -32,20 +29,23 @@ public record TemplateInfo

public record TemplateMetadata
{
public required string Name { get; init; }
public required string Project { get; init; }
public required string Source { get; init; }
public required string Email { get; init; }
public required string Tags { get; init; }
public required string[] Tags { get; init; }
public required string Description { get; init; }
public required string Readme { get; init; }
}

public record TemplateProperty
public record TemplateVersionPrincipal
{
public required string Name { get; init; }
public required Guid Id { get; init; }

public required uint Version { get; init; }

public required DateTime CreatedAt { get; init; }

public required string BlobDockerReference { get; init; }

public required string BlobDockerSha { get; init; }
Expand Down
4 changes: 2 additions & 2 deletions infra/root_chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Root Chart to a single Service
| api.image.repository | string | `"sulfone-zinc-api"` | |
| api.image.tag | string | `""` | |
| api.imagePullSecrets | list | `[]` | |
| api.ingress.className | string | `"nginx"` | |
| api.ingress.enabled | bool | `true` | |
| api.ingress.hosts[0].host | string | `"api.zinc.sulfone.lapras.lvh.me"` | |
| api.ingress.hosts[0].paths[0].path | string | `"/"` | |
| api.ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| api.ingress.ingressClass | string | `"traefik"` | |
| api.ingress.tls[0].hosts[0] | string | `"api.zinc.sulfone.lapras.lvh.me"` | |
| api.ingress.tls[0].issuerRef | string | `"sample"` | |
| api.ingress.tls[0].secretName | string | `"sample"` | |
Expand All @@ -47,7 +47,7 @@ Root Chart to a single Service
| api.readinessProbe.httpGet.path | string | `"/"` | |
| api.readinessProbe.httpGet.port | string | `"http"` | |
| api.replicaCount | int | `1` | |
| api.resources.limits.cpu | int | `1` | |
| api.resources.limits.cpu | string | `"1"` | |
| api.resources.limits.memory | string | `"1Gi"` | |
| api.resources.requests.cpu | string | `"100m"` | |
| api.resources.requests.memory | string | `"128Mi"` | |
Expand Down
2 changes: 1 addition & 1 deletion infra/root_chart/values.lapras.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ api:

ingress:
enabled: true
ingressClass: traefik
className: traefik
hosts:
- host: api.zinc.sulfone.lapras.lvh.me
paths:
Expand Down
2 changes: 1 addition & 1 deletion infra/root_chart/values.pichu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ api:

ingress:
enabled: true
ingressClass: nginx
className: nginx
annotations:
cert-manager.io/cluster-issuer: "entei-zinc-letsencrypt-issuer"
hosts:
Expand Down
2 changes: 1 addition & 1 deletion infra/root_chart/values.tauros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ api:

ingress:
enabled: true
ingressClass: traefik
className: traefik
hosts:
- host: api.zinc.sulfone.tauros.lvh.me
paths:
Expand Down
4 changes: 2 additions & 2 deletions infra/root_chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ api:

ingress:
enabled: true
ingressClass: traefik
className: nginx
hosts:
- host: api.zinc.sulfone.lapras.lvh.me
paths:
Expand All @@ -74,7 +74,7 @@ api:

resources:
limits:
cpu: 1
cpu: "1"
memory: 1Gi
requests:
cpu: 100m
Expand Down

0 comments on commit 0543c6b

Please sign in to comment.