-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into proxy-restart-annotation
- Loading branch information
Showing
24 changed files
with
435 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
podSelector: | ||
resource: | ||
kind: Pod | ||
version: v1 | ||
filter: $matchByLabelSelector($item, $root.spec.selector.matchLabels) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
body: | ||
- source: spec.jwtRules | ||
name: spec.jwtRules | ||
showHeader: false | ||
widget: Table | ||
collapsibleTitle: '"Issuer " & $item.issuer' | ||
collapsible: | ||
- source: issuer | ||
name: spec.jwtRules.issuer | ||
widget: Text | ||
- source: jwksUri | ||
name: spec.jwtRules.jwksUri | ||
widget: Text | ||
- source: audiences | ||
name: spec.jwtRules.audiences | ||
widget: JoinedArray | ||
- source: fromParams | ||
name: spec.jwtRules.fromParams | ||
widget: JoinedArray | ||
- source: fromCookies | ||
name: spec.jwtRules.fromCookies | ||
widget: JoinedArray | ||
- source: fromHeaders | ||
name: spec.jwtRules.fromHeaders | ||
widget: Table | ||
showHeader: false | ||
collapsibleTitle: '"Header " & $item.name' | ||
collapsible: | ||
- source: name | ||
name: spec.jwtRules.fromHeaders.name | ||
widget: Text | ||
- source: prefix | ||
name: spec.jwtRules.fromHeaders.prefix | ||
widget: Text | ||
- widget: Panel | ||
name: spec.selector.matchLabels | ||
disablePadding: true | ||
children: | ||
- source: $podSelector() | ||
widget: ResourceList | ||
disableCreate: true | ||
visibility: $exists($root.spec.selector.matchLabels) and $boolean($root.spec.selector.matchLabels) | ||
- source: spec.selector | ||
widget: Panel | ||
name: selector.matchesAllPods | ||
visibility: $not($exists($value)) or $not($boolean($value)) | ||
header: | ||
- source: spec.selector.matchLabels | ||
widget: Labels | ||
name: spec.selector.matchLabels | ||
visibility: $exists($value) and $boolean($value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
- path: spec.selector.matchLabels | ||
widget: KeyValuePair | ||
defaultExpanded: true | ||
- path: spec.jwtRules | ||
name: spec.jwtRules | ||
widget: GenericList | ||
simple: true | ||
children: | ||
- path: '[].issuer' | ||
- path: '[].jwksUri' | ||
name: spec.jwtRules.jwksUri | ||
- path: '[].audiences' | ||
widget: SimpleList | ||
children: | ||
- path: '[]' | ||
- path: '[].fromParams' | ||
widget: SimpleList | ||
children: | ||
- path: '[]' | ||
- path: '[].fromCookies' | ||
widget: SimpleList | ||
children: | ||
- path: '[]' | ||
- path: '[].fromHeaders' | ||
simple: true | ||
widget: GenericList | ||
children: | ||
- path: '[].name' | ||
- path: '[].prefix' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
resource: | ||
kind: RequestAuthentication | ||
group: security.istio.io | ||
version: v1beta1 | ||
urlPath: requestauthentications | ||
category: Istio | ||
name: Request Authentications | ||
scope: namespace | ||
description: >- | ||
{{[Istio Request Authentication](https://istio.io/latest/docs/reference/config/security/request_authentication)}} | ||
defines what request authentication methods are supported by a workload. | ||
|
14 changes: 14 additions & 0 deletions
14
config/ui-extensions/requestauthentications/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
configMapGenerator: | ||
- name: requestauthentications-ui.operator.kyma-project.io | ||
namespace: kyma-system | ||
files: | ||
- general | ||
- dataSources | ||
- details | ||
- form | ||
- translations | ||
options: | ||
disableNameSuffixHash: true | ||
labels: | ||
busola.io/extension: resource | ||
busola.io/extension-version: "0.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
en: | ||
spec.jwtRules: JWT Rules | ||
spec.jwtRules.issuer: Issuer | ||
spec.jwtRules.jwksUri: JWKS URI | ||
spec.jwtRules.jwks: JWKS | ||
spec.jwtRules.audiences: Audiences | ||
spec.jwtRules.fromParams: From Params | ||
spec.jwtRules.fromCookies: From Cookies | ||
spec.jwtRules.fromHeaders: From Headers | ||
spec.jwtRules.fromHeaders.name: Name | ||
spec.jwtRules.fromHeaders.prefix: Prefix | ||
spec.selector.matchLabels: Selector | ||
selector.matchesAllPods: Matches all Pods in the Namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
docs/user/troubleshooting/03-70-cannot-connect-to-hana-db.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Issues with Connection to SAP HANA Database | ||
|
||
## Symptom | ||
|
||
You're unable to connect an application to a SAP HANA Database instance. | ||
|
||
## Troubleshooting | ||
|
||
The Istio module's default configuration does not restrict outbound traffic. This means that the application should have no issues connecting to the SAP HANA Database instance. | ||
To determine the cause of the connection issue, follow the troubleshooting steps. | ||
|
||
### Connect to the SAP HANA Database Instance from Outside of the Cluster | ||
1. Download SAP HANA Client for your operating system from the [SAP Development Tools](https://tools.hana.ondemand.com/#hanatools). | ||
2. Unpack the downloaded archive. | ||
3. Install SAP HANA Client. | ||
4. Connect to SAP HANA Database instance using the following command: | ||
```bash | ||
hdbsql -n {HANA_DB_INSTANCE_ADDRESS} -u {HANA_DB_USER} -p {HANA_DB_PASSWORD} | ||
``` | ||
For example: | ||
```bash | ||
hdbsql -n aaa.bbb.ccc.ddd:30015 -u my_user -p mypassword | ||
``` | ||
5. If the connection is successful and you can execute queries, the issue is not related to the SAP HANA Database instance. | ||
### Connect to the SAP HANA Database Instance from Inside of the Cluster | ||
1. Build a Docker image with the SAP HANA Client installed. You can use the following Dockerfile: | ||
```Dockerfile | ||
FROM eclipse-temurin:17 | ||
WORKDIR /build | ||
COPY client.tar client.tar | ||
RUN tar -xvf client.tar | ||
RUN echo "/usr/local/bin" | ./client/hdbinst | ||
ENTRYPOINT ["sleep", "8000"] | ||
``` | ||
Download the SAP HANA Client for Linux x86 64-bit from [SAP Development Tools](https://tools.hana.ondemand.com/#hanatools) and save it as `client.tar` in the same directory as the Dockerfile. Then, run the following command to build the image: | ||
```bash | ||
docker buildx build --platform=linux/amd64 -t hdbsql . | ||
``` | ||
2. To test your image, run the following command: | ||
```bash | ||
docker run --entrypoint "hdbsql" hdbsql -v | ||
``` | ||
You get an output similar to this example: | ||
``` | ||
HDBSQL version 2.20.20.1712178305, the SAP HANA Database interactive terminal. | ||
Copyright 2000-2024 by SAP SE. | ||
``` | ||
3. Publish the image to a container registry. | ||
4. Run the image in the Kubernetes cluster: | ||
```bash | ||
kubectl create deployment hdbsql --image={PUBLISHED_IMAGE_NAME} | ||
``` | ||
5. Attach to the Pod and try to connect to the SAP HANA Database instance using the following command: | ||
```bash | ||
hdbsql -n {HANA_DB_INSTANCE_ADDRESS} -u {HANA_DB_USER} -p {HANA_DB_PASSWORD} | ||
``` | ||
6. If the connection is successful and you can execute queries, the issue is not related to the setup of the cluster. | ||
7. Check the connection from a Pod that has the Istio sidecar injected. In that case, create the Deployment in a namespace with Istio sidecar injection enabled. The connection should be successful. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,7 @@ module.exports = defineConfig({ | |
], | ||
supportFile: 'support/index.ts', | ||
}, | ||
retries: { | ||
runMode: 2, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: placeholderName | ||
namespace: placeholderNamespace | ||
labels: | ||
app: placeholderName | ||
spec: | ||
containers: | ||
- name: test-container | ||
image: eu.gcr.io/kyma-project/external/kennethreitz/httpbin | ||
command: ["/bin/sh", "-c"] | ||
args: | ||
- while true; do sleep 1; done; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
Cypress.Commands.add('inputClearAndType', (selector: string, newValue: string, filterFilledInputs = false): void => { | ||
let input = cy.get(selector) | ||
.find('input:visible'); | ||
let input = cy.get(selector); | ||
|
||
if (filterFilledInputs) { | ||
input = input.filterWithNoValue(); | ||
} | ||
|
||
input.click() | ||
input.scrollIntoView() | ||
.find('input:visible') | ||
.click() | ||
.clear({force: true}) | ||
.type(newValue, {force: true}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import "./authorizationPolicy" | ||
import "./namespace" | ||
import "./service" | ||
import "./pod"; | ||
export {Commands as K8sClientCommands} from "./commands"; | ||
export {KubernetesConfig, getK8sCurrentContext} from "./kubeconfig"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import {loadFixture} from "./loadFile"; | ||
import * as k8s from "@kubernetes/client-node"; | ||
import {postApi} from "./httpClient"; | ||
|
||
Cypress.Commands.add('createHttpbinSleepPod', (name: string, namespace: string) => { | ||
// @ts-ignore Typing of cy.then is not good enough | ||
cy.wrap(loadFixture('pod-httpbin-sleep.yaml')).then((s: k8s.V1Pod): void => { | ||
s.metadata!.name = name | ||
s.metadata!.namespace = namespace | ||
s.metadata!.labels ? s.metadata!.labels["app"] = name : s.metadata!.labels = {"app": name} | ||
// We have to use cy.wrap, since the post command uses a cy.fixture internally | ||
cy.wrap(postApi(`v1/namespaces/${namespace}/pods`, s)).should("be.true"); | ||
}) | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.