WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 86 additions & 2 deletions .ko.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ platforms: [linux/amd64, linux/arm64]
env: [CGO_ENABLED=0]

builds:

- id: fault-quarantine
dir: fault-quarantine
main: .
Expand Down Expand Up @@ -69,7 +68,7 @@ builds:
org.opencontainers.image.version: "{{.Env.VERSION}}"
org.opencontainers.image.revision: "{{.Env.GIT_COMMIT}}"
org.opencontainers.image.created: "{{.Env.BUILD_DATE}}"

- id: csp-health-monitor
dir: health-monitors/csp-health-monitor
main: ./cmd/csp-health-monitor
Expand Down Expand Up @@ -155,6 +154,91 @@ builds:
org.opencontainers.image.revision: "{{.Env.GIT_COMMIT}}"
org.opencontainers.image.created: "{{.Env.BUILD_DATE}}"

- id: janitor-provider-aws
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of making one per CSP, can we make a single provider and switch based on env or something? This will result in an explosion of container images as we scale :)

dir: providers/aws
main: .
ldflags:
- "-s -w"
- "-X main.version={{.Env.VERSION}} -X main.commit={{.Env.GIT_COMMIT}} -X main.date={{.Env.BUILD_DATE}}"
annotations:
org.opencontainers.image.description: "AWS provider for the NVSentinel Janitor"
labels:
org.opencontainers.image.source: "https://github.com/nvidia/nvsentinel"
org.opencontainers.image.licenses: "Apache-2.0"
org.opencontainers.image.title: "janitor-provider-aws"
org.opencontainers.image.description: "AWS implementation of the CSP provider interface for Janitor"
org.opencontainers.image.version: "{{.Env.VERSION}}"
org.opencontainers.image.revision: "{{.Env.GIT_COMMIT}}"
org.opencontainers.image.created: "{{.Env.BUILD_DATE}}"

- id: janitor-provider-azure
dir: providers/azure
main: .
ldflags:
- "-s -w"
- "-X main.version={{.Env.VERSION}} -X main.commit={{.Env.GIT_COMMIT}} -X main.date={{.Env.BUILD_DATE}}"
annotations:
org.opencontainers.image.description: "Azure provider for the NVSentinel Janitor"
labels:
org.opencontainers.image.source: "https://github.com/nvidia/nvsentinel"
org.opencontainers.image.licenses: "Apache-2.0"
org.opencontainers.image.title: "janitor-provider-azure"
org.opencontainers.image.description: "Azure implementation of the CSP provider interface for Janitor"
org.opencontainers.image.version: "{{.Env.VERSION}}"
org.opencontainers.image.revision: "{{.Env.GIT_COMMIT}}"
org.opencontainers.image.created: "{{.Env.BUILD_DATE}}"

- id: janitor-provider-gcp
dir: providers/gcp
main: .
ldflags:
- "-s -w"
- "-X main.version={{.Env.VERSION}} -X main.commit={{.Env.GIT_COMMIT}} -X main.date={{.Env.BUILD_DATE}}"
annotations:
org.opencontainers.image.description: "GCP provider for the NVSentinel Janitor"
labels:
org.opencontainers.image.source: "https://github.com/nvidia/nvsentinel"
org.opencontainers.image.licenses: "Apache-2.0"
org.opencontainers.image.title: "janitor-provider-gcp"
org.opencontainers.image.description: "GCP implementation of the CSP provider interface for Janitor"
org.opencontainers.image.version: "{{.Env.VERSION}}"
org.opencontainers.image.revision: "{{.Env.GIT_COMMIT}}"
org.opencontainers.image.created: "{{.Env.BUILD_DATE}}"

- id: janitor-provider-kwok
dir: providers/kwok
main: .
ldflags:
- "-s -w"
- "-X main.version={{.Env.VERSION}} -X main.commit={{.Env.GIT_COMMIT}} -X main.date={{.Env.BUILD_DATE}}"
annotations:
org.opencontainers.image.description: "KWOK provider for the NVSentinel Janitor"
labels:
org.opencontainers.image.source: "https://github.com/nvidia/nvsentinel"
org.opencontainers.image.licenses: "Apache-2.0"
org.opencontainers.image.title: "janitor-provider-kwok"
org.opencontainers.image.description: "KWOK implementation of the CSP provider interface for Janitor"
org.opencontainers.image.version: "{{.Env.VERSION}}"
org.opencontainers.image.revision: "{{.Env.GIT_COMMIT}}"
org.opencontainers.image.created: "{{.Env.BUILD_DATE}}"

- id: janitor-provider-oci
dir: providers/oci
main: .
ldflags:
- "-s -w"
- "-X main.version={{.Env.VERSION}} -X main.commit={{.Env.GIT_COMMIT}} -X main.date={{.Env.BUILD_DATE}}"
annotations:
org.opencontainers.image.description: "OCI provider for the NVSentinel Janitor"
labels:
org.opencontainers.image.source: "https://github.com/nvidia/nvsentinel"
org.opencontainers.image.licenses: "Apache-2.0"
org.opencontainers.image.title: "janitor-provider-oci"
org.opencontainers.image.description: "OCI implementation of the CSP provider interface for Janitor"
org.opencontainers.image.version: "{{.Env.VERSION}}"
org.opencontainers.image.revision: "{{.Env.GIT_COMMIT}}"
org.opencontainers.image.created: "{{.Env.BUILD_DATE}}"

- id: platform-connectors
dir: platform-connectors
main: .
Expand Down
Loading
Loading