Skip to content

Commit

Permalink
Add DNSPolicy create page with custom layout
Browse files Browse the repository at this point in the history
Signed-off-by: David Martin <[email protected]>
  • Loading branch information
david-martin committed Sep 11, 2024
1 parent cb7e0d8 commit fbfde44
Show file tree
Hide file tree
Showing 13 changed files with 911 additions and 23 deletions.
11 changes: 11 additions & 0 deletions console-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
"component": { "$codeRef": "KuadrantPoliciesPage" }
}
},
{
"type": "console.resource/create",
"properties": {
"model": {
"group": "kuadrant.io",
"version": "v1alpha1",
"kind": "DNSPolicy"
},
"component": { "$codeRef": "KuadrantDNSPolicyCreatePage" }
}
},
{
"type": "console.page/route",
"properties": {
Expand Down
33 changes: 32 additions & 1 deletion locales/en/plugin__console-plugin-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"Age": "Age",
"Name": "Name",
"Namespace": "Namespace",
"Select a Namespace": "Select a Namespace",
"Address": "Address",
"Dashboard": "Dashboard",
"Policies": "Policies",
Expand All @@ -25,5 +26,35 @@
"Auth": "Auth",
"RateLimit": "RateLimit",
"Edit": "Edit",
"Delete": "Delete"
"Delete": "Delete",
"Create DNSPolicy": "Create DNSPolicy",
"Policy Name": "Policy Name",
"DNSPolicy configures how North-South based traffic should be balanced and reach the gateways": "DNSPolicy configures how North-South based traffic should be balanced and reach the gateways",
"Unique name of the DNS Policy": "Unique name of the DNS Policy",
"Health Check": "Health Check",
"Routing Strategy": "Routing Strategy",
"Routing Strategy to use": "Routing Strategy to use",
"Error creating DNSPolicy": "Error creating DNSPolicy",
"Select a gateway": "Select a gateway",
"You can view and create Gateways": "You can view and create Gateways",
"Gateway API Target Reference": "Gateway API Target Reference",
"Select Gateway": "Select Gateway",
"Default Geo": "Default Geo",
"Default Weight": "Default Weight",
"Custom Weight Selectors": "Custom Weight Selectors",
"Expression Key": "Key",
"Expression Operator": "Operator",
"Expression Values": "Values",
"Remove Value": "Remove Value",
"Add Value": "Add Value",
"Add Match Expression": "Add Match Expression",
"Remove Match Expression": "Remove Match Expression",
"Add Match Label": "Add Match Label",
"Remove Match Label": "Remove Match Label",
"Remove Custom Selector": "Remove Custom Selector",
"Add Custom Weight Selector": "Add Custom Weight Selector",
"Endpoint": "Endpoint",
"Failure Threshold": "Failure Threshold",
"Port": "Port",
"Protocol": "Protocol"
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"exposedModules": {
"KuadrantDashboardPage": "./components/KuadrantDashboardPage",
"PolicyTopologyPage": "./components/PolicyTopologyPage",
"KuadrantPoliciesPage": "./components/KuadrantPoliciesPage"
"KuadrantPoliciesPage": "./components/KuadrantPoliciesPage",
"KuadrantDNSPolicyCreatePage": "./components/KuadrantDNSPolicyCreatePage"
},
"dependencies": {
"@console/pluginAPI": "*"
Expand All @@ -90,6 +91,7 @@
"babel-loader": "^8.2.0",
"graphlib": "^2.1.8",
"graphlib-dot": "^0.6.4",
"js-yaml": "^4.1.0",
"react-policy-topology": "^0.1.10"
}
}
Loading

0 comments on commit fbfde44

Please sign in to comment.