Documentation
¶
Index ¶
- Variables
- func AppSetGeneratorMatchesPlacement(gen *ApplicationSetGenerator, placementName string) bool
- func NestedGeneratorsMatchPlacement(generators []ApplicationSetNestedGenerator, placementName string) bool
- type ApplicationDestination
- type ApplicationSet
- type ApplicationSetGenerator
- type ApplicationSetList
- type ApplicationSetNestedGenerator
- type ApplicationSetSpec
- type ApplicationSetStatus
- type ApplicationSetTemplate
- type ApplicationSetTemplateMeta
- type ApplicationSpec
- type DuckTypeGenerator
- type MatrixGenerator
- type MergeGenerator
Constants ¶
This section is empty.
Variables ¶
var ( SchemeGroupVersion = schema.GroupVersion{Group: "argoproj.io", Version: "v1alpha1"} SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func AppSetGeneratorMatchesPlacement ¶
func AppSetGeneratorMatchesPlacement(gen *ApplicationSetGenerator, placementName string) bool
AppSetGeneratorMatchesPlacement returns true when the given top-level ApplicationSet generator references the supplied Placement name, either directly via a clusterDecisionResource generator or nested one level deep inside a matrix or merge combinator generator.
func NestedGeneratorsMatchPlacement ¶
func NestedGeneratorsMatchPlacement( generators []ApplicationSetNestedGenerator, placementName string, ) bool
NestedGeneratorsMatchPlacement returns true when any generator in the slice carries a clusterDecisionResource whose PlacementLabel matches placementName.
Types ¶
type ApplicationDestination ¶
type ApplicationDestination struct {
Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"`
}
type ApplicationSet ¶
type ApplicationSet struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
Spec ApplicationSetSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
Status ApplicationSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}
func (*ApplicationSet) DeepCopy ¶
func (in *ApplicationSet) DeepCopy() *ApplicationSet
func (*ApplicationSet) DeepCopyInto ¶
func (in *ApplicationSet) DeepCopyInto(out *ApplicationSet)
func (*ApplicationSet) DeepCopyObject ¶
func (in *ApplicationSet) DeepCopyObject() runtime.Object
type ApplicationSetGenerator ¶
type ApplicationSetGenerator struct {
//nolint:lll
ClusterDecisionResource *DuckTypeGenerator `json:"clusterDecisionResource,omitempty" protobuf:"bytes,5,name=clusterDecisionResource"`
// Matrix combines two generators by taking the cartesian product of their parameters.
// The clusterDecisionResource generator may appear as one of the nested generators.
Matrix *MatrixGenerator `json:"matrix,omitempty" protobuf:"bytes,10,name=matrix"`
// Merge combines generators by merging their parameters.
// The clusterDecisionResource generator may appear as one of the nested generators.
Merge *MergeGenerator `json:"merge,omitempty" protobuf:"bytes,11,name=merge"`
}
func (*ApplicationSetGenerator) DeepCopyInto ¶
func (in *ApplicationSetGenerator) DeepCopyInto(out *ApplicationSetGenerator)
type ApplicationSetList ¶
type ApplicationSetList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
Items []ApplicationSet `json:"items" protobuf:"bytes,2,rep,name=items"`
}
func (*ApplicationSetList) DeepCopy ¶
func (in *ApplicationSetList) DeepCopy() *ApplicationSetList
func (*ApplicationSetList) DeepCopyInto ¶
func (in *ApplicationSetList) DeepCopyInto(out *ApplicationSetList)
DeepCopy### interfaces required to use ApplicationSetList as a runtime.Object Lifted from generated deep copy file for other resources
func (*ApplicationSetList) DeepCopyObject ¶
func (in *ApplicationSetList) DeepCopyObject() runtime.Object
type ApplicationSetNestedGenerator ¶
type ApplicationSetNestedGenerator struct {
//nolint:lll
ClusterDecisionResource *DuckTypeGenerator `json:"clusterDecisionResource,omitempty" protobuf:"bytes,5,name=clusterDecisionResource"`
}
ApplicationSetNestedGenerator is a generator that may appear inside a Matrix or Merge combinator. It holds only the fields that Ramen inspects.
func (*ApplicationSetNestedGenerator) DeepCopyInto ¶
func (in *ApplicationSetNestedGenerator) DeepCopyInto(out *ApplicationSetNestedGenerator)
type ApplicationSetSpec ¶
type ApplicationSetSpec struct {
Generators []ApplicationSetGenerator `json:"generators" protobuf:"bytes,2,name=generators"`
Template ApplicationSetTemplate `json:"template" protobuf:"bytes,3,name=template"`
}
type ApplicationSetStatus ¶
type ApplicationSetStatus struct{}
type ApplicationSetTemplate ¶
type ApplicationSetTemplate struct {
ApplicationSetTemplateMeta `json:"metadata" protobuf:"bytes,1,name=metadata"`
Spec ApplicationSpec `json:"spec" protobuf:"bytes,2,name=spec"`
}
type ApplicationSetTemplateMeta ¶
type ApplicationSetTemplateMeta struct{}
type ApplicationSpec ¶
type ApplicationSpec struct {
Destination ApplicationDestination `json:"destination" protobuf:"bytes,2,name=destination"`
Project string `json:"project" protobuf:"bytes,3,name=project"`
}
type DuckTypeGenerator ¶
type DuckTypeGenerator struct {
ConfigMapRef string `json:"configMapRef" protobuf:"bytes,1,name=configMapRef"`
LabelSelector metav1.LabelSelector `json:"labelSelector,omitempty" protobuf:"bytes,4,name=labelSelector"`
}
func (*DuckTypeGenerator) DeepCopyInto ¶
func (in *DuckTypeGenerator) DeepCopyInto(out *DuckTypeGenerator)
type MatrixGenerator ¶
type MatrixGenerator struct {
Generators []ApplicationSetNestedGenerator `json:"generators" protobuf:"bytes,1,name=generators"`
}
MatrixGenerator is the subset of the ArgoCD MatrixGenerator that Ramen cares about: the list of nested generators whose clusterDecisionResource entries must be inspected.
func (*MatrixGenerator) DeepCopyInto ¶
func (in *MatrixGenerator) DeepCopyInto(out *MatrixGenerator)
type MergeGenerator ¶
type MergeGenerator struct {
Generators []ApplicationSetNestedGenerator `json:"generators" protobuf:"bytes,1,name=generators"`
}
MergeGenerator is the subset of the ArgoCD MergeGenerator that Ramen cares about.
func (*MergeGenerator) DeepCopyInto ¶
func (in *MergeGenerator) DeepCopyInto(out *MergeGenerator)