Skip to content

Commit 40db51e

Browse files
committed
fix: Added agentruntime to lister-gen fix
Signed-off-by: Mahil Patel <mahilpatel0808@gmail.com>
1 parent 05e6a24 commit 40db51e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

client-go/listers/runtime/v1alpha1/agentruntime.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hack/update-codegen.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ echo "Fixing lister-gen GroupResource issue..."
7070
find "${SCRIPT_ROOT}/client-go/listers" -name "*.go" -type f | while read -r file; do
7171
if [[ "$OSTYPE" == "darwin"* ]]; then
7272
sed -i '' 's/runtimev1alpha1\.Resource("codeinterpreter")/runtimev1alpha1.Resource("codeinterpreter").GroupResource()/g' "$file"
73+
sed -i '' 's/runtimev1alpha1\.Resource("agentruntime")/runtimev1alpha1.Resource("agentruntime").GroupResource()/g' "$file"
7374
else
7475
sed -i 's/runtimev1alpha1\.Resource("codeinterpreter")/runtimev1alpha1.Resource("codeinterpreter").GroupResource()/g' "$file"
76+
sed -i 's/runtimev1alpha1\.Resource("agentruntime")/runtimev1alpha1.Resource("agentruntime").GroupResource()/g' "$file"
7577
fi
7678
done
7779

pkg/apis/runtime/v1alpha1/register.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ var (
3131
// AgentRuntime type metadata.
3232
var (
3333
AgentRuntimeKind = "AgentRuntime"
34-
AgentRuntimeGroupKind = GroupVersion.WithKind("AgentRuntime")
3534
AgentRuntimeListKind = "AgentRuntimeList"
3635
AgentRuntimeGroupVersionKind = GroupVersion.WithKind("AgentRuntime")
3736
)

0 commit comments

Comments
 (0)