Skip to content

Commit

Permalink
feat(audit_trail): add Kubernetes ACL resource (#2339)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Nov 29, 2024
1 parent 76fccaa commit 40eaf67
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions api/audit_trail/v1alpha1/audit_trail_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const (
ResourceTypeKubeCluster = ResourceType("kube_cluster")
ResourceTypeKubePool = ResourceType("kube_pool")
ResourceTypeKubeNode = ResourceType("kube_node")
ResourceTypeKubeACL = ResourceType("kube_acl")
)

func (enum ResourceType) String() string {
Expand All @@ -103,6 +104,7 @@ func (enum ResourceType) Values() []ResourceType {
"kube_cluster",
"kube_pool",
"kube_node",
"kube_acl",
}
}

Expand All @@ -121,6 +123,10 @@ func (enum *ResourceType) UnmarshalJSON(data []byte) error {
return nil
}

// KubernetesACLInfo: kubernetes acl info.
type KubernetesACLInfo struct {
}

// KubernetesClusterInfo: kubernetes cluster info.
type KubernetesClusterInfo struct {
}
Expand Down Expand Up @@ -169,20 +175,23 @@ type Resource struct {

Name *string `json:"name"`

// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo must be set.
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
SecmSecretInfo *SecretManagerSecretInfo `json:"secm_secret_info,omitempty"`

// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo must be set.
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
SecmSecretVersionInfo *SecretManagerSecretVersionInfo `json:"secm_secret_version_info,omitempty"`

// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo must be set.
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
KubeClusterInfo *KubernetesClusterInfo `json:"kube_cluster_info,omitempty"`

// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo must be set.
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
KubePoolInfo *KubernetesPoolInfo `json:"kube_pool_info,omitempty"`

// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo must be set.
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
KubeNodeInfo *KubernetesNodeInfo `json:"kube_node_info,omitempty"`

// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
KubeACLInfo *KubernetesACLInfo `json:"kube_acl_info,omitempty"`
}

// Event: event.
Expand Down

0 comments on commit 40eaf67

Please sign in to comment.