Skip to content

Commit

Permalink
Merge pull request #203 from cr7258/fix-typo
Browse files Browse the repository at this point in the history
fix: fix typo ngnix to nginx
  • Loading branch information
Peefy authored Nov 12, 2023
2 parents f813aee + 93ed7ae commit 05a3424
Show file tree
Hide file tree
Showing 39 changed files with 154 additions and 154 deletions.
4 changes: 2 additions & 2 deletions blog/2023-07-14-kcl-0.5.0-release/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ spec:
params:
name: app
containers:
ngnix:
image: ngnix
nginx:
image: nginx
ports:
- containerPort: 80
service:
Expand Down
4 changes: 2 additions & 2 deletions blog/2023-09-08-dcm-using-kcl/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ spec:
params:
name: app
containers:
ngnix:
image: ngnix
nginx:
image: nginx
ports:
- containerPort: 80
service:
Expand Down
2 changes: 1 addition & 1 deletion docs/user_docs/concepts/type-and-definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ where $k$ is the attribute name, $v$ is the attributes value, and $T$ is the typ
By default, KCL does not require type annotations and performs type checks at runtime.

```python
name = "ngnix" # The type of `name` is `str`
name = "nginx" # The type of `name` is `str`
port = 80 # The type of `port` is `int`
```

Expand Down
12 changes: 6 additions & 6 deletions docs/user_docs/guides/abstraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
}
```

In the above code, we defined a configuration using the `App` schema, where we configured an `ngnix` container and configured it with an `80` service port.
In the above code, we defined a configuration using the `App` schema, where we configured an `nginx` container and configured it with an `80` service port.

Besides, KCL allows developers to define the resources required for their applications in a declarative manner and is tied to a platform such as Docker Compose or Kubernetes manifests and allows to generate a platform-specific configuration file such as `docker-compose.yaml` or a Kubernetes `manifests.yaml` file. Next, let's generate the corresponding configuration.

Expand All @@ -85,7 +85,7 @@ The output is
```yaml
services:
app:
image: ngnix
image: nginx
ports:
- published: 80
target: 80
Expand Down Expand Up @@ -120,8 +120,8 @@ spec:
app: app
spec:
containers:
- name: ngnix
image: ngnix
- name: nginx
image: nginx
ports:
- protocol: TCP
containerPort: 80
Expand Down
4 changes: 2 additions & 2 deletions examples/abstraction/main.k
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ spec:
params:
name: app
containers:
ngnix:
image: ngnix
nginx:
image: nginx
ports:
- containerPort: 80
service:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ spec:
params:
name: app
containers:
ngnix:
image: ngnix
nginx:
image: nginx
ports:
- containerPort: 80
service:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ where $k$ is the attribute name, $v$ is the attributes value, and $T$ is the typ
By default, KCL does not require type annotations and performs type checks at runtime.

```python
name = "ngnix" # The type of `name` is `str`
name = "nginx" # The type of `name` is `str`
port = 80 # The type of `port` is `int`
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
}
```

在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。

此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。

Expand All @@ -83,7 +83,7 @@ kcl main.k docker_compose_render.k
```yaml
services:
app:
image: ngnix
image: nginx
ports:
- published: 80
target: 80
Expand Down Expand Up @@ -118,8 +118,8 @@ spec:
app: app
spec:
containers:
- name: ngnix
image: ngnix
- name: nginx
image: nginx
ports:
- protocol: TCP
containerPort: 80
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
}
```

在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。

此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。

Expand All @@ -74,7 +74,7 @@ app.App {
$ kcl main.k docker_compose_render.k
services:
app:
image: ngnix
image: nginx
ports:
- published: 80
target: 80
Expand Down Expand Up @@ -104,8 +104,8 @@ spec:
app: app
spec:
containers:
- name: ngnix
image: ngnix
- name: nginx
image: nginx
ports:
- protocol: TCP
containerPort: 80
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
}
```

在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。

此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。

Expand All @@ -79,7 +79,7 @@ kcl main.k docker_compose_render.k
```yaml
services:
app:
image: ngnix
image: nginx
ports:
- published: 80
target: 80
Expand Down Expand Up @@ -114,8 +114,8 @@ spec:
app: app
spec:
containers:
- name: ngnix
image: ngnix
- name: nginx
image: nginx
ports:
- protocol: TCP
containerPort: 80
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
}
```

在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。

此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。

Expand All @@ -79,7 +79,7 @@ kcl main.k docker_compose_render.k
```yaml
services:
app:
image: ngnix
image: nginx
ports:
- published: 80
target: 80
Expand Down Expand Up @@ -114,8 +114,8 @@ spec:
app: app
spec:
containers:
- name: ngnix
image: ngnix
- name: nginx
image: nginx
ports:
- protocol: TCP
containerPort: 80
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
}
```

在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。

此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。

Expand All @@ -83,7 +83,7 @@ kcl main.k docker_compose_render.k
```yaml
services:
app:
image: ngnix
image: nginx
ports:
- published: 80
target: 80
Expand Down Expand Up @@ -118,8 +118,8 @@ spec:
app: app
spec:
containers:
- name: ngnix
image: ngnix
- name: nginx
image: nginx
ports:
- protocol: TCP
containerPort: 80
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
}
```

在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。

此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。

Expand All @@ -83,7 +83,7 @@ kcl main.k docker_compose_render.k
```yaml
services:
app:
image: ngnix
image: nginx
ports:
- published: 80
target: 80
Expand Down Expand Up @@ -118,8 +118,8 @@ spec:
app: app
spec:
containers:
- name: ngnix
image: ngnix
- name: nginx
image: nginx
ports:
- protocol: TCP
containerPort: 80
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ where $k$ is the attribute name, $v$ is the attributes value, and $T$ is the typ
By default, KCL does not require type annotations and performs type checks at runtime.

```python
name = "ngnix" # The type of `name` is `str`
name = "nginx" # The type of `name` is `str`
port = 80 # The type of `port` is `int`
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
}
```

在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。

此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。

Expand All @@ -83,7 +83,7 @@ kcl main.k docker_compose_render.k
```yaml
services:
app:
image: ngnix
image: nginx
ports:
- published: 80
target: 80
Expand Down Expand Up @@ -118,8 +118,8 @@ spec:
app: app
spec:
containers:
- name: ngnix
image: ngnix
- name: nginx
image: nginx
ports:
- protocol: TCP
containerPort: 80
Expand Down
Loading

0 comments on commit 05a3424

Please sign in to comment.