Skip to content

Commit 90ee6e1

Browse files
authored
Merge pull request #115 from Peefy/feat-prune
feat: prune feature for the flux kcl controller
2 parents 5d282dd + 91391d4 commit 90ee6e1

File tree

4 files changed

+235
-33
lines changed

4 files changed

+235
-33
lines changed

api/v1alpha1/kclrun_types.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ type KCLRunSpec struct {
119119
Path string `json:"path,omitempty"`
120120

121121
// PostBuild describes which actions to perform on the YAML manifest
122-
// generated by building the kustomize overlay.
122+
// generated by building the KCL module.
123123
// +optional
124124
PostBuild *PostBuild `json:"postBuild,omitempty"`
125125

@@ -221,6 +221,11 @@ type KCLRunStatus struct {
221221

222222
// +optional
223223
Conditions []metav1.Condition `json:"conditions,omitempty"`
224+
225+
// Inventory contains the list of Kubernetes resource object references that
226+
// have been successfully applied.
227+
// +optional
228+
Inventory *ResourceInventory `json:"inventory,omitempty"`
224229
}
225230

226231
//+kubebuilder:object:root=true

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/krm.kcl.dev.fluxcd_kclruns.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,34 @@ spec:
347347
- type
348348
type: object
349349
type: array
350+
inventory:
351+
description: |-
352+
Inventory contains the list of Kubernetes resource object references that
353+
have been successfully applied.
354+
properties:
355+
entries:
356+
description: Entries of Kubernetes resource object references.
357+
items:
358+
description: ResourceRef contains the information necessary
359+
to locate a resource within a cluster.
360+
properties:
361+
id:
362+
description: |-
363+
ID is the string representation of the Kubernetes resource object's metadata,
364+
in the format '<namespace>_<name>_<group>_<kind>'.
365+
type: string
366+
v:
367+
description: Version is the API version of the Kubernetes
368+
resource object's kind.
369+
type: string
370+
required:
371+
- id
372+
- v
373+
type: object
374+
type: array
375+
required:
376+
- entries
377+
type: object
350378
lastAppliedRevision:
351379
description: |-
352380
The last successfully applied revision.

0 commit comments

Comments
 (0)