Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,11 @@ rules:
settings:
react:
version: detect
overrides:
- files:
- scripts/**/*.mjs
env:
node: true
rules:
camelcase: off
no-console: off
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ If your Lightspeed service is running locally on `http://localhost:8080`, the
`start-console.sh` script includes a proxy configuration that routes requests
through the console, avoiding CORS issues.

`start-console.sh` uses `quay.io/openshift/origin-console:4.22` by default to
match this plugin's SDK version. If the Lightspeed chat icon is missing, check
the browser console for plugin errors and try pinning the image explicitly:
`CONSOLE_TAG=4.22 npm run start-console`.

**kind / plain Kubernetes:** kubeconfigs often use client certificates instead of
bearer tokens. Use `npm run start-console-kind` (or
`ALLOW_DEV_TOKEN_MINT=1 npm run start-console`) to mint a temporary dev
ServiceAccount token. This creates cluster-admin credentials for local use only.

#### Running start-console with Apple silicon and podman

If you are using podman on a Mac with Apple silicon, `npm run start-console`
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"build": "npm run clean && NODE_ENV=production npm run ts-node node_modules/.bin/webpack",
"build-dev": "npm run clean && npm run ts-node node_modules/.bin/webpack",
"start": "npm run ts-node node_modules/.bin/webpack serve",
"start-mock-ols": "node scripts/mock-ols-server.mjs",
"start-console": "./start-console.sh",
"start-console-kind": "ALLOW_DEV_TOKEN_MINT=1 ./start-console.sh",
"i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js",
"ts-node": "ts-node -O '{\"module\":\"commonjs\"}'",
"lint": "eslint ./*.{js,ts} ./src ./tests ./unit-tests && stylelint \"src/**/*.css\" --allow-empty-input",
Expand Down
Loading