Skip to content

Commit

Permalink
Update Go version for builds
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Oct 25, 2023
1 parent 66549f8 commit 3b93fb6
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 81 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.19 as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21 as builder

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand All @@ -22,7 +22,7 @@ COPY controllers/ controllers/
# Build
RUN echo flags=${Version} ${GitCommit}
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
GO111MODULE=on go build -ldflags "-s -w -X main.Release=${Version} -X main.SHA=${GitCommit}" -a -o /usr/bin/controller
GO111MODULE=on go build -ldflags "-s -w -X main.Release=${Version} -X main.SHA=${GitCommit}" -o /usr/bin/controller

# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM --platform=${BUILDPLATFORM:-linux/amd64} gcr.io/distroless/static:nonroot
Expand Down
4 changes: 0 additions & 4 deletions GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

## Usage

This tool requires time and effort to maintain.

If you use it at work, [become a sponsor](https://github.com/sponsors/alexellis).

### Option A) Configuration with kubectl

Apply the YAML for the manifest.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Alex Ellis
Copyright (c) 2023 OpenFaaS Ltd, Alex Ellis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
36 changes: 17 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@

[![CI status](https://github.com/alexellis/registry-creds/actions/workflows/ci-only.yaml/badge.svg)](https://github.com/alexellis/registry-creds/actions/workflows/ci-only.yaml)

This operator can be used to propagate a single ImagePullSecret to all namespaces within your cluster, so that images can be pulled with authentication.
This operator can be used to propagate a single ImagePullSecret to all namespaces within your cluster, so that images are pulled using authentication.

### Why is this operator required?
See also: [ROADMAP.md](/ROADMAP.md)

### Use-case: Propagate a private registry secret to all namespaces

The second use-case for this operator is to take an authentication token which is required to pull images from a private registry, and to make sure it's available and configured for each and every namespace.

For example, if you were running a multi-tenant service, where customers had their own namespaces, and every Pod was pulled from a common private registry. You could use this operator to automate what would otherwise be a manual and error-prone process.

The primary reason for creating this operator, is to make it easier for users of Kubernetes to consume images from the Docker Hub after [recent pricing and rate-limiting changes](https://www.docker.com/pricing) were brought in, an authenticated account is now required to pull images.
### Use-case: Docker Hub Rate Limits

The original need for this operator, was to make it easier for users of Kubernetes to consume images from the Docker Hub after [recent pricing and rate-limiting changes](https://www.docker.com/pricing) were brought in, an authenticated account is now required to pull images.

These are the limits as understood at time of writing:

Expand All @@ -25,24 +33,14 @@ The normal process is as follows, which becomes tedious and repetitive when you
* Create a secret
* Edit your service account, and add the name of the secret to `imagePullSecrets`

See also: [ROADMAP.md](/ROADMAP.md)

## Getting started
## Getting Started

### Set up your sponsorship

This tool requires time and effort to maintain, so if you use it at work, you should become a sponsor on GitHub:

* [Set-up a sponsorship now](https://github.com/sponsors/alexellis)

It's up to you to choose a tier or a custom amount based upon the value and time saving of the tool, plus its maintainance.

Alternative approaches are available if you don't agree to these terms.
* [Install the tool](GUIDE.md)

### Install & configure the tool
## Support is for sponsors only

* [Install the tool](GUIDE.md)
Support is only offered to my [GitHub Sponsors](https://github.com/sponsors/alexellis). If you're sponsoring @alexellis or @openfaas on GitHub, then feel raise a GitHub issue to propose changes, new features and to request help with usage.

### Support
## License

[Sponsors](https://github.com/sponsors/alexellis) may raise a GitHub issue to propose changes, new features and to request help with usage.
MIT
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module alexellis/registry-creds

go 1.18
go 1.20

require (
github.com/go-logr/logr v1.2.3
github.com/go-logr/logr v1.2.4
github.com/pkg/errors v0.9.1
k8s.io/api v0.26.1
k8s.io/apimachinery v0.26.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbV
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0=
github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ=
github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/zapr v1.2.3 h1:a9vnzlIBPQBBkeaR9IuMUfmVOrQlkoC4YfPoFkX3T7A=
github.com/go-logr/zapr v1.2.3/go.mod h1:eIauM6P8qSvTw5o2ez6UEAfGjQKrxQTl5EoK+Qa2oG4=
github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
Expand Down
39 changes: 0 additions & 39 deletions hack/install-buildx.sh

This file was deleted.

14 changes: 0 additions & 14 deletions hack/install-docker.sh

This file was deleted.

0 comments on commit 3b93fb6

Please sign in to comment.