Skip to content

Commit

Permalink
chore(build): ephemeral env frontend.yaml (#932)
Browse files Browse the repository at this point in the history
* add deploy/frontend.yaml
* IMAGE required, RHCLOUD-18589
  • Loading branch information
mirekdlugosz authored and cdcabrera committed May 26, 2022
1 parent 854dc15 commit 7de7d34
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# --------------------------------------------
# name of app-sre "application" folder this component lives in; needs to match for quay
export COMPONENT="rhsm"
# IMAGE should match the quay repo set by app.yaml in app-interface
export IMAGE="quay.io/cloudservices/curiosity-frontend"
export APP_NAME=`node -e 'console.log(require("./package.json").insights.appname)'`
export APP_ROOT=$(pwd)
export NODE_BUILD_VERSION=`node -e 'console.log(require("./package.json").engines.node.match(/(\d+)\.\d+\.\d+/)[1])'`
Expand Down
82 changes: 82 additions & 0 deletions deploy/frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
apiVersion: v1
kind: Template
metadata:
name: rhsm-frontend
objects:
- apiVersion: cloud.redhat.com/v1alpha1
kind: Frontend
metadata:
# this must match appList value in frontend-configs/deploy/deploy.yaml
name: subscriptions
spec:
envName: ${ENV_NAME}
title: rhsm
deploymentRepo: https://github.com/RedHatInsights/curiosity-frontend
API:
versions:
- v1
frontend:
paths:
- /apps/subscriptions
image: ${IMAGE}:${IMAGE_TAG}
navItems:
# use *-navigation.json in cloud-services-config for reference
- title: "Subscriptions"
expandable: true
routes:
- appId: "subscriptions"
title: "All RHEL"
href: "/insights/subscriptions/rhel"
product: "Subscription Watch"
- appId: "subscriptions"
title: "ARM"
href: "/insights/subscriptions/rhel-arm"
product: "Subscription Watch"
- appId: "subscriptions"
title: "IBM Power"
href: "/insights/subscriptions/rhel-ibmpower"
product: "Subscription Watch"
- appId: "subscriptions"
title: "IBM Z systems"
href: "/insights/subscriptions/rhel-ibmz"
product: "Subscription Watch"
- appId: "subscriptions"
title: "X86"
href: "/insights/subscriptions/rhel-x86"
product: "Subscription Watch"
- appId: "subscriptions"
title: "OpenShift Subscriptions"
href: "/openshift/subscriptions/openshift-container"
product: "Subscription Watch"
- appId: "subscriptions"
title: "Dedicated (On-Demand)"
href: "/openshift/subscriptions/openshift-dedicated"
product: "Subscription Watch"
- appId: "subscriptions"
title: "Streams for Apache Kafka"
href: "/application-services/subscriptions/streams"
product: "Subscription Watch"
module:
# this should match chrome/fed-modules.json in cloud-services-config
manifestLocation: "/apps/subscriptions/fed-mods.json"
modules:
- id: "application-services-subscriptions"
module: "./RootApp"
routes:
- pathname: "/application-services/subscriptions"
- id: "insights-subscriptions"
module: "./RootApp"
routes:
- pathname: "/insights/subscriptions"
- id: "openshift-subscriptions"
module: "./RootApp"
routes:
- pathname: "/openshift/subscriptions"

parameters:
- name: ENV_NAME
required: true
- name: IMAGE_TAG
required: true
- name: IMAGE
value: quay.io/cloudservices/rhsm-frontend
2 changes: 2 additions & 0 deletions pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# --------------------------------------------
# name of app-sre "application" folder this component lives in; needs to match for quay
export COMPONENT="rhsm"
# IMAGE should match the quay repo set by app.yaml in app-interface
export IMAGE="quay.io/cloudservices/curiosity-frontend"
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
export APP_ROOT=$(pwd)
export NODE_BUILD_VERSION=`node -e 'console.log(require("./package.json").engines.node.match(/(\d+)\.\d+\.\d+/)[1])'`
Expand Down

0 comments on commit 7de7d34

Please sign in to comment.