Class SyncSetSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.hive.v1.SyncSetSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SyncSetSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SyncSetSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<SyncSetSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
SyncSetSpec defines the SyncSetCommonSpec resources and patches to sync along with ClusterDeploymentRefs indicating which clusters the SyncSet applies to in the SyncSet's namespace.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyncSetSpec()No args constructor for use in serializationSyncSetSpec(String applyBehavior, List<io.fabric8.kubernetes.api.model.LocalObjectReference> clusterDeploymentRefs, Boolean enableResourceTemplates, List<SyncObjectPatch> patches, String resourceApplyMode, List<Object> resources, List<SecretMapping> secretMappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncSetSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApplyBehavior()ApplyBehavior indicates how resources in this syncset will be applied to the target cluster.List<io.fabric8.kubernetes.api.model.LocalObjectReference>getClusterDeploymentRefs()ClusterDeploymentRefs is the list of LocalObjectReference indicating which clusters the SyncSet applies to in the SyncSet's namespace.BooleangetEnableResourceTemplates()EnableResourceTemplates, if True, causes hive to honor golang text/templates in Resources.List<SyncObjectPatch>getPatches()Patches is the list of patches to apply.StringgetResourceApplyMode()ResourceApplyMode indicates if the Resource apply mode is "Upsert" (default) or "Sync".List<Object>getResources()Resources is the list of objects to sync from RawExtension definitions.List<SecretMapping>getSecretMappings()Secrets is the list of secrets to sync along with their respective destinations.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApplyBehavior(String applyBehavior)ApplyBehavior indicates how resources in this syncset will be applied to the target cluster.voidsetClusterDeploymentRefs(List<io.fabric8.kubernetes.api.model.LocalObjectReference> clusterDeploymentRefs)ClusterDeploymentRefs is the list of LocalObjectReference indicating which clusters the SyncSet applies to in the SyncSet's namespace.voidsetEnableResourceTemplates(Boolean enableResourceTemplates)EnableResourceTemplates, if True, causes hive to honor golang text/templates in Resources.voidsetPatches(List<SyncObjectPatch> patches)Patches is the list of patches to apply.voidsetResourceApplyMode(String resourceApplyMode)ResourceApplyMode indicates if the Resource apply mode is "Upsert" (default) or "Sync".voidsetResources(List<Object> resources)Resources is the list of objects to sync from RawExtension definitions.voidsetSecretMappings(List<SecretMapping> secretMappings)Secrets is the list of secrets to sync along with their respective destinations.SyncSetSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
SyncSetSpec
public SyncSetSpec()
No args constructor for use in serialization
-
SyncSetSpec
public SyncSetSpec(String applyBehavior, List<io.fabric8.kubernetes.api.model.LocalObjectReference> clusterDeploymentRefs, Boolean enableResourceTemplates, List<SyncObjectPatch> patches, String resourceApplyMode, List<Object> resources, List<SecretMapping> secretMappings)
-
-
Method Detail
-
getApplyBehavior
public String getApplyBehavior()
ApplyBehavior indicates how resources in this syncset will be applied to the target cluster. The default value of "Apply" indicates that resources should be applied using the 'oc apply' command. If no value is set, "Apply" is assumed. A value of "CreateOnly" indicates that the resource will only be created if it does not already exist in the target cluster. Otherwise, it will be left alone. A value of "CreateOrUpdate" indicates that the resource will be created/updated without the use of the 'oc apply' command, allowing larger resources to be synced, but losing some functionality of the 'oc apply' command such as the ability to remove annotations, labels, and other map entries in general.
-
setApplyBehavior
public void setApplyBehavior(String applyBehavior)
ApplyBehavior indicates how resources in this syncset will be applied to the target cluster. The default value of "Apply" indicates that resources should be applied using the 'oc apply' command. If no value is set, "Apply" is assumed. A value of "CreateOnly" indicates that the resource will only be created if it does not already exist in the target cluster. Otherwise, it will be left alone. A value of "CreateOrUpdate" indicates that the resource will be created/updated without the use of the 'oc apply' command, allowing larger resources to be synced, but losing some functionality of the 'oc apply' command such as the ability to remove annotations, labels, and other map entries in general.
-
getClusterDeploymentRefs
public List<io.fabric8.kubernetes.api.model.LocalObjectReference> getClusterDeploymentRefs()
ClusterDeploymentRefs is the list of LocalObjectReference indicating which clusters the SyncSet applies to in the SyncSet's namespace.
-
setClusterDeploymentRefs
public void setClusterDeploymentRefs(List<io.fabric8.kubernetes.api.model.LocalObjectReference> clusterDeploymentRefs)
ClusterDeploymentRefs is the list of LocalObjectReference indicating which clusters the SyncSet applies to in the SyncSet's namespace.
-
getEnableResourceTemplates
public Boolean getEnableResourceTemplates()
EnableResourceTemplates, if True, causes hive to honor golang text/templates in Resources. While the standard syntax is supported, it won't do you a whole lot of good as the parser does not pass a data object (i.e. there is no "dot" for you to use). This currently exists to expose a single function: {{ fromCDLabel "some.label/key" }} will be substituted with the string value of ClusterDeployment.Labels["some.label/key"]. The empty string is interpolated if there are no labels, or if the indicated key does not exist. Note that this only works in values (not e.g. map keys) that are of type string.
-
setEnableResourceTemplates
public void setEnableResourceTemplates(Boolean enableResourceTemplates)
EnableResourceTemplates, if True, causes hive to honor golang text/templates in Resources. While the standard syntax is supported, it won't do you a whole lot of good as the parser does not pass a data object (i.e. there is no "dot" for you to use). This currently exists to expose a single function: {{ fromCDLabel "some.label/key" }} will be substituted with the string value of ClusterDeployment.Labels["some.label/key"]. The empty string is interpolated if there are no labels, or if the indicated key does not exist. Note that this only works in values (not e.g. map keys) that are of type string.
-
getPatches
public List<SyncObjectPatch> getPatches()
Patches is the list of patches to apply.
-
setPatches
public void setPatches(List<SyncObjectPatch> patches)
Patches is the list of patches to apply.
-
getResourceApplyMode
public String getResourceApplyMode()
ResourceApplyMode indicates if the Resource apply mode is "Upsert" (default) or "Sync". ApplyMode "Upsert" indicates create and update. ApplyMode "Sync" indicates create, update and delete.
-
setResourceApplyMode
public void setResourceApplyMode(String resourceApplyMode)
ResourceApplyMode indicates if the Resource apply mode is "Upsert" (default) or "Sync". ApplyMode "Upsert" indicates create and update. ApplyMode "Sync" indicates create, update and delete.
-
getResources
public List<Object> getResources()
Resources is the list of objects to sync from RawExtension definitions.
-
setResources
public void setResources(List<Object> resources)
Resources is the list of objects to sync from RawExtension definitions.
-
getSecretMappings
public List<SecretMapping> getSecretMappings()
Secrets is the list of secrets to sync along with their respective destinations.
-
setSecretMappings
public void setSecretMappings(List<SecretMapping> secretMappings)
Secrets is the list of secrets to sync along with their respective destinations.
-
edit
public SyncSetSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SyncSetSpecBuilder>
-
toBuilder
public SyncSetSpecBuilder toBuilder()
-
-