Kubernetes object spec to match
Array of spec and file objects to search
First file and spec object to match spec or undefined
if no match is found
Safely persist the deletion of a resource to the sync repo project.
If fs
is undefined
, do nothing.
Kubernetes resource that was upserted
Sync repo project
File and spec object that matches resource, may be undefined
Persist the creation of or update to a resource to the sync repo project.
Kubernetes resource that was upserted
Sync repo project
File and spec object that matches resource, may be undefined
Determine if two Kubernetes resource specifications represent the
same object. When determining if they are the same, only the kind,
name, and namespace, which may be undefined
, must match. The
apiVersion is not considered when matching because the same
resource can appear under different API versions. Other object
properties are not considered.
First Kubernetes object spec to match
Second Kubernetes object spec to match
true
if specs match, false
otherwise
Synchronize changes from deploying app to the configured syncRepo. If no syncRepo is configured, do nothing.
Kubernetes application change that triggered the sync
Kubernetes resource objects to synchronize
Action performed, "upsert" or "delete"
Update the sync repo with the changed resources from a
KubernetesApplication. For each changed resource in resources
,
loop through all the existing Kubernetes spec files, i.e., those
that match k8sSpecGlob, to see if the apiVersion, kind, name,
and namespace, which may be undefined, match. If a match is found,
update that spec file. If no match is found, create a unique file
name and store the resource spec in it. If changes are made,
commit and push the changes.
Kubernetes application object
Resources that were upserted as part of this application
Action performed, "upsert" or "delete"
Repo sync options, passed to the sync action
Function that updates the sync repo with the resource specs
Return a unique name for a resource spec that lexically sorts so resources that should be created earlier than others sort earlier than others.
Kubernetes object spec
Kubernetes spec project
Unique spec file name that sorts properly
Generated using TypeDoc
Search
fileSpecs
for a spec that matchesspec
. To be considered a match, the kind, name, and namespace, which may be undefined, must match. The apiVersion is not considered when matching because the same resource can appear under different API versions.