Skip to content

Commit 8bce117

Browse files
authored
Merge pull request #66 from flanksource/feat/new-workflows-build-test
feat: add new GH workflows: build and test
2 parents 30afc47 + d762241 commit 8bce117

File tree

5 files changed

+187
-0
lines changed

5 files changed

+187
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: pull_request
2+
name: Build
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout code
8+
uses: actions/checkout@v3
9+
- name: Build Container
10+
run: make docker
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
pull_request:
3+
4+
name: Test
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Install Go
10+
uses: actions/setup-go@v4
11+
with:
12+
go-version: 1.20.x
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
- name: Test
16+
run: make test
17+
- name: Publish Test Results
18+
uses: EnricoMi/publish-unit-test-result-action@v2
19+
if: always()
20+
with:
21+
files: test/test-results.xml
22+
check_name: E2E - ${{matrix.suite}}

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,9 @@ ENVTEST_K8S_VERSION = 1.25.0
123123
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
124124
$(ENVTEST): $(LOCALBIN)
125125
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
126+
127+
$(LOCALBIN):
128+
mkdir -p $(LOCALBIN)
129+
130+
docker:
131+
docker build . -t ${IMG}

api/logs/zz_generated.deepcopy.go

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chart/crds/apm-hub.flanksource.com_loggingbackends.yaml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,106 @@ spec:
3838
backends:
3939
items:
4040
properties:
41+
cloudwatch:
42+
properties:
43+
auth:
44+
properties:
45+
access_key:
46+
properties:
47+
name:
48+
type: string
49+
value:
50+
type: string
51+
valueFrom:
52+
properties:
53+
configMapKeyRef:
54+
properties:
55+
key:
56+
type: string
57+
name:
58+
type: string
59+
optional:
60+
type: boolean
61+
required:
62+
- key
63+
type: object
64+
secretKeyRef:
65+
properties:
66+
key:
67+
type: string
68+
name:
69+
type: string
70+
optional:
71+
type: boolean
72+
required:
73+
- key
74+
type: object
75+
type: object
76+
type: object
77+
region:
78+
type: string
79+
secret_key:
80+
properties:
81+
name:
82+
type: string
83+
value:
84+
type: string
85+
valueFrom:
86+
properties:
87+
configMapKeyRef:
88+
properties:
89+
key:
90+
type: string
91+
name:
92+
type: string
93+
optional:
94+
type: boolean
95+
required:
96+
- key
97+
type: object
98+
secretKeyRef:
99+
properties:
100+
key:
101+
type: string
102+
name:
103+
type: string
104+
optional:
105+
type: boolean
106+
required:
107+
- key
108+
type: object
109+
type: object
110+
type: object
111+
type: object
112+
labels:
113+
additionalProperties:
114+
type: string
115+
description: Labels are custom labels specified in the configuration
116+
file for a backend that will be attached to each log line
117+
returned by that backend.
118+
type: object
119+
log_group:
120+
type: string
121+
namespace:
122+
type: string
123+
query:
124+
type: string
125+
routes:
126+
items:
127+
properties:
128+
id_prefix:
129+
type: string
130+
is_additive:
131+
type: boolean
132+
labels:
133+
additionalProperties:
134+
type: string
135+
type: object
136+
type:
137+
type: string
138+
type: object
139+
type: array
140+
type: object
41141
elasticsearch:
42142
properties:
43143
address:

0 commit comments

Comments
 (0)