例子
1 | func (d *DelpoyBuilder) Build(ctx context.Context) error { |
就用他来判断 if d.deploy.CreationTimestamp.IsZero()即可
例子
1 | func (d *DelpoyBuilder) Build(ctx context.Context) error { |
就用他来判断 if d.deploy.CreationTimestamp.IsZero()即可
原文作者:HAOJX
原文链接:haojianxun.github.io/2021/09/10/reconcile的时候如何判断一个资源是否已经存在/
发表日期:September 10th 2021, 12:00:00 am
更新日期:October 13th 2022, 11:34:34 pm
版权声明:本文采用知识共享署名-非商业性使用 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