core/src/main/java/io/fabric8/maven/core/service/PatchService.java
private static EntityPatcher<BuildConfig> bcPatcher() {
        return (KubernetesClient client, String namespace, BuildConfig newObj, BuildConfig oldObj) -> {
            if (UserConfigurationCompare.configEqual(newObj, oldObj)) {
                return oldObj;
            }
            OpenShiftClient openShiftClient = OpenshiftHelper.asOpenShiftClient(client);
            if (openShiftClient == null) {
                throw new IllegalArgumentException("BuildConfig can only be patched when connected to an OpenShift cluster");
            }
            DoneableBuildConfig entity =
                openShiftClient.buildConfigs()
                      .inNamespace(namespace)
                      .withName(oldObj.getMetadata().getName())
                      .edit();

            if (!UserConfigurationCompare.configEqual(newObj.getMetadata(), oldObj.getMetadata())) {
                entity.withMetadata(newObj.getMetadata());
            }

            if(!UserConfigurationCompare.configEqual(newObj.getSpec(), oldObj.getSpec())) {
                    entity.withSpec(newObj.getSpec());
            }
            return entity.done();
        };
    }
private static EntityPatcher<BuildConfig> bcPatcher() {
        return (KubernetesClient client, String namespace, BuildConfig newObj, BuildConfig oldObj) -> {
            if (UserConfigurationCompare.configEqual(newObj, oldObj)) {
                return oldObj;
            }
            OpenShiftClient openShiftClient = OpenshiftHelper.asOpenShiftClient(client);
            if (openShiftClient == null) {
                throw new IllegalArgumentException("BuildConfig can only be patched when connected to an OpenShift cluster");
            }
            DoneableBuildConfig entity =
                openShiftClient.buildConfigs()
                      .inNamespace(namespace)
                      .withName(oldObj.getMetadata().getName())
                      .edit();

            if (!UserConfigurationCompare.configEqual(newObj.getMetadata(), oldObj.getMetadata())) {
                entity.withMetadata(newObj.getMetadata());
            }

            if(!UserConfigurationCompare.configEqual(newObj.getSpec(), oldObj.getSpec())) {
                    entity.withSpec(newObj.getSpec());
            }
            return entity.done();
        };
    }
private static EntityPatcher < BuildConfig > bcPatcher ( ) { return ( KubernetesClient client , String namespace , BuildConfig newObj , BuildConfig oldObj ) -> { if ( UserConfigurationCompare . configEqual ( newObj , oldObj ) ) { return oldObj ; } OpenShiftClient openShiftClient = OpenshiftHelper . asOpenShiftClient ( client ) ; if ( openShiftClient == null ) { throw new IllegalArgumentException ( "BuildConfig can only be patched when connected to an OpenShift cluster" ) ; } DoneableBuildConfig entity = openShiftClient . buildConfigs ( ) . inNamespace ( namespace ) . withName ( oldObj . getMetadata ( ) . getName ( ) ) . edit ( ) ; if ( ! UserConfigurationCompare . configEqual ( newObj . getMetadata ( ) , oldObj . getMetadata ( ) ) ) { entity . withMetadata ( newObj . getMetadata ( ) ) ; } if ( ! UserConfigurationCompare . configEqual ( newObj . getSpec ( ) , oldObj . getSpec ( ) ) ) { entity . withSpec ( newObj . getSpec ( ) ) ; } return entity . done ( ) ; } ; }
=================
=================