Skip to content

Commit

Permalink
Merge pull request #3048 from yurake/feature
Browse files Browse the repository at this point in the history
update docs #2804
  • Loading branch information
yurake authored Feb 14, 2023
2 parents 1285b43 + 8268c90 commit 30aabba
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ engines:
enabled: false
MD013:
enabled: false
MD029:
enabled: false
MD030:
enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ public class PostgresService implements Database {
@ConfigProperty(name = "postgres.delete.msg")
String deletesql;

@ConfigProperty(name = "postgres.id")
String sqlkey;

@ConfigProperty(name = "postgres.body")
String sqlbody;

private final Logger logger = Logger.getLogger(this.getClass().getSimpleName());

public boolean connectionStatus() {
Expand All @@ -62,8 +56,8 @@ public boolean connectionStatus() {
@Override
public MsgBean insertMsg() throws SQLException, NoSuchAlgorithmException {
MsgBean msgbean = new MsgBean(CreateId.createid(), message, "Insert");
String sql = insertsql.replace(sqlkey, MsgUtils.intToString(msgbean.getId()))
.replace(sqlbody, msgbean.getMessage());
String sql = insertsql.replace("msgid", MsgUtils.intToString(msgbean.getId()))
.replace("msgbody", msgbean.getMessage());

try (Connection con = ds.getConnection();
Statement stmt = con.createStatement()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ quarkus.hibernate-orm.dialect=org.hibernate.dialect.PostgreSQLDialect
postgres.select.msg=SELECT * FROM msg
postgres.delete.msg=DELETE FROM msg
postgres.insert.msg=INSERT INTO msg (id, msg) VALUES (msgid, 'msgbody')
postgres.id=msgid
postgres.body=msgbody
8 changes: 5 additions & 3 deletions kubernetes/jaeger/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### Download at:
https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/all-in-one/jaeger-all-in-one-template.yml
# Download at

<https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/all-in-one/jaeger-all-in-one-template.yml>

## Add resource

### Add resource
Cahnge LoadBalancer to Service IP
Add Ingress Resource

Expand Down
4 changes: 2 additions & 2 deletions kubernetes/monitoring/loki/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
https://github.com/grafana/loki/tree/master/production/helm
# Install

## Install
<https://github.com/grafana/loki/tree/master/production/helm>

```bash
helm repo add grafana https://grafana.github.io/helm-charts
Expand Down
9 changes: 6 additions & 3 deletions kubernetes/monitoring/optional/argo/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
### Download at
https://github.com/argoproj/argo-workflows/releases/download/v3.4.1/install.yaml
# Download at

<https://github.com/argoproj/argo-workflows/releases/download/v3.4.1/install.yaml>

## Add resource

### Add resource
Change namespace to monitoring
Cahnge LoadBalancer to Service IP
Add Ingress Resource

### Install for

`kubectl apply -f install.yaml`
14 changes: 8 additions & 6 deletions kubernetes/monitoring/optional/tekton/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### Installing Tekton Pipelines
https://github.com/tektoncd/pipeline/blob/master/docs/install.md
# Installing Tekton Pipelines

<https://github.com/tektoncd/pipeline/blob/master/docs/install.md>

```sh
$ kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
Expand Down Expand Up @@ -34,10 +35,11 @@ tekton-pipelines-controller-8954886cc-h8gfd 1/1 Running 0 15s
tekton-pipelines-webhook-6c9bccbd6c-9cscr 1/1 Running 0 15s
```

### Hello World Tutorial
https://github.com/tektoncd/pipeline/blob/master/docs/tutorial.md
## Hello World Tutorial

```sh
<https://github.com/tektoncd/pipeline/blob/master/docs/tutorial.md>

```bash
$ kubectl apply -f echo-hello-world.yaml
task.tekton.dev/echo-hello-world created

Expand Down Expand Up @@ -85,4 +87,4 @@ task.tekton.dev/echo-hello-world 13m

NAME SUCCEEDED REASON STARTTIME COMPLETIONTIME
taskrun.tekton.dev/echo-hello-world-task-run True Succeeded 12m 11m
```
```

0 comments on commit 30aabba

Please sign in to comment.