Skip to content

Commit 40eaf67

Browse files
authored
feat(audit_trail): add Kubernetes ACL resource (scaleway#2339)
1 parent 76fccaa commit 40eaf67

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

api/audit_trail/v1alpha1/audit_trail_sdk.go

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ const (
8585
ResourceTypeKubeCluster = ResourceType("kube_cluster")
8686
ResourceTypeKubePool = ResourceType("kube_pool")
8787
ResourceTypeKubeNode = ResourceType("kube_node")
88+
ResourceTypeKubeACL = ResourceType("kube_acl")
8889
)
8990

9091
func (enum ResourceType) String() string {
@@ -103,6 +104,7 @@ func (enum ResourceType) Values() []ResourceType {
103104
"kube_cluster",
104105
"kube_pool",
105106
"kube_node",
107+
"kube_acl",
106108
}
107109
}
108110

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

126+
// KubernetesACLInfo: kubernetes acl info.
127+
type KubernetesACLInfo struct {
128+
}
129+
124130
// KubernetesClusterInfo: kubernetes cluster info.
125131
type KubernetesClusterInfo struct {
126132
}
@@ -169,20 +175,23 @@ type Resource struct {
169175

170176
Name *string `json:"name"`
171177

172-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo must be set.
178+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
173179
SecmSecretInfo *SecretManagerSecretInfo `json:"secm_secret_info,omitempty"`
174180

175-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo must be set.
181+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
176182
SecmSecretVersionInfo *SecretManagerSecretVersionInfo `json:"secm_secret_version_info,omitempty"`
177183

178-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo must be set.
184+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
179185
KubeClusterInfo *KubernetesClusterInfo `json:"kube_cluster_info,omitempty"`
180186

181-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo must be set.
187+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
182188
KubePoolInfo *KubernetesPoolInfo `json:"kube_pool_info,omitempty"`
183189

184-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo must be set.
190+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
185191
KubeNodeInfo *KubernetesNodeInfo `json:"kube_node_info,omitempty"`
192+
193+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
194+
KubeACLInfo *KubernetesACLInfo `json:"kube_acl_info,omitempty"`
186195
}
187196

188197
// Event: event.

0 commit comments

Comments
 (0)