-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate Cluster message from TrustZone
This change modifies cofidectl to adapt to the changes in cofide/cofide-api-sdk#25, in which the TrustZone message has been refactored to extract per-Kubernetes cluster details into a Cluster message. For now we restrict the number of clusters per trust zone to one. Clusters are not yet exposed by the CLI as separate from trust zones. They are currently embedded into trust zones in the data model but will be referenced by name or ID in future. Fixes: #126
- Loading branch information
1 parent
6b51407
commit b3c47f2
Showing
23 changed files
with
423 additions
and
198 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
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
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
10 changes: 10 additions & 0 deletions
10
internal/pkg/config/testdata/config/empty_trust_zone_clusters.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,10 @@ | ||
trust_zones: | ||
- name: tz1 | ||
trust_domain: td1 | ||
bundle_endpoint_url: 127.0.0.1 | ||
bundle: "" | ||
federations: | ||
- from: tz1 | ||
to: tz2 | ||
attestation_policies: [] | ||
clusters: [] |
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
13 changes: 8 additions & 5 deletions
13
internal/pkg/config/testdata/config/missing_trust_zone_field.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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
trust_zones: | ||
- trust_domain: td1 | ||
kubernetes_cluster: local1 | ||
kubernetes_context: kind-local1 | ||
trust_provider: | ||
name: "" | ||
kind: kubernetes | ||
bundle_endpoint_url: 127.0.0.1 | ||
bundle: "" | ||
federations: | ||
- from: tz1 | ||
to: tz2 | ||
attestation_policies: [] | ||
clusters: | ||
- name: local1 | ||
trust_zone: tz1 | ||
kubernetes_context: kind-local1 | ||
trust_provider: | ||
name: "" | ||
kind: kubernetes | ||
profile: kubernetes |
Oops, something went wrong.