Skip to content

Instantly share code, notes, and snippets.

View cfcosta's full-sized avatar

Cainã Costa cfcosta

  • São Paulo, Brazil
View GitHub Profile
#!/usr/bin/bash
set -xe
SOURCE_ROOT="$(dirname "${BASH_SOURCE}")"
generate_mesh()
{
deploy_pair kiali-test-composite-pingpong
deploy_pair kiali-test-composite-depth
FROM golang:alpine as golang-builder
ADD kiali /go/src/github.com/kiali/kiali
WORKDIR /go/src/github.com/kiali/kiali
RUN apk add make bash git && make build
FROM node:8-alpine as node-builder
ADD kiali-ui /opt/kiali-ui
WORKDIR /opt/kiali-ui
RUN apk update && apk add git && npm install -g yarn && yarn install && yarn build && ls -lah .
#set -xe
#docker-compose build
istioctl delete -f openshift/istio.yml
oc delete project poller
echo -n "Waiting until project is destroyed"
until ! oc get projects | grep "poller" &>/dev/null; do
echo -n .
FROM rhel7 as builder
ADD kiali /go/src/github.com/kiali/kiali
ADD kiali-ui /go/src/github.com/kiali/kiali-ui
ENV GOPATH=/go
WORKDIR /go/src/github.com/kiali/kiali
RUN yum upgrade -y
" Indent configuration
autocmd BufRead neomutt-* setf mail
autocmd BufRead *.tsx setf typescript
autocmd FileType bash,zsh setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType c,cpp setlocal ts=4 sts=4 sw=4 expandtab
autocmd FileType css,html setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType elm setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType go setlocal ts=2 sts=2 sw=2 noexpandtab list
autocmd FileType ruby setlocal ts=2 sts=2 sw=2 re=1 expandtab
autocmd FileType sql setlocal ts=2 sts=2 sw=2 expandtab
use nom::is_alphabetic;
use std::str;
#[derive(Debug, PartialEq, Eq)]
pub enum Keyword {
Unknown,
Help,
Echo,
}
$ npm run snyk-protect
> @kiali/[email protected] snyk-protect /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui
> snyk protect
<--- Last few GCs --->
[1712:0x5568d38c50a0] 67669 ms: Mark-sweep 1280.0 (1416.8) -> 1279.9 (1360.8) MB, 122.0 / 0.0 ms (average mu = 0.197, current mu = 0.000) last resort GC in old space requested
[1712:0x5568d38c50a0] 67797 ms: Mark-sweep 1279.9 (1360.8) -> 1279.9 (1352.3) MB, 128.3 / 0.0 ms (average mu = 0.105, current mu = 0.000) last resort GC in old space requested
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/actions/GraphDataThunkActions.ts:35:80 - 'getState' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/app/App.tsx:33:20 - 'e' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/app/AuthenticationController.tsx:67:5 - 'prevState' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/components/BreadcrumbView/BreadcrumbView.tsx:65:5 - 'prevState' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/components/BreadcrumbView/BreadcrumbView.tsx:66:5 - 'snapshot' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/kiali/kiali-ui/src/components/CytoscapeGraph/ContextMenu/NodeContextMenu.tsx:147:22 - 'e' is declared but its value is never read.
ERROR: /home/cfcosta/Projects/go/src/github.com/ki
./src/store/Selectors/GraphData.ts
Line 103: Expected to return a value in arrow function array-callback-return
Line 108: Prefer 'as DecoratedGraphNodeData' instead of '<DecoratedGraphNodeData>' when doing type assertions @typescript-eslint/no-angle-bracket-type-assertion
Line 110: Prefer 'as DecoratedGraphNodeWrapper' instead of '<DecoratedGraphNodeWrapper>' when doing type assertions @typescript-eslint/no-angle-bracket-type-assertion
Line 128: Prefer 'as DecoratedGraphEdgeData' instead of '<DecoratedGraphEdgeData>' when doing type assertions @typescript-eslint/no-angle-bracket-type-assertion
Line 130: Prefer 'as DecoratedGraphEdgeWrapper' instead of '<DecoratedGraphEdgeWrapper>' when doing type assertions @typescript-eslint/no-angle-bracket-type-assertion
./src/components/CytoscapeGraph/ContextMenu/NodeContextMenu.tsx
Line 107: Anchors must have content and the content must be accessible by a screen reader jsx-
Compiled with warnings. ./src/components/CytoscapeGraph/ContextMenu/NodeContextMenu.tsx Line 107: Anchors must have content and the content must be accessible by a screen reader jsx-a11y/anchor-has-content ./src/components/MessageCenter/NotificationDrawer.tsx Line 108: The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md jsx-a11y/anchor-is-valid ./src/components/Nav/Menu.tsx Line 13: Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener react/jsx-no-target-blank ./src/components/IstioWizards/Slider/Slider.tsx Line 184: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images jsx-a11y/alt-te