Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into dev.frontend-receiver #1362

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
41cf32c
Operator: fix bug where /-/ready and /-/healthy always returned 404 (…
rfratto Jan 11, 2022
d151094
Make scraping-svc use the new `metrics:` key (#1259)
tpaschalis Jan 12, 2022
2dbe3a3
update prometheus dependency (#1260)
rfratto Jan 12, 2022
bf17aee
corrected typo (#1265)
langerma Jan 13, 2022
d2031d3
Use RELEASE_TAG to choose between `:main` and `:latest` docker tags (…
tpaschalis Jan 13, 2022
6240e64
prepare for v0.22.0 release (#1266)
rlankfo Jan 13, 2022
bb4174c
Add basic testing framework for operator (#1268)
rfratto Jan 14, 2022
e1df94f
Update release-note.md (#1267)
rlankfo Jan 14, 2022
e319f18
Set scrape User-Agent header during init (#1274)
tpaschalis Jan 14, 2022
8bebf94
Upgrade to Go 1.17 (#1278)
tpaschalis Jan 18, 2022
d74f94a
fix typo (#1284)
alexrudd2 Jan 18, 2022
ec42e23
Use custom Go version in agent-operator Dockerfile (#1286)
tpaschalis Jan 19, 2022
8fc3423
pkg/operator: refactor resource hierarchy discovery (#1271)
rfratto Jan 19, 2022
b890ef9
update agent-build-image for go 1.17 (#1287)
rfratto Jan 19, 2022
9beca9e
Skip non-ready entries when listing instances (#1289)
tpaschalis Jan 21, 2022
0759ad3
Fix panic in prom_sd_processor when address is empty (#1279)
mapno Jan 24, 2022
59ffd8b
Operator: generate proxy_url for remote_write (#1298)
rfratto Jan 24, 2022
b2c1fda
Use log format in traces subsystem (#1272)
mapno Jan 25, 2022
459b277
integrations-next: Add extra_labels to inject extra labels for an int…
rfratto Jan 25, 2022
7b1ac6f
Fix anchor link on operator docs (#1302)
tpaschalis Jan 26, 2022
25b8896
updated config URL (#1304)
melgl Jan 26, 2022
78b3a5a
Fix typo in node_exporter (#1325)
mattdurham Jan 27, 2022
c7c309d
Allow remote_write URL credentials (#1329)
tpaschalis Jan 28, 2022
8cc3f43
Stop appending duplicate exemplars (#1316)
tpaschalis Jan 28, 2022
9d61761
integrations-next: wait for integrations to exit after stopping them …
rfratto Jan 28, 2022
f2c5526
operator/hierarchy: stop using field selector when listing Secrets & …
rfratto Feb 1, 2022
2662a17
Add dependabot to update go modules and github actions. (#1217)
tomwilkie Feb 2, 2022
568e509
smoke framework refactor (#1326)
rlankfo Feb 2, 2022
abec116
Correct link to the configuration (#1036)
josephwoodward Feb 2, 2022
00bb7fa
Add stale check Github Action (#1345)
rfratto Feb 2, 2022
fa93d3b
stale action: fix missing indent (#1346)
rfratto Feb 2, 2022
df6a62a
Fix mssql issue (#1351)
mattdurham Feb 2, 2022
ebacc56
Add K8s Events integration (#1330)
hjet Feb 2, 2022
e14ac86
stale action: fix typo in label exemptions (#1347)
rfratto Feb 3, 2022
a8bfd47
update withVolumesMixin for agent jsonnet (#1358)
rlankfo Feb 4, 2022
3c8e6f5
Configure cluster label using logs client external_labels param (#1357)
hjet Feb 4, 2022
15a8aa5
add password file and basic auth round tripper in crow (#1361)
rlankfo Feb 4, 2022
4d56bf2
Merge branch 'main' into dev.frontend-receiver-merge-main
rfratto Feb 5, 2022
e2b4a6f
fix compilation errors
rfratto Feb 5, 2022
b59dab8
go mod tidy
rfratto Feb 5, 2022
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
91 changes: 36 additions & 55 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trigger:

steps:
- name: lint
image: golangci/golangci-lint:v1.37.1
image: golangci/golangci-lint:v1.43
commands:
- apt-get update -y && apt-get install -y libsystemd-dev
- make lint
Expand All @@ -41,61 +41,27 @@ trigger:
steps:
- name: test
image: rfratto/seego
commands:
- apt-get update && apt-get install -y rubygems rpm nsis apt-transport-https ca-certificates curl gnupg lsb-release
- gem install --no-document fpm
- mkdir -p /usr/local/go/bin
- wget -q https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- rm go1.16.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- make cmd/agent/agent cmd/agentctl/agentctl cmd/agent-operator/agent-operator cmd/grafana-agent-crow/grafana-agent-crow
- make DRONE=true BUILD_IN_CONTAINER=false test
depends_on:
- Lint

---
kind: pipeline
type: docker
name: E2E
platform:
os: linux
arch: amd64
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/pull/*/head
- refs/tags/**
steps:
- name: lint
image: golangci/golangci-lint:v1.43.0
commands:
- make DRONE=true e2e/lint
- name: test
image: docker
volumes:
- name: docker
path: /var/run/docker.sock
commands:
- apk update && apk add make gcc libc-dev bash wget git
- apt-get update && apt-get install -y rubygems rpm nsis apt-transport-https ca-certificates curl gnupg lsb-release
- gem install --no-document fpm
- rm -r /usr/local/go
- mkdir -p /usr/local/go/bin
- wget -q https://golang.org/dl/go1.17.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz
- rm go1.17.5.linux-amd64.tar.gz
- wget -q https://golang.org/dl/go1.17.6.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.17.6.linux-amd64.tar.gz
- rm go1.17.6.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- make E2E_K8S_USE_DOCKER_NETWORK=1 DRONE=true e2e/test

- make cmd/agent/agent cmd/agentctl/agentctl cmd/agent-operator/agent-operator tools/crow/grafana-agent-crow tools/smoke/grafana-agent-smoke
- make K8S_USE_DOCKER_NETWORK=1 DRONE=true BUILD_IN_CONTAINER=false test
depends_on:
- Test
- Lint

volumes:
- name: docker
host:
path: /var/run/docker.sock
- name: docker
host:
path: /var/run/docker.sock

---
kind: pipeline
Expand All @@ -114,15 +80,15 @@ steps:
commands:
- apt-get update && apt-get install -y rubygems rpm nsis
- gem install --no-document fpm
- rm -r /usr/local/go
- mkdir -p /usr/local/go/bin
- wget -q https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- rm go1.16.5.linux-amd64.tar.gz
- wget -q https://golang.org/dl/go1.17.6.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.17.6.linux-amd64.tar.gz
- rm go1.17.6.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- make DRONE=true BUILD_IN_CONTAINER=false dist
depends_on:
- Test
- E2E
---
kind: pipeline
type: docker
Expand All @@ -147,7 +113,11 @@ steps:
from_secret: DOCKER_LOGIN
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
GCR_CREDS:
from_secret: gcr_admin
commands:
- mkdir -p $HOME/.docker
- printenv GCR_CREDS > $HOME/.docker/config.json
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- apk update && apk add make bash wget git qemu
- wget -q https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64
Expand All @@ -157,10 +127,12 @@ steps:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --name multiarch --driver docker-container --use
- export RELEASE_TAG=${DRONE_TAG}
- export IMAGE_BRANCH_TAG=${DRONE_BRANCH}
- make DRONE=true CROSS_BUILD=true BUILD_IN_CONTAINER=true RELEASE_BUILD=true agent-image
- make DRONE=true CROSS_BUILD=true BUILD_IN_CONTAINER=true RELEASE_BUILD=true agentctl-image
- make DRONE=true CROSS_BUILD=true BUILD_IN_CONTAINER=true RELEASE_BUILD=true agent-operator-image
- make DRONE=true CROSS_BUILD=true BUILD_IN_CONTAINER=true RELEASE_BUILD=true grafana-agent-crow-image
- make DRONE=true CROSS_BUILD=true BUILD_IN_CONTAINER=true RELEASE_BUILD=true agent-smoke-image
- docker buildx rm multiarch

depends_on:
Expand Down Expand Up @@ -251,10 +223,11 @@ steps:
- apt-get update && apt-get install -y rubygems rpm nsis docker-ce docker-ce-cli containerd.io gettext
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- gem install --no-document fpm
- rm -r /usr/local/go
- mkdir -p /usr/local/go/bin
- wget -q https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- rm go1.16.5.linux-amd64.tar.gz
- wget -q https://golang.org/dl/go1.17.6.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.17.6.linux-amd64.tar.gz
- rm go1.17.6.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- GO111MODULE=on go get -u github.com/mitchellh/gox github.com/tcnksm/ghr
- export PATH="$(go env GOPATH)/bin:$PATH"
Expand All @@ -275,6 +248,14 @@ get:
path: secret/data/common/gcr
name: .dockerconfigjson

---
kind: secret
name: gcr_admin

get:
name: .dockerconfigjson
path: infra/data/ci/gcr-admin

---
kind: secret
name: gh_token
Expand All @@ -284,6 +265,6 @@ get:
name: pat
---
kind: signature
hmac: d78c4fe3269f5e585d410571767e05b225971aeeb8956cef158f8c701ed828f7
hmac: f59c8b25058782d021a2d6bdc1fc59a049f3b352fb41de6a14c28fd05f578073

...
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 2
26 changes: 0 additions & 26 deletions .github/stale.yml

This file was deleted.

143 changes: 0 additions & 143 deletions .github/workflows/force_release.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Stale check
on:
workflow_dispatch: {}
schedule:
- cron: '0 0 * * *'
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
days-before-stale: 30
days-before-close: 7
stale-issue-message: >
This issue has been automatically marked as stale because it has
not had any activity in the past 30 days.

The next time this stale check runs, the stale label will be
removed if there is new activity. The issue will be closed in 7
days if there is no new activity.

Thank you for your contributions!
stale-pr-message: >
This PR has been automatically marked as stale because it has not
had any activity in the past 30 days.

The next time this stale check runs, the stale label will be
removed if there is new activity. The issue will be closed in 7
days if there is no new activity.

Thank you for your contributions!
stale-issue-label: stale
stale-pr-label: stale
exempt-issue-labels: keepalive,proposal,outdated-dependency,dev-branch
exempt-pr-labels: keepalive,proposal,outdated-dependency,dev-branch
Loading