The Rancher UI
Go to file
Westly Wright aa33b16785
Service validation
Adds the following validation:
Service Ports - adds extra checks for port name, fixes invalid check for externalname services
ClusterIP - Conditional Checks on service types and ip none check
ExternalName
2020-10-20 08:58:18 -07:00
.storybook move presets for storybook to addons 2020-06-03 10:49:36 -07:00
.vscode Support git repos, server no longer has namespaced repos 2020-08-10 15:58:55 -07:00
assets Service validation 2020-10-20 08:58:18 -07:00
chart Merge pull request #1662 from westlywright/bug.monitoring.upgrade.warning 2020-10-19 12:36:44 -06:00
components Merge pull request #1663 from westlywright/bug.delete.modal.link 2020-10-19 12:37:53 -06:00
config Fleet fixes (#1612) 2020-10-04 01:21:29 -07:00
detail fix test id sort order 2020-10-19 13:14:28 -07:00
edit Merge pull request #1654 from mantis-toboggan-md/bugfix-portrule-style 2020-10-19 12:25:35 -06:00
layouts Assign clusters to workspace & label them 2020-10-02 02:54:01 -07:00
list Fleet fixes (#1612) 2020-10-04 01:21:29 -07:00
middleware Don't use redirect on client side auth error 2020-09-29 02:57:56 -07:00
mixins Fix creating fleet resources when in a different cluster 2020-09-24 03:04:54 -07:00
models Service validation 2020-10-20 08:58:18 -07:00
pages Merge pull request #1662 from westlywright/bug.monitoring.upgrade.warning 2020-10-19 12:36:44 -06:00
plugins Restore target mode on gitrepo edit 2020-10-05 17:33:36 -07:00
scripts Clear catalog store on cluster change 2020-09-03 20:59:50 -07:00
server Enabling no-console rule for eslint 2020-04-24 10:37:10 -07:00
static favicon 502 2020-04-22 10:08:59 -07:00
store Less subscribe logging 2020-10-04 02:14:32 -07:00
stories story error 2020-06-03 10:46:01 -07:00
test matchExpressions to matchLabels simplification support 2020-09-09 01:18:47 -07:00
utils Service validation 2020-10-20 08:58:18 -07:00
.ackrc Fleet list & details 2020-09-30 05:05:53 -07:00
.dockerignore Service Networking and HealthCheck 2019-10-23 16:10:18 -07:00
.drone.yml Build embedded versions 2020-08-09 16:41:18 -07:00
.eslintignore Support hidden chart annotation 2020-07-31 20:01:28 -07:00
.eslintrc.js Git repo resources & non-ready, general conditions & events 2020-09-22 14:25:49 -07:00
.gitignore Cluster dashboard overview feedback 2020-04-02 11:17:22 -07:00
Dockerfile Yes dapper 2019-09-04 15:29:31 -07:00
Dockerfile.dev Project picker/filter, standalone steve 2020-03-17 23:07:33 -07:00
LICENSE License 2019-12-31 15:21:43 -07:00
README.md Update README.md 2020-10-05 05:37:28 -07:00
babel.config.js Remove vue-native-websocket, use socket per norman client, typescript support 2019-12-18 17:20:14 -07:00
jsconfig.json Better standaone Steve support 2020-03-07 03:42:40 -07:00
nuxt.config.js Pass version & commit 2020-08-31 16:18:29 -07:00
package.json Bump nuxt 2020-09-24 03:04:53 -07:00
yarn.lock Bump nuxt 2020-09-24 03:04:53 -07:00

README.md

dashboard

Build Status

Dashboard UI. For the other Rancher UI see rancher/ui.

Build Setup

# Install dependencies
yarn install

# For development, serve with hot reload at https://localhost:8005
# using the endpoint for your Rancher API
API=https://your-rancher yarn dev
# Goto https://localhost:8005

# Build for use within Rancher
./scripts/build-embedded # for embedding into rancher builds
./scripts/build-hosted # for hosting on a static file webserver and pointing Rancher's ui-dashboard-index at it
# Output in dist/

# Build for production and launch nodejs server
# (Rancher does not currently use this mode or server-side rendering)
yarn build
yarn start

# Development via Docker instead of local nodejs
docker build -f Dockerfile.dev -t dashboard:dev
docker run -v $(pwd):/src \
  -v dashboard_node:/src/node_modules \
  -p 8005:8005 \
  -e API=https://your-rancher \
  dashboard:dev
# The first time will take forever installing node_modules into the volume; it will be faster next time.
# Goto https://localhost:8005

Multiple GitHub auth configs

Auth supports multiple GitHub auth URLs and using the appropriate one based on the Host header that a request comes in on. This is particularly useful for development against a server that already has GitHub setup.

In management.cattle.io.authconfig, edit the github entry. Add a hostnameToClientId map of Host header value -> GitHub client ID:

hostnameToClientId:
  "localhost:8005": <your GitHub Client ID for localhost:8005>

In the secret, namespace cattle-global-data, edit githubconfig-clientsecret. Add GitHub client ID -> base64-encoded client secret to the data section:

data:
  clientsecret: <the normal client secret already configured>
  <your client id>: <your base64-encoded client secret for localhost:8005>

License

Copyright (c) 2014-2020 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.