-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for generating CRD's for entities that contain othe…
…r custom resources (#823) This adds support for a CustomKubernetesEntity that has another CustomKubernetesEntity as a property. We use this for cluster resources that create namespaced versions, so we want the spec to match without having to duplicate the spec inside the parent CustomKubernetesEntity. https://github.com/Contrast-Security-OSS/agent-operator/blob/master/src/Contrast.K8s.AgentOperator/Entities/V1Beta1ClusterAgentConnection.cs In previous versions of the sdk the generator supported this scenario but the current one errors out with `System.ArgumentException: The given type Contrast.K8s.AgentOperator.Entities.V1Beta1AgentConfiguration is not a valid Kubernetes entity.` inside the Map function. Also cleaned up the xml doc on the description attribute since the new generator doesn't support pulling the description from the xml summary. Co-authored-by: Christoph Bühler <[email protected]>
- Loading branch information
1 parent
b42b2f6
commit f2129cf
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
src/KubeOps.Abstractions/Entities/Attributes/DescriptionAttribute.cs
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