Class SyncSetCommonSpec

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<SyncSetCommonSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class SyncSetCommonSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<SyncSetCommonSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    SyncSetCommonSpec defines the resources and patches to sync
    See Also:
    Serialized Form
    • 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.
      • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)