先在type中定义一个event
1 | type xxxx struct{ |
当资源变更了 可以使用他来记录
1 | r.E.Evnet(config,corev1.EventTypeNormal,reason:"初始化dep",message:"成功") |
如何调用呢
1 | list:=corev1.EventList{} |
先在type中定义一个event
1 | type xxxx struct{ |
当资源变更了 可以使用他来记录
1 | r.E.Evnet(config,corev1.EventTypeNormal,reason:"初始化dep",message:"成功") |
如何调用呢
1 | list:=corev1.EventList{} |
原文作者:HAOJX
原文链接:haojianxun.github.io/2021/10/29/event的用法,-来显示资源的事件情况/
发表日期:October 29th 2021, 12:00:00 am
更新日期:October 14th 2022, 1:07:38 am
版权声明:本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: true
tags: true