MCPcopy Create free account
hub / github.com/cool-sun/cloudApp / buildObjectMeta

Method buildObjectMeta

k8s/deployment.go:131–143  ·  view source on GitHub ↗

使用 ObjectMeta属性中的 OwnerRefrence 来做资源关联,有两个特性: 1.Owner 资源被删除,被 Own 的资源会被级联删除,这利用了 K8s 的 GC; 1.被 Own 的资源对象的事件变更可以触发 Owner 对象的 Reconcile 方法;

(app *myappv1.App)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

buildPVCMethod · 0.95
buildConfigmapMethod · 0.95
buildServiceMethod · 0.95
buildStatefulsetMethod · 0.95
buildDeploymentMethod · 0.95
buildDaemonSetMethod · 0.95

Calls 1

buildLabelsMethod · 0.95

Tested by

no test coverage detected