Skip to content
Merged
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
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This project is currently not accepting contributions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Build the sidecar-injector binary
FROM golang:1.26.7 AS builder

Expand All @@ -18,6 +20,10 @@ COPY pkg/ pkg/
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${BUILDPLATFORM} go build -a -o ecr-anywhere-webhook ./cmd/webhook
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${BUILDPLATFORM} go build -a -o ecr-anywhere-refresher ./cmd/refresher

# Third-party source for the notices in THIRD-PARTY.txt: vendor the exact module set
# that was just compiled and pack it (see /usr/share/oss-source in the final stage)
RUN go mod vendor && tar -czf /workspace/third-party-src.tar.gz -C /workspace vendor

# OSRB-approved base; CGO_ENABLED=0 binaries need no libc. Already runs as
# non-root (uid 1000), so the explicit USER is no longer required.
FROM nvcr.io/nvidia/distroless/static:v4.0.0
Expand All @@ -28,5 +34,9 @@ WORKDIR /
COPY --from=builder /workspace/ecr-anywhere-webhook .
COPY --from=builder /workspace/ecr-anywhere-refresher .

# Third-party notices and the corresponding source (license compliance; MPL-2.0 §3.2)
COPY THIRD-PARTY.txt /THIRD-PARTY.txt
COPY --from=builder /workspace/third-party-src.tar.gz /usr/share/oss-source/third-party-src.tar.gz

# webhook is the default entrypoint
ENTRYPOINT ["/ecr-anywhere-webhook"]
3 changes: 3 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.


Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,11 @@ spec:
imagePullSecrets:
- name: ecr-secret
```yaml

## Contributing

This project is currently not accepting contributions.

## License

Apache License 2.0 — see [LICENSE](LICENSE). Third-party notices: [THIRD-PARTY.txt](THIRD-PARTY.txt).
9,857 changes: 9,857 additions & 0 deletions THIRD-PARTY.txt

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions charts/ecr-anywhere/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{/*
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/}}
{{/*
Expand the name of the chart.
*/}}
{{- define "ecr-anywhere.name" -}}
Expand Down
4 changes: 4 additions & 0 deletions cmd/refresher/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package main

import (
Expand Down
4 changes: 4 additions & 0 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package main

import (
Expand Down
4 changes: 4 additions & 0 deletions pkg/credentials/credentials.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package credentials

import (
Expand Down
4 changes: 4 additions & 0 deletions pkg/credentials/credentials_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package credentials

import (
Expand Down
4 changes: 4 additions & 0 deletions pkg/loggers/loggers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package loggers

import "log"
Expand Down
4 changes: 4 additions & 0 deletions pkg/patching/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package patching

type Operation struct {
Expand Down
4 changes: 4 additions & 0 deletions pkg/webhook/webhook.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package webhook

import (
Expand Down
4 changes: 4 additions & 0 deletions pkg/webhook/webhook_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package webhook

import (
Expand Down
Loading