-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add quickstart mode * Fix drone * fix drone * fix preprocessing * fix delete and comments * fix wait for ns * fix images * Use upstream images * Update images
- Loading branch information
1 parent
c373eac
commit 5b3973c
Showing
90 changed files
with
626 additions
and
4,520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,238 +1,43 @@ | ||
--- | ||
kind: pipeline | ||
name: amd64 | ||
type: docker | ||
name: build-amd64 | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: build | ||
image: rancher/dapper:v0.4.1 | ||
- name: build-and-package | ||
image: rancher/dapper:v0.5.5 | ||
commands: | ||
- dapper ci | ||
volumes: | ||
- name: docker | ||
path: /var/run/docker.sock | ||
|
||
- name: github_binary_release | ||
- name: publish-bin-artifacts | ||
image: plugins/github-release | ||
settings: | ||
api_key: | ||
from_secret: github_token | ||
prerelease: true | ||
checksum: | ||
- sha256 | ||
checksum_file: CHECKSUMsum-amd64.txt | ||
checksum_flatten: true | ||
files: | ||
- "dist/artifacts/*" | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
- name: docker-publish | ||
image: plugins/docker | ||
settings: | ||
dockerfile: package/Dockerfile | ||
password: | ||
from_secret: docker_password | ||
repo: "rancher/opnictl" | ||
tag: "${DRONE_TAG}-amd64" | ||
username: | ||
from_secret: docker_username | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
volumes: | ||
- name: docker | ||
host: | ||
path: /var/run/docker.sock | ||
|
||
--- | ||
kind: pipeline | ||
name: arm64 | ||
|
||
platform: | ||
os: linux | ||
arch: arm64 | ||
|
||
steps: | ||
- name: build | ||
image: rancher/dapper:v0.4.1 | ||
commands: | ||
- dapper ci | ||
volumes: | ||
- name: docker | ||
path: /var/run/docker.sock | ||
|
||
- name: github_binary_release | ||
image: plugins/github-release | ||
settings: | ||
api_key: | ||
from_secret: github_token | ||
- bin/* | ||
prerelease: true | ||
checksum: | ||
- sha256 | ||
checksum_file: CHECKSUMsum-arm64.txt | ||
checksum_flatten: true | ||
files: | ||
- "dist/artifacts/*" | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
- name: docker-publish | ||
image: plugins/docker | ||
settings: | ||
dockerfile: package/Dockerfile | ||
password: | ||
from_secret: docker_password | ||
repo: "rancher/opnictl" | ||
tag: "${DRONE_TAG}-arm64" | ||
username: | ||
from_secret: docker_username | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
volumes: | ||
- name: docker | ||
host: | ||
path: /var/run/docker.sock | ||
|
||
--- | ||
kind: pipeline | ||
name: arm | ||
|
||
platform: | ||
os: linux | ||
arch: arm | ||
|
||
steps: | ||
- name: build | ||
image: rancher/dapper:v0.4.1 | ||
commands: | ||
- dapper ci | ||
volumes: | ||
- name: docker | ||
path: /var/run/docker.sock | ||
|
||
- name: github_binary_release | ||
image: plugins/github-release | ||
settings: | ||
api_key: | ||
from_secret: github_token | ||
prerelease: true | ||
checksum: | ||
- sha256 | ||
checksum_file: CHECKSUMsum-arm.txt | ||
checksum_flatten: true | ||
files: | ||
- "dist/artifacts/*" | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
- name: docker-publish | ||
image: plugins/docker | ||
settings: | ||
dockerfile: package/Dockerfile | ||
password: | ||
from_secret: docker_password | ||
repo: "rancher/opnictl" | ||
tag: "${DRONE_TAG}-arm" | ||
username: | ||
from_secret: docker_username | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
volumes: | ||
- name: docker | ||
host: | ||
path: /var/run/docker.sock | ||
|
||
--- | ||
kind: pipeline | ||
name: manifest | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: manifest | ||
image: plugins/manifest:1.0.2 | ||
settings: | ||
username: | ||
from_secret: docker_username | ||
password: | ||
from_secret: docker_password | ||
platforms:d64 | ||
- linux/arm64 | ||
- linux/arm | ||
target: "rancher/opnictl:${DRONE_TAG}" | ||
template: "rancher/opnictl:${DRONE_TAG}-ARCH" | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
depends_on: | ||
- amd64 | ||
- arm64 | ||
- arm | ||
- linux/amd64 | ||
- linux/arm64 | ||
- linux/arm | ||
target: "rancher/opnictl:${DRONE_TAG}" | ||
template: "rancher/opnictl:${DRONE_TAG}-ARCH" | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
depends_on: | ||
- amd64 | ||
- arm64 | ||
- arm | ||
path: /var/run/docker.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: helm.cattle.io/v1 | ||
kind: HelmChart | ||
metadata: | ||
name: rancher-logging-crd | ||
namespace: opni-system | ||
spec: | ||
chart: rancher-logging-crd | ||
repo: http://charts.rancher.io/ | ||
version: "3.9.400" | ||
--- | ||
apiVersion: helm.cattle.io/v1 | ||
kind: HelmChart | ||
metadata: | ||
name: rancher-logging | ||
namespace: opni-system | ||
spec: | ||
chart: rancher-logging | ||
repo: http://charts.rancher.io/ | ||
version: "3.9.400" | ||
set: | ||
additionalLoggingSources.rke.enabled: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: logging.banzaicloud.io/v1beta1 | ||
kind: ClusterOutput | ||
metadata: | ||
name: "aiops-demo-log-output" | ||
namespace: "opni-system" | ||
spec: | ||
http: | ||
endpoint: http://payload-receiver-service.opni-system.svc/ | ||
content_type: application/json | ||
json_array: true | ||
buffer: | ||
tags: "[]" | ||
flush_interval: 2s | ||
chunk_limit_size: 1mb | ||
--- | ||
apiVersion: logging.banzaicloud.io/v1beta1 | ||
kind: ClusterFlow | ||
metadata: | ||
name: "aiops-demo-log-flow" | ||
namespace: "opni-system" | ||
spec: | ||
filters: | ||
- dedot: | ||
de_dot_separator: "-" | ||
de_dot_nested: true | ||
- grep: | ||
exclude: | ||
- key: log | ||
pattern: ^\n$ | ||
- | ||
detectExceptions: | ||
languages: | ||
- java | ||
- python | ||
- go | ||
- ruby | ||
- js | ||
- csharp | ||
- php | ||
multiline_flush_interval: "0.1" | ||
globalOutputRefs: | ||
- "aiops-demo-log-output" |
Oops, something went wrong.