Skip to content

Commit

Permalink
rename runtime: kata-cc-isolation -> contrast-cc-isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 committed Apr 16, 2024
1 parent 32a26d7 commit 49f55e2
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ helm template release-name chart-name > resources/all.yml
```

To specify that a workload (pod, deployment, etc.) should be deployed as confidential containers,
add `runtimeClassName: kata-cc-isolation` to the pod spec (pod definition or template).
add `runtimeClassName: contrast-cc-isolation` to the pod spec (pod definition or template).
In addition, add the Contrast Initializer as `initContainers` to these workloads and configure the
workload to use the certificates written to a `volumeMount` named `tls-certs`.

```yaml
spec: # v1.PodSpec
runtimeClassName: kata-cc-isolation
runtimeClassName: contrast-cc-isolation
initContainers:
- name: initializer
image: "ghcr.io/edgelesssys/contrast/initializer:latest"
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func findGenerateTargets(args []string, logger *slog.Logger) ([]string, error) {
}
}

paths = filterNonCoCoRuntime("kata-cc-isolation", paths, logger)
paths = filterNonCoCoRuntime("contrast-cc-isolation", paths, logger)

if len(paths) == 0 {
return nil, fmt.Errorf("no .yml/.yaml files found")
Expand Down
2 changes: 1 addition & 1 deletion deployments/emojivoto-sm-egress/coordinator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
annotations:
contrast.edgeless.systems/pod-role: coordinator
spec:
runtimeClassName: kata-cc-isolation
runtimeClassName: contrast-cc-isolation
containers:
- name: coordinator
image: "ghcr.io/edgelesssys/contrast/coordinator:latest"
Expand Down
2 changes: 1 addition & 1 deletion deployments/emojivoto-sm-egress/emoji.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
app.kubernetes.io/name: emoji-svc
version: v11
spec:
runtimeClassName: kata-cc-isolation
runtimeClassName: contrast-cc-isolation
initContainers:
- name: initializer
image: "ghcr.io/edgelesssys/contrast/initializer:latest"
Expand Down
2 changes: 1 addition & 1 deletion deployments/emojivoto-sm-egress/voting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
app.kubernetes.io/name: voting-svc
version: v11
spec:
runtimeClassName: kata-cc-isolation
runtimeClassName: contrast-cc-isolation
initContainers:
- name: initializer
image: "ghcr.io/edgelesssys/contrast/initializer:latest"
Expand Down
2 changes: 1 addition & 1 deletion deployments/emojivoto-sm-egress/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
app.kubernetes.io/name: web-svc
version: v11
spec:
runtimeClassName: kata-cc-isolation
runtimeClassName: contrast-cc-isolation
initContainers:
- name: initializer
image: "ghcr.io/edgelesssys/contrast/initializer:latest"
Expand Down
2 changes: 1 addition & 1 deletion deployments/emojivoto/coordinator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
annotations:
contrast.edgeless.systems/pod-role: coordinator
spec:
runtimeClassName: kata-cc-isolation
runtimeClassName: contrast-cc-isolation
containers:
- name: coordinator
image: "ghcr.io/edgelesssys/contrast/coordinator:latest"
Expand Down
2 changes: 1 addition & 1 deletion deployments/emojivoto/emoji.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
app.kubernetes.io/name: emoji-svc
version: v11
spec:
runtimeClassName: kata-cc-isolation
runtimeClassName: contrast-cc-isolation
initContainers:
- name: initializer
image: "ghcr.io/edgelesssys/contrast/initializer:latest"
Expand Down
2 changes: 1 addition & 1 deletion deployments/emojivoto/voting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
app.kubernetes.io/name: voting-svc
version: v11
spec:
runtimeClassName: kata-cc-isolation
runtimeClassName: contrast-cc-isolation
initContainers:
- name: initializer
image: "ghcr.io/edgelesssys/contrast/initializer:latest"
Expand Down
2 changes: 1 addition & 1 deletion deployments/emojivoto/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
app.kubernetes.io/name: web-svc
version: v11
spec:
runtimeClassName: kata-cc-isolation
runtimeClassName: contrast-cc-isolation
initContainers:
- name: initializer
image: "ghcr.io/edgelesssys/contrast/initializer:latest"
Expand Down
2 changes: 1 addition & 1 deletion e2e/internal/kuberesource/parts.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func Coordinator(namespace string) *CoordinatorConfig {
WithLabels(map[string]string{"app.kubernetes.io/name": "coordinator"}).
WithAnnotations(map[string]string{"contrast.edgeless.systems/pod-role": "coordinator"}).
WithSpec(PodSpec().
WithRuntimeClassName("kata-cc-isolation").
WithRuntimeClassName("contrast-cc-isolation").
WithContainers(
Container().
WithName("coordinator").
Expand Down
2 changes: 1 addition & 1 deletion e2e/internal/kuberesource/sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func Simple() ([]any, error) {
WithTemplate(PodTemplateSpec().
WithLabels(map[string]string{"app.kubernetes.io/name": "workload"}).
WithSpec(PodSpec().
WithRuntimeClassName("kata-cc-isolation").
WithRuntimeClassName("contrast-cc-isolation").
WithContainers(
Container().
WithName("workload").
Expand Down

0 comments on commit 49f55e2

Please sign in to comment.