Skip to content

Commit ad974e6

Browse files
authored
Add Flux 2.6.0/2.6.1 libs (#543)
1 parent 5ec29d4 commit ad974e6

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20 as base
1+
FROM golang:1.20 AS base
22

33
ENV GO111MODULE=on
44
WORKDIR /app
@@ -17,10 +17,10 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
1717
-ldflags='-s -w -extldflags "-static"' \
1818
-o k8s-gen .
1919

20-
FROM golang:1.20-alpine3.18 as jsonnet
20+
FROM golang:1.20-alpine3.18 AS jsonnet
2121

2222
RUN apk add --no-cache git
23-
RUN go install github.com/google/go-jsonnet/cmd/jsonnet@latest
23+
RUN go install github.com/google/go-jsonnet/cmd/jsonnet@v0.20.0
2424

2525
FROM alpine:3.18
2626

libs/fluxcd/config.jsonnet

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,34 @@ local config = import 'jsonnet/config.jsonnet';
33
config.new(
44
name='fluxcd',
55
specs=[
6+
{
7+
// CRDs retrieved from https://github.com/fluxcd/flux2/blob/v2.6.1/manifests/crds/kustomization.yaml
8+
output: '2.6.1',
9+
prefix: '^io\\.fluxcd\\.toolkit\\..*',
10+
crds: [
11+
'https://github.com/fluxcd/source-controller/releases/download/v1.6.0/source-controller.crds.yaml',
12+
'https://github.com/fluxcd/kustomize-controller/releases/download/v1.6.0/kustomize-controller.crds.yaml',
13+
'https://github.com/fluxcd/helm-controller/releases/download/v1.3.0/helm-controller.crds.yaml',
14+
'https://github.com/fluxcd/notification-controller/releases/download/v1.6.0/notification-controller.crds.yaml',
15+
'https://github.com/fluxcd/image-reflector-controller/releases/download/v0.35.1/image-reflector-controller.crds.yaml',
16+
'https://github.com/fluxcd/image-automation-controller/releases/download/v0.41.0/image-automation-controller.crds.yaml',
17+
],
18+
localName: 'fluxcd',
19+
},
20+
{
21+
// CRDs retrieved from https://github.com/fluxcd/flux2/blob/v2.6.0/manifests/crds/kustomization.yaml
22+
output: '2.6.0',
23+
prefix: '^io\\.fluxcd\\.toolkit\\..*',
24+
crds: [
25+
'https://github.com/fluxcd/source-controller/releases/download/v1.6.0/source-controller.crds.yaml',
26+
'https://github.com/fluxcd/kustomize-controller/releases/download/v1.6.0/kustomize-controller.crds.yaml',
27+
'https://github.com/fluxcd/helm-controller/releases/download/v1.3.0/helm-controller.crds.yaml',
28+
'https://github.com/fluxcd/notification-controller/releases/download/v1.6.0/notification-controller.crds.yaml',
29+
'https://github.com/fluxcd/image-reflector-controller/releases/download/v0.35.0/image-reflector-controller.crds.yaml',
30+
'https://github.com/fluxcd/image-automation-controller/releases/download/v0.41.0/image-automation-controller.crds.yaml',
31+
],
32+
localName: 'fluxcd',
33+
},
634
{
735
// CRDs retrieved from https://github.com/fluxcd/flux2/blob/v2.5.1/manifests/crds/kustomization.yaml
836
output: '2.5.1',

0 commit comments

Comments
 (0)