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 |
||
|---|---|---|
| .storybook | ||
| .vscode | ||
| assets | ||
| chart | ||
| components | ||
| config | ||
| detail | ||
| edit | ||
| layouts | ||
| list | ||
| middleware | ||
| mixins | ||
| models | ||
| pages | ||
| plugins | ||
| scripts | ||
| server | ||
| static | ||
| store | ||
| stories | ||
| test | ||
| utils | ||
| .ackrc | ||
| .dockerignore | ||
| .drone.yml | ||
| .eslintignore | ||
| .eslintrc.js | ||
| .gitignore | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| LICENSE | ||
| README.md | ||
| babel.config.js | ||
| jsconfig.json | ||
| nuxt.config.js | ||
| package.json | ||
| yarn.lock | ||
README.md
dashboard
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.