Skip to content

Commit 9250364

Browse files
authored
Merge pull request #691 from fluxcd/no-tini
Remove the tini supervisor, and other nits
2 parents e546364 + c29360a commit 9250364

12 files changed

+15
-19
lines changed

Dockerfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ RUN xx-go build -trimpath -a -o helm-controller main.go
3333

3434
FROM alpine:3.18
3535

36-
# link repo to the GitHub Container Registry image
37-
LABEL org.opencontainers.image.source="https://github.com/fluxcd/helm-controller"
38-
39-
RUN apk add --no-cache ca-certificates tini
36+
RUN apk add --no-cache ca-certificates \
37+
&& update-ca-certificates
4038

4139
COPY --from=builder /workspace/helm-controller /usr/local/bin/
4240

4341
USER 65534:65534
4442

45-
ENTRYPOINT [ "/sbin/tini", "--", "helm-controller" ]
43+
ENTRYPOINT [ "helm-controller" ]

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ BUILD_PLATFORMS ?= linux/amd64
2828
ENVTEST_ARCH ?= amd64
2929

3030
# API (doc) generation utilities
31-
CONTROLLER_GEN_VERSION ?= v0.11.1
31+
CONTROLLER_GEN_VERSION ?= v0.12.0
3232
GEN_API_REF_DOCS_VERSION ?= e327d0730470cbd61b06300f81c5fcf91c23c113
3333

3434
all: manager

config/crd/bases/helm.toolkit.fluxcd.io_helmreleases.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.11.1
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.12.0
87
name: helmreleases.helm.toolkit.fluxcd.io
98
spec:
109
group: helm.toolkit.fluxcd.io

config/rbac/role.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
5-
creationTimestamp: null
65
name: manager-role
76
rules:
87
- apiGroups:

internal/controllers/helmrelease_controller.go internal/controller/helmrelease_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

internal/controllers/helmrelease_controller_chart.go internal/controller/helmrelease_controller_chart.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

internal/controllers/helmrelease_controller_chart_test.go internal/controller/helmrelease_controller_chart_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

internal/controllers/helmrelease_controller_fuzz_test.go internal/controller/helmrelease_controller_fuzz_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ See the License for the specific language governing permissions and
1717
limitations under the License.
1818
*/
1919

20-
package controllers
20+
package controller
2121

2222
import (
2323
"context"

internal/controllers/helmrelease_controller_test.go internal/controller/helmrelease_controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

internal/controllers/source_predicate.go internal/controller/source_predicate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"sigs.k8s.io/controller-runtime/pkg/event"

internal/controllers/suite_test.go internal/controller/suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"fmt"

main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import (
5151
v2 "github.com/fluxcd/helm-controller/api/v2beta1"
5252
// +kubebuilder:scaffold:imports
5353

54-
"github.com/fluxcd/helm-controller/internal/controllers"
54+
"github.com/fluxcd/helm-controller/internal/controller"
5555
"github.com/fluxcd/helm-controller/internal/features"
5656
intkube "github.com/fluxcd/helm-controller/internal/kube"
5757
"github.com/fluxcd/helm-controller/internal/oomwatch"
@@ -233,7 +233,7 @@ func main() {
233233
}
234234

235235
pollingOpts := polling.Options{}
236-
if err = (&controllers.HelmReleaseReconciler{
236+
if err = (&controller.HelmReleaseReconciler{
237237
Client: mgr.GetClient(),
238238
Config: mgr.GetConfig(),
239239
Scheme: mgr.GetScheme(),
@@ -245,7 +245,7 @@ func main() {
245245
PollingOpts: pollingOpts,
246246
StatusPoller: polling.NewStatusPoller(mgr.GetClient(), mgr.GetRESTMapper(), pollingOpts),
247247
ControllerName: controllerName,
248-
}).SetupWithManager(ctx, mgr, controllers.HelmReleaseReconcilerOptions{
248+
}).SetupWithManager(ctx, mgr, controller.HelmReleaseReconcilerOptions{
249249
DependencyRequeueInterval: requeueDependency,
250250
HTTPRetry: httpRetry,
251251
RateLimiter: helper.GetRateLimiter(rateLimiterOptions),

0 commit comments

Comments
 (0)